Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001895/0.001895, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.002369/0.002369, allocations: 210.5 kB / 22.24 MB, free: 4.859 MB / 14.72 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 1.477/1.477, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1537/0.1537, allocations: 24 MB / 336.4 MB, free: 10.86 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002284, allocations: 63.91 kB / 471.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3325, allocations: 59.89 MB / 0.5187 GB, free: 9.508 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.07573/0.4082, allocations: 28.7 MB / 0.5468 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03871/0.4469, allocations: 25.3 MB / 0.5715 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001983/0.4489, allocations: 35.75 kB / 0.5715 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002045/0.451, allocations: 0.5194 MB / 0.572 GB, free: 3.156 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008415/0.4594, allocations: 2.561 MB / 0.5745 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01049/0.4699, allocations: 3.581 MB / 0.578 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004416/0.4743, allocations: 2.716 MB / 0.5807 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002503/0.4768, allocations: 1.345 MB / 0.582 GB, free: 8.871 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002526/0.4793, allocations: 1.454 MB / 0.5834 GB, free: 7.414 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003137/0.4824, allocations: 1.487 MB / 0.5849 GB, free: 5.922 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008306/0.4833, allocations: 252 kB / 0.5851 GB, free: 5.676 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01026/0.4935, allocations: 2.995 MB / 0.588 GB, free: 2.676 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.4946, allocations: 0.6193 MB / 0.5886 GB, free: 2.055 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001903/0.4965, allocations: 1.047 MB / 0.5896 GB, free: 1.004 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01254/0.5091, allocations: 6.113 MB / 0.5956 GB, free: 10.87 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.5091, allocations: 0 / 0.5956 GB, free: 10.87 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5091, allocations: 0 / 0.5956 GB, free: 10.87 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.436e-05/0.5091, allocations: 0 / 0.5956 GB, free: 10.87 MB / 446.1 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.00707/0.5162, allocations: 2.923 MB / 0.5985 GB, free: 7.898 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.5163, allocations: 11.97 kB / 0.5985 GB, free: 7.887 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005815/0.5168, allocations: 258 kB / 0.5987 GB, free: 7.625 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002249/0.5191, allocations: 482.8 kB / 0.5992 GB, free: 7.152 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002244/0.5213, allocations: 1.042 MB / 0.6002 GB, free: 6.082 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002966/0.5216, allocations: 353.8 kB / 0.6005 GB, free: 5.688 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003809/0.522, allocations: 196.3 kB / 0.6007 GB, free: 5.496 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004394/0.5264, allocations: 2.539 MB / 0.6032 GB, free: 2.922 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.826e-05/0.5264, allocations: 0 / 0.6032 GB, free: 2.922 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002129/0.5267, allocations: 72 kB / 0.6033 GB, free: 2.852 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.445e-05/0.5267, allocations: 44 kB / 0.6033 GB, free: 2.809 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005994/0.5327, allocations: 3.18 MB / 0.6064 GB, free: 15.62 MB / 462.1 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.01591/0.5486, allocations: 7.115 MB / 0.6134 GB, free: 8.391 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01498/0.5636, allocations: 4.651 MB / 0.6179 GB, free: 3.727 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003775/0.5674, allocations: 1.157 MB / 0.619 GB, free: 2.57 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02096/0.5883, allocations: 5.773 MB / 0.6247 GB, free: 12.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.386e-05/0.5884, allocations: 55.81 kB / 0.6247 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002205/0.5906, allocations: 310.7 kB / 0.625 GB, free: 12.39 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 7.764e-06/0.5906, allocations: 7.875 kB / 0.625 GB, free: 12.39 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.04482/0.6354, allocations: 7.354 MB / 0.6322 GB, free: 4.988 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.6355, allocations: 69.41 kB / 0.6323 GB, free: 4.91 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.6375, allocations: 0.9323 MB / 0.6332 GB, free: 3.961 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004689/0.6379, allocations: 57.7 kB / 0.6333 GB, free: 3.898 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009332/0.6389, allocations: 0.8208 MB / 0.6341 GB, free: 3.066 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/0.64, allocations: 0.6623 MB / 0.6347 GB, free: 2.398 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009932/0.641, allocations: 423.9 kB / 0.6351 GB, free: 1.977 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.6412, allocations: 305.1 kB / 0.6354 GB, free: 1.676 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00237/0.6436, allocations: 0.7851 MB / 0.6362 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003042/0.6466, allocations: 1.375 MB / 0.6375 GB, free: 15.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006223/0.6528, allocations: 2.364 MB / 0.6398 GB, free: 12.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-05/0.6529, allocations: 4 kB / 0.6398 GB, free: 12.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01842/0.6713, allocations: 3.383 MB / 0.6431 GB, free: 9.227 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.205e-05/0.6713, allocations: 12 kB / 0.6431 GB, free: 9.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.594e-05/0.6714, allocations: 16 kB / 0.6432 GB, free: 9.199 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005815/0.6772, allocations: 0.8265 MB / 0.644 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00342/0.6806, allocations: 0.511 MB / 0.6445 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008687/0.6893, allocations: 3.669 MB / 0.648 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002982/0.6923, allocations: 67.98 kB / 0.6481 GB, free: 3.887 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004146/0.6927, allocations: 123.9 kB / 0.6482 GB, free: 3.766 MB / 494.1 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.001381/0.6941, allocations: 401.1 kB / 0.6486 GB, free: 3.363 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007766/0.6949, allocations: 159.2 kB / 0.6488 GB, free: 3.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01878/0.7136, allocations: 3.326 MB / 0.652 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.975e-05/0.7137, allocations: 23.94 kB / 0.652 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.7137, allocations: 0 / 0.652 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.218e-05/0.7138, allocations: 11.91 kB / 0.652 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02326/0.737, allocations: 4.934 MB / 0.6569 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.334e-05/0.737, allocations: 0 / 0.6569 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002769/0.7398, allocations: 367.5 kB / 0.6572 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005884/0.7457, allocations: 0.7945 MB / 0.658 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005187/0.7462, allocations: 63.95 kB / 0.658 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007754/0.754, allocations: 3.561 MB / 0.6615 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.754, allocations: 0 / 0.6615 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02162/0.7756, allocations: 4.238 MB / 0.6657 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005836/0.7762, allocations: 138.9 kB / 0.6658 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004343/0.7766, allocations: 39.98 kB / 0.6658 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/0.7782, allocations: 36 kB / 0.6659 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007979/0.779, allocations: 205.6 kB / 0.6661 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000284/0.7793, allocations: 79.89 kB / 0.6661 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001384/0.7807, allocations: 0.582 MB / 0.6667 GB, free: 484 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7807, allocations: 0 / 0.6667 GB, free: 484 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005628/0.7863, allocations: 1.188 MB / 0.6679 GB, free: 15.28 MB / 0.5137 GB 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.02523/0.8115, allocations: 6.05 MB / 0.6738 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008452/0.82, allocations: 2.331 MB / 0.6761 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.82, allocations: 4.25 kB / 0.6761 GB, free: 6.832 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004607/0.8246, allocations: 1.31 MB / 0.6773 GB, free: 5.496 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/0.8271, allocations: 308.3 kB / 0.6776 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05382/0.8809, allocations: 15.86 MB / 0.6931 GB, free: 4.562 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.8821, allocations: 0.7519 MB / 0.6939 GB, free: 3.773 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001924/0.884, allocations: 416.1 kB / 0.6942 GB, free: 3.363 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/0.8854, allocations: 0.8349 MB / 0.6951 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of SimCode: time 1.122e-06/0.8854, allocations: 3.938 kB / 0.6951 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3407/1.226, allocations: 63.46 MB / 0.757 GB, free: 170.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.52/16.75, allocations: 10.59 kB / 0.757 GB, free: 170.6 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate.fmu > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.556652932893485] Failed to read output from testmodel.py, exit status != 0: 16.91002153698355 16.929475224 16.416702333 Calling exit ...