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.001874/0.001874, 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.002422/0.002422, allocations: 211.3 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.549/1.549, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.1421/0.1421, allocations: 23.88 MB / 336.3 MB, free: 10.97 MB / 270.1 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: 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.002062/0.002062, allocations: 59.91 kB / 471.1 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3958, allocations: 59.86 MB / 0.5185 GB, free: 9.203 MB / 382.1 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.07866/0.4745, allocations: 28.7 MB / 0.5466 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0362/0.5107, allocations: 25.3 MB / 0.5713 GB, free: 3.773 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001654/0.5123, allocations: 35.69 kB / 0.5713 GB, free: 3.738 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00184/0.5142, allocations: 0.5194 MB / 0.5718 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008505/0.5227, allocations: 2.565 MB / 0.5743 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01083/0.5335, allocations: 3.573 MB / 0.5778 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004527/0.538, allocations: 2.72 MB / 0.5805 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002305/0.5403, allocations: 1.348 MB / 0.5818 GB, free: 8.926 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002343/0.5427, allocations: 1.45 MB / 0.5832 GB, free: 7.473 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003108/0.5458, allocations: 1.495 MB / 0.5847 GB, free: 5.973 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007819/0.5466, allocations: 252 kB / 0.5849 GB, free: 5.727 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009261/0.5558, allocations: 2.995 MB / 0.5878 GB, free: 2.727 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009974/0.5568, allocations: 0.6232 MB / 0.5884 GB, free: 2.102 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00183/0.5587, allocations: 1.031 MB / 0.5894 GB, free: 1.066 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.572, allocations: 6.109 MB / 0.5954 GB, free: 10.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.572, allocations: 3.938 kB / 0.5954 GB, free: 10.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.572, allocations: 0 / 0.5954 GB, free: 10.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001354/0.5722, allocations: 0 / 0.5954 GB, free: 10.93 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.007668/0.5798, allocations: 2.927 MB / 0.5983 GB, free: 7.957 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.5799, allocations: 12.02 kB / 0.5983 GB, free: 7.945 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005913/0.5805, allocations: 270 kB / 0.5985 GB, free: 7.672 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002449/0.5829, allocations: 470.6 kB / 0.599 GB, free: 7.211 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002458/0.5854, allocations: 1.05 MB / 0.6 GB, free: 6.133 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000343/0.5857, allocations: 365.8 kB / 0.6004 GB, free: 5.727 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005351/0.5862, allocations: 184.3 kB / 0.6005 GB, free: 5.547 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004933/0.5912, allocations: 2.535 MB / 0.603 GB, free: 2.977 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.169e-05/0.5912, allocations: 3.938 kB / 0.603 GB, free: 2.973 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002252/0.5914, allocations: 72 kB / 0.6031 GB, free: 2.902 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.771e-05/0.5915, allocations: 44 kB / 0.6031 GB, free: 2.859 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00549/0.597, allocations: 3.176 MB / 0.6062 GB, free: 15.68 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.01434/0.6113, allocations: 7.114 MB / 0.6132 GB, free: 8.445 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009495/0.6208, allocations: 4.666 MB / 0.6177 GB, free: 3.766 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002336/0.6231, allocations: 1.157 MB / 0.6189 GB, free: 2.609 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01344/0.6366, allocations: 5.769 MB / 0.6245 GB, free: 12.81 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.002e-05/0.6366, allocations: 51.86 kB / 0.6245 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001375/0.638, allocations: 310.7 kB / 0.6248 GB, free: 12.44 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.709e-06/0.638, allocations: 0 / 0.6248 GB, free: 12.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.029/0.667, allocations: 7.35 MB / 0.632 GB, free: 5.047 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.6671, allocations: 73.41 kB / 0.6321 GB, free: 4.965 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.6683, allocations: 0.9323 MB / 0.633 GB, free: 4.016 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002445/0.6686, allocations: 53.7 kB / 0.633 GB, free: 3.957 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000656/0.6692, allocations: 0.8286 MB / 0.6339 GB, free: 3.117 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000674/0.6699, allocations: 0.67 MB / 0.6345 GB, free: 2.441 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006349/0.6706, allocations: 415.9 kB / 0.6349 GB, free: 2.027 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.6707, allocations: 305.1 kB / 0.6352 GB, free: 1.727 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.6722, allocations: 0.7851 MB / 0.636 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002069/0.6743, allocations: 1.375 MB / 0.6373 GB, free: 15.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003927/0.6782, allocations: 2.364 MB / 0.6396 GB, free: 12.68 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/0.6782, allocations: 8 kB / 0.6396 GB, free: 12.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01235/0.6905, allocations: 3.384 MB / 0.6429 GB, free: 9.273 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.6906, allocations: 12 kB / 0.6429 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.959e-05/0.6906, allocations: 20 kB / 0.643 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00381/0.6944, allocations: 0.8257 MB / 0.6438 GB, free: 8.406 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00227/0.6967, allocations: 0.5149 MB / 0.6443 GB, free: 7.891 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006039/0.7027, allocations: 3.658 MB / 0.6478 GB, free: 4.004 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001773/0.7045, allocations: 71.98 kB / 0.6479 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002688/0.7048, allocations: 123.9 kB / 0.648 GB, free: 3.812 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.0009166/0.7057, allocations: 397.2 kB / 0.6484 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004089/0.7061, allocations: 155 kB / 0.6486 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/0.7183, allocations: 3.327 MB / 0.6518 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.823e-05/0.7183, allocations: 20 kB / 0.6518 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.67e-05/0.7183, allocations: 8 kB / 0.6518 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-05/0.7184, allocations: 19.89 kB / 0.6518 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/0.7339, allocations: 4.923 MB / 0.6567 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.7339, allocations: 3.984 kB / 0.6567 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/0.7357, allocations: 367.5 kB / 0.657 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003706/0.7394, allocations: 0.7944 MB / 0.6578 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003009/0.7397, allocations: 71.89 kB / 0.6579 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005389/0.7451, allocations: 3.557 MB / 0.6613 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.7451, allocations: 0 / 0.6613 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01394/0.759, allocations: 4.242 MB / 0.6655 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004178/0.7595, allocations: 142.9 kB / 0.6656 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003124/0.7598, allocations: 32 kB / 0.6656 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009829/0.7607, allocations: 39.98 kB / 0.6657 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004881/0.7612, allocations: 205.6 kB / 0.6659 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/0.7614, allocations: 83.94 kB / 0.6659 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001026/0.7625, allocations: 0.5742 MB / 0.6665 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7625, allocations: 0 / 0.6665 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003638/0.7661, allocations: 1.192 MB / 0.6677 GB, free: 15.32 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.01769/0.7838, allocations: 6.042 MB / 0.6736 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005801/0.7896, allocations: 2.339 MB / 0.6759 GB, free: 6.875 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.7896, allocations: 0 / 0.6759 GB, free: 6.875 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002831/0.7924, allocations: 1.306 MB / 0.6771 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.794, allocations: 314.7 kB / 0.6774 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0401/0.8341, allocations: 15.84 MB / 0.6929 GB, free: 4.621 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008492/0.835, allocations: 0.7519 MB / 0.6936 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001611/0.8366, allocations: 424 kB / 0.694 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/0.8378, allocations: 0.831 MB / 0.6949 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of SimCode: time 1.032e-06/0.8378, allocations: 0 / 0.6949 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3554/1.193, allocations: 63.46 MB / 0.7568 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.6/16.79, allocations: 1.281 kB / 0.7568 GB, free: 170.3 MB / 0.5606 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Obsolete_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.778866712003946] Failed to read output from testmodel.py, exit status != 0: 16.948910688981414 16.970658883 16.394683372 Calling exit ...