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.001382/0.001382, allocations: 107.9 kB / 16.45 MB, free: 6.453 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.001417/0.001417, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.538/1.538, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.1458/0.1458, allocations: 23.85 MB / 332.7 MB, free: 12.36 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.002051/0.002051, allocations: 63.91 kB / 466 MB, free: 10.1 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3288, allocations: 59.82 MB / 0.5135 GB, free: 8.855 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.04087/0.3697, allocations: 29.4 MB / 0.5422 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03809/0.4078, allocations: 28.84 MB / 0.5703 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001723/0.4095, allocations: 39.69 kB / 0.5704 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001759/0.4112, allocations: 0.5725 MB / 0.5709 GB, free: 432 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008107/0.4193, allocations: 2.594 MB / 0.5735 GB, free: 13.82 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009803/0.4291, allocations: 3.546 MB / 0.5769 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004151/0.4333, allocations: 2.727 MB / 0.5796 GB, free: 7.512 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001853/0.4351, allocations: 1.414 MB / 0.581 GB, free: 6.062 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/0.4369, allocations: 1.454 MB / 0.5824 GB, free: 4.605 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002337/0.4392, allocations: 1.643 MB / 0.584 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004217/0.4397, allocations: 252 kB / 0.5842 GB, free: 2.711 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009009/0.4487, allocations: 3.187 MB / 0.5874 GB, free: 15.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007879/0.4495, allocations: 0.6231 MB / 0.588 GB, free: 14.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001549/0.451, allocations: 1.217 MB / 0.5892 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01359/0.4646, allocations: 6.125 MB / 0.5951 GB, free: 7.523 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.4646, allocations: 0 / 0.5951 GB, free: 7.523 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4646, allocations: 0 / 0.5951 GB, free: 7.523 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.872e-05/0.4647, allocations: 0 / 0.5951 GB, free: 7.523 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.006885/0.4715, allocations: 3.009 MB / 0.5981 GB, free: 4.453 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.066e-05/0.4716, allocations: 15.97 kB / 0.5981 GB, free: 4.438 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003964/0.472, allocations: 266 kB / 0.5983 GB, free: 4.168 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002544/0.4745, allocations: 478.6 kB / 0.5988 GB, free: 3.699 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002565/0.4771, allocations: 1.112 MB / 0.5999 GB, free: 2.547 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002479/0.4774, allocations: 251 kB / 0.6001 GB, free: 2.277 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004614/0.4778, allocations: 192.3 kB / 0.6003 GB, free: 2.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00579/0.4836, allocations: 2.531 MB / 0.6028 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.4836, allocations: 0 / 0.6028 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/0.4839, allocations: 72 kB / 0.6029 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.603e-05/0.4839, allocations: 48 kB / 0.6029 GB, free: 15.41 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005777/0.4897, allocations: 3.211 MB / 0.606 GB, free: 12.19 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.01506/0.5048, allocations: 8.466 MB / 0.6143 GB, free: 3.422 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/0.5148, allocations: 5.292 MB / 0.6195 GB, free: 14 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002227/0.517, allocations: 1.16 MB / 0.6206 GB, free: 12.83 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01555/0.5326, allocations: 10.32 MB / 0.6307 GB, free: 1.426 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.5326, allocations: 51.81 kB / 0.6307 GB, free: 1.367 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001474/0.5341, allocations: 318.7 kB / 0.631 GB, free: 1.055 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 3.957e-06/0.5341, allocations: 0 / 0.631 GB, free: 1.055 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03157/0.5656, allocations: 7.573 MB / 0.6384 GB, free: 9.387 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.5657, allocations: 73.39 kB / 0.6385 GB, free: 9.305 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.567, allocations: 0.9013 MB / 0.6394 GB, free: 8.387 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003136/0.5673, allocations: 53.7 kB / 0.6394 GB, free: 8.328 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006581/0.568, allocations: 0.8286 MB / 0.6402 GB, free: 7.488 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007263/0.5687, allocations: 0.6623 MB / 0.6409 GB, free: 6.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000686/0.5694, allocations: 415.9 kB / 0.6413 GB, free: 6.406 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.5695, allocations: 309.1 kB / 0.6416 GB, free: 6.102 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.5711, allocations: 0.7851 MB / 0.6423 GB, free: 5.312 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002153/0.5732, allocations: 1.383 MB / 0.6437 GB, free: 3.668 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004081/0.5773, allocations: 2.364 MB / 0.646 GB, free: 1.051 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.5773, allocations: 4 kB / 0.646 GB, free: 1.047 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01302/0.5903, allocations: 3.384 MB / 0.6493 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.5904, allocations: 12 kB / 0.6493 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.799e-05/0.5904, allocations: 20 kB / 0.6493 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003997/0.5944, allocations: 0.8186 MB / 0.6501 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002239/0.5966, allocations: 0.5149 MB / 0.6506 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006222/0.6029, allocations: 3.892 MB / 0.6544 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.6046, allocations: 71.98 kB / 0.6545 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/0.6049, allocations: 124 kB / 0.6546 GB, free: 7.906 MB / 0.4981 GB 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.0008738/0.6058, allocations: 401 kB / 0.655 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004078/0.6062, allocations: 159 kB / 0.6552 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/0.6192, allocations: 3.331 MB / 0.6584 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.637e-05/0.6192, allocations: 16 kB / 0.6584 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/0.6192, allocations: 7.938 kB / 0.6584 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-05/0.6193, allocations: 7.969 kB / 0.6585 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/0.635, allocations: 5.224 MB / 0.6636 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/0.6351, allocations: 0 / 0.6636 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/0.6368, allocations: 363.5 kB / 0.6639 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003883/0.6407, allocations: 0.7945 MB / 0.6647 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002957/0.641, allocations: 67.95 kB / 0.6647 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005454/0.6464, allocations: 3.799 MB / 0.6685 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6464, allocations: 0 / 0.6685 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/0.6608, allocations: 4.242 MB / 0.6726 GB, free: 5.105 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004207/0.6612, allocations: 220 kB / 0.6728 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002775/0.6615, allocations: 35.98 kB / 0.6728 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000994/0.6625, allocations: 36 kB / 0.6729 GB, free: 4.801 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005387/0.663, allocations: 197.7 kB / 0.6731 GB, free: 4.605 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/0.6632, allocations: 87.94 kB / 0.6731 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008325/0.664, allocations: 0.5781 MB / 0.6737 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.664, allocations: 0 / 0.6737 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003722/0.6678, allocations: 1.188 MB / 0.6749 GB, free: 2.742 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.01673/0.6845, allocations: 6.045 MB / 0.6808 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005007/0.6895, allocations: 2.418 MB / 0.6831 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6895, allocations: 0 / 0.6831 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002701/0.6922, allocations: 1.385 MB / 0.6845 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.6938, allocations: 319.5 kB / 0.6848 GB, free: 8.453 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04046/0.7342, allocations: 15.83 MB / 0.7002 GB, free: 7.852 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.7353, allocations: 1.329 MB / 0.7015 GB, free: 6.488 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001551/0.7368, allocations: 428 kB / 0.702 GB, free: 6.066 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001265/0.7381, allocations: 0.831 MB / 0.7028 GB, free: 5.238 MB / 0.545 GB Notification: Performance of SimCode: time 1.032e-06/0.7381, allocations: 3.938 kB / 0.7028 GB, free: 5.234 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3482/1.086, allocations: 60.9 MB / 0.7622 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.05/18.13, allocations: 15.19 kB / 0.7623 GB, free: 159.5 MB / 0.5606 GB " [Timeout remaining time 642] (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 sys.exit(0), Time elapsed: 73.26655086700339] Failed to read output from testmodel.py, exit status != 0: 18.26121296499332 18.270315281 17.803487441 Calling exit ...