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.001633/0.001633, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002024/0.002024, allocations: 219.5 kB / 22.24 MB, free: 5.258 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.392/1.392, allocations: 230.6 MB / 256 MB, free: 7.812 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.1339/0.1339, allocations: 23.93 MB / 336.4 MB, free: 10.93 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.001917/0.001917, allocations: 67.91 kB / 471.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3298, allocations: 59.87 MB / 0.5186 GB, free: 9.473 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.07335/0.4031, allocations: 28.62 MB / 0.5466 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03616/0.4393, allocations: 25.3 MB / 0.5713 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001852/0.4411, allocations: 35.69 kB / 0.5713 GB, free: 3.902 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001757/0.4429, allocations: 0.5233 MB / 0.5718 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00879/0.4517, allocations: 2.557 MB / 0.5743 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01087/0.4625, allocations: 3.581 MB / 0.5778 GB, free: 13.2 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004483/0.467, allocations: 2.72 MB / 0.5805 GB, free: 10.47 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002119/0.4691, allocations: 1.372 MB / 0.5818 GB, free: 9.062 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.4713, allocations: 1.45 MB / 0.5832 GB, free: 7.609 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002795/0.4741, allocations: 1.647 MB / 0.5848 GB, free: 5.957 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005648/0.4747, allocations: 252 kB / 0.5851 GB, free: 5.711 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008644/0.4833, allocations: 3.069 MB / 0.5881 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.4843, allocations: 0.6232 MB / 0.5887 GB, free: 2.012 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.4858, allocations: 1.031 MB / 0.5897 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01412/0.4999, allocations: 6.117 MB / 0.5957 GB, free: 10.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4999, allocations: 0 / 0.5957 GB, free: 10.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4999, allocations: 4 kB / 0.5957 GB, free: 10.83 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.105e-05/0.5, allocations: 0 / 0.5957 GB, free: 10.83 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.006846/0.5068, allocations: 2.923 MB / 0.5985 GB, free: 7.863 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.5069, allocations: 12.02 kB / 0.5985 GB, free: 7.852 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003694/0.5073, allocations: 265.9 kB / 0.5988 GB, free: 7.582 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002166/0.5094, allocations: 470.8 kB / 0.5992 GB, free: 7.121 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002286/0.5117, allocations: 1.054 MB / 0.6003 GB, free: 6.039 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003063/0.512, allocations: 357.8 kB / 0.6006 GB, free: 5.641 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004042/0.5124, allocations: 188.3 kB / 0.6008 GB, free: 5.457 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004536/0.517, allocations: 2.535 MB / 0.6033 GB, free: 2.887 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.665e-05/0.517, allocations: 0 / 0.6033 GB, free: 2.887 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002053/0.5172, allocations: 80 kB / 0.6033 GB, free: 2.809 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.799e-05/0.5172, allocations: 44 kB / 0.6034 GB, free: 2.766 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005449/0.5227, allocations: 3.176 MB / 0.6065 GB, free: 15.59 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.01501/0.5377, allocations: 7.114 MB / 0.6134 GB, free: 8.352 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009223/0.5469, allocations: 4.658 MB / 0.618 GB, free: 3.68 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002211/0.5491, allocations: 1.157 MB / 0.6191 GB, free: 2.523 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0131/0.5622, allocations: 5.763 MB / 0.6247 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/0.5623, allocations: 55.8 kB / 0.6248 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001335/0.5636, allocations: 314.6 kB / 0.6251 GB, free: 12.36 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.358e-06/0.5636, allocations: 0 / 0.6251 GB, free: 12.36 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.02724/0.5909, allocations: 7.358 MB / 0.6323 GB, free: 4.953 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.5909, allocations: 73.34 kB / 0.6323 GB, free: 4.871 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.5922, allocations: 0.9283 MB / 0.6332 GB, free: 3.926 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002802/0.5925, allocations: 57.7 kB / 0.6333 GB, free: 3.863 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006607/0.5932, allocations: 0.8247 MB / 0.6341 GB, free: 3.027 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000699/0.5939, allocations: 0.6701 MB / 0.6348 GB, free: 2.352 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006144/0.5945, allocations: 411.9 kB / 0.6351 GB, free: 1.941 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.5946, allocations: 312.9 kB / 0.6354 GB, free: 1.633 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.596, allocations: 0.7851 MB / 0.6362 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/0.598, allocations: 1.375 MB / 0.6376 GB, free: 15.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003693/0.6017, allocations: 2.36 MB / 0.6399 GB, free: 12.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.6017, allocations: 4 kB / 0.6399 GB, free: 12.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01142/0.6132, allocations: 3.392 MB / 0.6432 GB, free: 9.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.6132, allocations: 12 kB / 0.6432 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-05/0.6132, allocations: 16 kB / 0.6432 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003507/0.6167, allocations: 0.8261 MB / 0.644 GB, free: 8.316 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002066/0.6188, allocations: 0.511 MB / 0.6445 GB, free: 7.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005578/0.6244, allocations: 3.665 MB / 0.6481 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.626, allocations: 71.98 kB / 0.6482 GB, free: 3.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002693/0.6263, allocations: 119.9 kB / 0.6483 GB, free: 3.723 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.0008648/0.6271, allocations: 401.1 kB / 0.6487 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003664/0.6275, allocations: 151 kB / 0.6488 GB, free: 3.172 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/0.639, allocations: 3.327 MB / 0.652 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.631e-05/0.6391, allocations: 20 kB / 0.6521 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.6391, allocations: 0 / 0.6521 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.1e-05/0.6391, allocations: 15.89 kB / 0.6521 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01451/0.6536, allocations: 4.93 MB / 0.6569 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/0.6536, allocations: 11.86 kB / 0.6569 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.6553, allocations: 355.6 kB / 0.6572 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003433/0.6587, allocations: 0.8023 MB / 0.658 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002775/0.659, allocations: 63.95 kB / 0.6581 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005153/0.6641, allocations: 3.553 MB / 0.6616 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.6641, allocations: 4.031 kB / 0.6616 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/0.6769, allocations: 4.249 MB / 0.6657 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004348/0.6774, allocations: 139 kB / 0.6658 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002451/0.6776, allocations: 32 kB / 0.6659 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008768/0.6785, allocations: 39.98 kB / 0.6659 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004855/0.679, allocations: 201.6 kB / 0.6661 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001762/0.6792, allocations: 83.94 kB / 0.6662 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000821/0.68, allocations: 0.5703 MB / 0.6667 GB, free: 452 kB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.68, allocations: 0 / 0.6667 GB, free: 452 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003325/0.6833, allocations: 1.196 MB / 0.6679 GB, free: 15.24 MB / 0.5138 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.01554/0.6989, allocations: 6.046 MB / 0.6738 GB, free: 9.16 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.004859/0.7037, allocations: 2.33 MB / 0.6761 GB, free: 6.801 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.7037, allocations: 4 kB / 0.6761 GB, free: 6.797 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.7062, allocations: 1.311 MB / 0.6774 GB, free: 5.461 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.7078, allocations: 324.8 kB / 0.6777 GB, free: 5.148 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03809/0.7459, allocations: 15.84 MB / 0.6932 GB, free: 4.527 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008314/0.7467, allocations: 0.748 MB / 0.6939 GB, free: 3.742 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001574/0.7483, allocations: 420 kB / 0.6943 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/0.7495, allocations: 0.8349 MB / 0.6951 GB, free: 2.496 MB / 0.5294 GB Notification: Performance of SimCode: time 8.91e-07/0.7495, allocations: 4 kB / 0.6951 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.352/1.101, allocations: 64.09 MB / 0.7577 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.76/15.86, allocations: 14.27 kB / 0.7577 GB, free: 170.4 MB / 0.5606 GB " [Timeout remaining time 644] (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 & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2e-05 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: 18.64207944399095] Failed to read output from testmodel.py, exit status != 0: 16.016010522987926 16.026033004 15.523731578 Calling exit ...