Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9274/0.9274, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.09459/0.09459, allocations: 17.37 MB / 276.6 MB, free: 11.84 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 411.5 MB, free: 404 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.425e-05/1.564e-05, allocations: 3.688 kB / 411.5 MB, free: 400 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.AcidBase.Phosphate): time 0.02957/0.02958, allocations: 28.93 MB / 440.4 MB, free: 3.527 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1838/0.2134, allocations: 25.28 MB / 465.7 MB, free: 49.43 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001462/0.2148, allocations: 35.69 kB / 465.7 MB, free: 49.41 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.2161, allocations: 0.5305 MB / 466.2 MB, free: 49.13 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005433/0.2215, allocations: 2.642 MB / 468.9 MB, free: 47.57 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006598/0.2281, allocations: 3.674 MB / 472.6 MB, free: 45.42 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.2309, allocations: 2.816 MB / 475.4 MB, free: 44.03 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001273/0.2322, allocations: 1.36 MB / 476.7 MB, free: 43.39 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002/0.2342, allocations: 1.956 MB / 478.7 MB, free: 42.69 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001542/0.2357, allocations: 1.363 MB / 480 MB, free: 42.34 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004351/0.2361, allocations: 252.4 kB / 480.3 MB, free: 42.34 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006858/0.243, allocations: 3.024 MB / 483.3 MB, free: 41.66 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000798/0.2438, allocations: 0.632 MB / 484 MB, free: 41.27 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001309/0.2451, allocations: 0.8952 MB / 484.8 MB, free: 40.89 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01133/0.2564, allocations: 6.505 MB / 491.4 MB, free: 38.17 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2564, allocations: 1.656 kB / 491.4 MB, free: 38.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2564, allocations: 0 / 491.4 MB, free: 38.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.415e-05/0.2565, allocations: 5.969 kB / 491.4 MB, free: 38.17 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.005453/0.262, allocations: 2.909 MB / 494.3 MB, free: 36.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.262, allocations: 11.59 kB / 494.3 MB, free: 36.55 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003171/0.2623, allocations: 262.6 kB / 494.5 MB, free: 36.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001617/0.2639, allocations: 474.3 kB / 495 MB, free: 36.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/0.2658, allocations: 1.049 MB / 496 MB, free: 35.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/0.266, allocations: 359.8 kB / 496.4 MB, free: 35.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003203/0.2663, allocations: 186.5 kB / 496.6 MB, free: 35.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003551/0.2698, allocations: 2.531 MB / 499.1 MB, free: 34.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.2699, allocations: 1.5 kB / 499.1 MB, free: 34.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.27, allocations: 78.97 kB / 499.2 MB, free: 34.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.182e-05/0.27, allocations: 47.47 kB / 499.2 MB, free: 34.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004187/0.2742, allocations: 3.175 MB / 0.4906 GB, free: 33.31 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.285, allocations: 7.132 MB / 0.4976 GB, free: 29.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005774/0.2908, allocations: 4.649 MB / 0.5021 GB, free: 28.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.2923, allocations: 1.159 MB / 0.5033 GB, free: 27.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008235/0.3005, allocations: 5.785 MB / 0.5089 GB, free: 21.58 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.3006, allocations: 47.88 kB / 0.509 GB, free: 21.53 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007936/0.3014, allocations: 310.6 kB / 0.5093 GB, free: 21.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 3.577e-06/0.3014, allocations: 0 / 0.5093 GB, free: 21.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=187): time 0.01403/0.3154, allocations: 7.349 MB / 0.5164 GB, free: 13.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.3154, allocations: 69.41 kB / 0.5165 GB, free: 13.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000756/0.3162, allocations: 0.9322 MB / 0.5174 GB, free: 12.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002052/0.3164, allocations: 57.7 kB / 0.5175 GB, free: 12.81 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.3166, allocations: 0.8208 MB / 0.5183 GB, free: 11.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003055/0.3169, allocations: 0.6545 MB / 0.5189 GB, free: 11.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.3172, allocations: 407.9 kB / 0.5193 GB, free: 10.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.64e-05/0.3173, allocations: 303.8 kB / 0.5196 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008061/0.3181, allocations: 0.7851 MB / 0.5204 GB, free: 9.828 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000949/0.319, allocations: 1.379 MB / 0.5217 GB, free: 8.188 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001978/0.321, allocations: 2.359 MB / 0.524 GB, free: 5.602 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.321, allocations: 7.938 kB / 0.524 GB, free: 5.594 MB / 410.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.006087/0.3271, allocations: 3.387 MB / 0.5273 GB, free: 2.223 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.3271, allocations: 15.94 kB / 0.5273 GB, free: 2.207 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.3271, allocations: 20 kB / 0.5274 GB, free: 2.188 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/0.3289, allocations: 0.819 MB / 0.5282 GB, free: 1.395 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.33, allocations: 0.5218 MB / 0.5287 GB, free: 0.875 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003289/0.3333, allocations: 3.654 MB / 0.5322 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.3345, allocations: 79.86 kB / 0.5323 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/0.3347, allocations: 126.6 kB / 0.5324 GB, free: 12.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (268): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007085/0.3354, allocations: 393.1 kB / 0.5328 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.3357, allocations: 159 kB / 0.533 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006486/0.3422, allocations: 3.324 MB / 0.5362 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.3422, allocations: 20 kB / 0.5362 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3422, allocations: 4 kB / 0.5362 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.803e-05/0.3422, allocations: 14.61 kB / 0.5362 GB, free: 8.973 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008644/0.3509, allocations: 4.941 MB / 0.5411 GB, free: 3.992 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.3509, allocations: 0 / 0.5411 GB, free: 3.992 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008499/0.3517, allocations: 365.1 kB / 0.5414 GB, free: 3.641 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001791/0.3535, allocations: 0.7949 MB / 0.5422 GB, free: 2.863 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001553/0.3537, allocations: 71.94 kB / 0.5423 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003041/0.3567, allocations: 3.541 MB / 0.5457 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3567, allocations: 2.656 kB / 0.5457 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007236/0.3639, allocations: 4.239 MB / 0.5499 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000409/0.3643, allocations: 138.9 kB / 0.55 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.3645, allocations: 39.88 kB / 0.55 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005063/0.365, allocations: 46.64 kB / 0.5501 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003358/0.3654, allocations: 201.6 kB / 0.5503 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.3655, allocations: 79.94 kB / 0.5503 GB, free: 10.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005539/0.366, allocations: 0.5742 MB / 0.5509 GB, free: 9.719 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.366, allocations: 0 / 0.5509 GB, free: 9.719 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003016/0.369, allocations: 1.191 MB / 0.5521 GB, free: 8.527 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01018/0.3792, allocations: 6.098 MB / 0.558 GB, free: 2.488 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003355/0.3826, allocations: 2.339 MB / 0.5603 GB, free: 136 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3826, allocations: 0 / 0.5603 GB, free: 136 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.3842, allocations: 1.308 MB / 0.5616 GB, free: 14.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.3854, allocations: 311.8 kB / 0.5619 GB, free: 14.53 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02574/0.4111, allocations: 15.78 MB / 0.5773 GB, free: 14.06 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005717/0.4117, allocations: 0.7455 MB / 0.578 GB, free: 13.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001179/0.4129, allocations: 416.1 kB / 0.5784 GB, free: 13.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008853/0.4138, allocations: 0.8373 MB / 0.5792 GB, free: 12.18 MB / 474.7 MB Notification: Performance of SimCode: time 1.523e-06/0.4138, allocations: 0 / 0.5792 GB, free: 12.18 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2346/0.6483, allocations: 63.64 MB / 0.6414 GB, free: 148.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.748/10.4, allocations: 6.719 kB / 0.6414 GB, free: 148.7 MB / 0.4948 GB " [Timeout remaining time 649] (rm -f Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.301873750984669] Failed to read output from testmodel.py, exit status != 0: 10.51164180226624 10.520979895 10.262253577 Calling exit ...