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.001358/0.001358, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.00145/0.00145, allocations: 218.9 kB / 22.26 MB, free: 5.125 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.366/1.366, allocations: 230.6 MB / 256 MB, free: 7.984 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.1295/0.1295, allocations: 23.89 MB / 336.3 MB, free: 11.17 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.002031/0.002031, allocations: 67.89 kB / 471.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.3, allocations: 59.87 MB / 0.5187 GB, free: 9.594 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.04201/0.342, allocations: 29.61 MB / 0.5476 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0361/0.3781, allocations: 28.91 MB / 0.5758 GB, free: 15.56 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.3797, allocations: 31.75 kB / 0.5758 GB, free: 15.53 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.3813, allocations: 0.5778 MB / 0.5764 GB, free: 14.95 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007914/0.3892, allocations: 2.631 MB / 0.579 GB, free: 12.3 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009944/0.3992, allocations: 3.569 MB / 0.5825 GB, free: 8.711 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004279/0.4035, allocations: 2.727 MB / 0.5851 GB, free: 5.977 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.4054, allocations: 1.356 MB / 0.5864 GB, free: 4.582 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.4072, allocations: 1.454 MB / 0.5879 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002426/0.4096, allocations: 1.643 MB / 0.5895 GB, free: 1.477 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003815/0.41, allocations: 256 kB / 0.5897 GB, free: 1.227 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009238/0.4192, allocations: 3.19 MB / 0.5928 GB, free: 14.03 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008414/0.4201, allocations: 0.6193 MB / 0.5934 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001491/0.4216, allocations: 1.214 MB / 0.5946 GB, free: 12.19 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01253/0.4341, allocations: 6.133 MB / 0.6006 GB, free: 6.035 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4341, allocations: 0 / 0.6006 GB, free: 6.035 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4341, allocations: 0 / 0.6006 GB, free: 6.035 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.087e-05/0.4342, allocations: 0 / 0.6006 GB, free: 6.035 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.006331/0.4405, allocations: 2.935 MB / 0.6035 GB, free: 3.055 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.4405, allocations: 8.031 kB / 0.6035 GB, free: 3.047 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003493/0.4409, allocations: 269.9 kB / 0.6037 GB, free: 2.773 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00211/0.443, allocations: 470.8 kB / 0.6042 GB, free: 2.312 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.4452, allocations: 1.046 MB / 0.6052 GB, free: 1.238 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002853/0.4454, allocations: 353.8 kB / 0.6055 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003658/0.4458, allocations: 192.3 kB / 0.6057 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004274/0.4501, allocations: 2.535 MB / 0.6082 GB, free: 14.08 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.88e-05/0.4501, allocations: 0 / 0.6082 GB, free: 14.08 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000207/0.4503, allocations: 72 kB / 0.6083 GB, free: 14.01 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.618e-05/0.4504, allocations: 44 kB / 0.6083 GB, free: 13.96 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005243/0.4556, allocations: 3.215 MB / 0.6115 GB, free: 10.75 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.01505/0.4707, allocations: 8.399 MB / 0.6197 GB, free: 2.055 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009141/0.4798, allocations: 4.775 MB / 0.6243 GB, free: 13.26 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002084/0.4819, allocations: 1.164 MB / 0.6255 GB, free: 12.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01258/0.4945, allocations: 6.066 MB / 0.6314 GB, free: 6.008 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.937e-05/0.4945, allocations: 63.8 kB / 0.6314 GB, free: 5.934 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001304/0.4958, allocations: 306.6 kB / 0.6317 GB, free: 5.633 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.669e-06/0.4958, allocations: 8 kB / 0.6317 GB, free: 5.625 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.02866/0.5245, allocations: 7.354 MB / 0.6389 GB, free: 14.22 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.5246, allocations: 69.41 kB / 0.639 GB, free: 14.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.5257, allocations: 0.9013 MB / 0.6399 GB, free: 13.23 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.5259, allocations: 53.7 kB / 0.6399 GB, free: 13.17 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006217/0.5265, allocations: 0.8248 MB / 0.6407 GB, free: 12.33 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006322/0.5272, allocations: 0.674 MB / 0.6414 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006152/0.5278, allocations: 415.9 kB / 0.6418 GB, free: 11.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.5279, allocations: 305.1 kB / 0.6421 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.5293, allocations: 0.7851 MB / 0.6428 GB, free: 10.15 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001972/0.5313, allocations: 1.379 MB / 0.6442 GB, free: 8.508 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003769/0.5351, allocations: 2.36 MB / 0.6465 GB, free: 5.895 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.5351, allocations: 7.938 kB / 0.6465 GB, free: 5.887 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01229/0.5474, allocations: 3.38 MB / 0.6498 GB, free: 2.488 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.677e-05/0.5474, allocations: 12 kB / 0.6498 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.523e-05/0.5474, allocations: 20.09 kB / 0.6498 GB, free: 2.457 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003911/0.5514, allocations: 0.814 MB / 0.6506 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002017/0.5534, allocations: 0.5188 MB / 0.6511 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005903/0.5593, allocations: 3.699 MB / 0.6547 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.5609, allocations: 67.98 kB / 0.6548 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002661/0.5611, allocations: 123.9 kB / 0.6549 GB, free: 13 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.0008288/0.562, allocations: 401.6 kB / 0.6553 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003715/0.5623, allocations: 155 kB / 0.6555 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/0.5745, allocations: 3.327 MB / 0.6587 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.823e-05/0.5745, allocations: 20 kB / 0.6587 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.5746, allocations: 3.938 kB / 0.6587 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.191e-05/0.5746, allocations: 11.95 kB / 0.6587 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01511/0.5897, allocations: 5.203 MB / 0.6638 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.5897, allocations: 0 / 0.6638 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/0.5913, allocations: 363.6 kB / 0.6642 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003764/0.595, allocations: 0.7984 MB / 0.6649 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000259/0.5953, allocations: 67.95 kB / 0.665 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005442/0.6007, allocations: 3.585 MB / 0.6685 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6007, allocations: 3.984 kB / 0.6685 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01348/0.6142, allocations: 4.238 MB / 0.6727 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004025/0.6146, allocations: 135 kB / 0.6728 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.6149, allocations: 36 kB / 0.6728 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009124/0.6158, allocations: 39.98 kB / 0.6729 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004886/0.6163, allocations: 209.6 kB / 0.6731 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/0.6164, allocations: 75.95 kB / 0.6731 GB, free: 10 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000814/0.6172, allocations: 0.5781 MB / 0.6737 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.6172, allocations: 0 / 0.6737 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003276/0.6205, allocations: 1.196 MB / 0.6749 GB, free: 8.219 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.01623/0.6368, allocations: 6.049 MB / 0.6808 GB, free: 2.133 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004732/0.6415, allocations: 2.343 MB / 0.6831 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6415, allocations: 0 / 0.6831 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002544/0.644, allocations: 1.306 MB / 0.6843 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.6455, allocations: 319.4 kB / 0.6846 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04043/0.686, allocations: 15.85 MB / 0.7001 GB, free: 13.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.687, allocations: 1.329 MB / 0.7014 GB, free: 12.12 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001582/0.6886, allocations: 424 kB / 0.7018 GB, free: 11.71 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.6899, allocations: 0.831 MB / 0.7026 GB, free: 10.88 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/0.6899, allocations: 3.938 kB / 0.7026 GB, free: 10.88 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3102/1, allocations: 62.68 MB / 0.7638 GB, free: 165 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.92/17.92, allocations: 6.219 kB / 0.7638 GB, free: 165 MB / 0.5606 GB " [Timeout remaining time 642] (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 sys.exit(0), Time elapsed: 72.77783516800264] Failed to read output from testmodel.py, exit status != 0: 18.067838776994904 18.08124094 17.644737101 Calling exit ...