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.001242/0.001242, 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.001374/0.001374, allocations: 217.6 kB / 22.25 MB, free: 5.25 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.372/1.372, allocations: 230.6 MB / 256 MB, free: 7.777 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.1308/0.1308, allocations: 23.88 MB / 336.3 MB, free: 10.96 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.002042/0.002042, allocations: 63.91 kB / 471.1 MB, free: 7.508 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3038, allocations: 59.86 MB / 0.5185 GB, free: 9.562 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.07155/0.3754, allocations: 28.62 MB / 0.5465 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03384/0.4092, allocations: 25.3 MB / 0.5712 GB, free: 3.973 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001869/0.4111, allocations: 31.75 kB / 0.5712 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.4128, allocations: 0.5194 MB / 0.5717 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008491/0.4213, allocations: 2.569 MB / 0.5742 GB, free: 0.832 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01006/0.4313, allocations: 3.573 MB / 0.5777 GB, free: 13.24 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004124/0.4355, allocations: 2.724 MB / 0.5804 GB, free: 10.51 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001999/0.4375, allocations: 1.372 MB / 0.5817 GB, free: 9.098 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002098/0.4396, allocations: 1.45 MB / 0.5831 GB, free: 7.645 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002725/0.4423, allocations: 1.647 MB / 0.5848 GB, free: 5.992 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000546/0.4428, allocations: 252 kB / 0.585 GB, free: 5.746 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009515/0.4524, allocations: 3.069 MB / 0.588 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008704/0.4532, allocations: 0.6193 MB / 0.5886 GB, free: 2.051 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001528/0.4548, allocations: 1.047 MB / 0.5896 GB, free: 1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01244/0.4672, allocations: 6.105 MB / 0.5956 GB, free: 10.87 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.4672, allocations: 0 / 0.5956 GB, free: 10.87 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4672, allocations: 0 / 0.5956 GB, free: 10.87 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.804e-05/0.4672, allocations: 7.938 kB / 0.5956 GB, free: 10.86 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.005534/0.4728, allocations: 2.927 MB / 0.5984 GB, free: 7.891 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.4728, allocations: 8.031 kB / 0.5985 GB, free: 7.883 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003181/0.4731, allocations: 262 kB / 0.5987 GB, free: 7.617 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001962/0.4751, allocations: 478.6 kB / 0.5992 GB, free: 7.148 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002036/0.4771, allocations: 1.05 MB / 0.6002 GB, free: 6.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000306/0.4774, allocations: 361.8 kB / 0.6005 GB, free: 5.668 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003438/0.4778, allocations: 188.3 kB / 0.6007 GB, free: 5.484 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004004/0.4818, allocations: 2.527 MB / 0.6032 GB, free: 2.922 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.658e-05/0.4818, allocations: 0 / 0.6032 GB, free: 2.922 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001949/0.482, allocations: 79.98 kB / 0.6033 GB, free: 2.844 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.62e-05/0.482, allocations: 48 kB / 0.6033 GB, free: 2.797 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005111/0.4871, allocations: 3.18 MB / 0.6064 GB, free: 15.61 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.01357/0.5007, allocations: 7.107 MB / 0.6133 GB, free: 8.387 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008806/0.5095, allocations: 4.665 MB / 0.6179 GB, free: 3.707 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001888/0.5114, allocations: 1.157 MB / 0.619 GB, free: 2.551 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01213/0.5235, allocations: 5.767 MB / 0.6247 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.5236, allocations: 51.88 kB / 0.6247 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001251/0.5248, allocations: 318.6 kB / 0.625 GB, free: 12.38 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 3.807e-06/0.5248, allocations: 0 / 0.625 GB, free: 12.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.02712/0.552, allocations: 7.35 MB / 0.6322 GB, free: 4.984 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.552, allocations: 77.41 kB / 0.6323 GB, free: 4.898 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.5532, allocations: 0.9322 MB / 0.6332 GB, free: 3.949 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002297/0.5535, allocations: 53.7 kB / 0.6332 GB, free: 3.891 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006276/0.5541, allocations: 0.8247 MB / 0.634 GB, free: 3.055 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006529/0.5547, allocations: 0.67 MB / 0.6347 GB, free: 2.379 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006227/0.5554, allocations: 411.9 kB / 0.6351 GB, free: 1.969 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.5555, allocations: 305.1 kB / 0.6354 GB, free: 1.668 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001446/0.5569, allocations: 0.789 MB / 0.6361 GB, free: 0.875 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001923/0.5588, allocations: 1.371 MB / 0.6375 GB, free: 15.24 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003612/0.5625, allocations: 2.36 MB / 0.6398 GB, free: 12.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.5625, allocations: 8 kB / 0.6398 GB, free: 12.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01154/0.574, allocations: 3.392 MB / 0.6431 GB, free: 9.211 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.574, allocations: 12 kB / 0.6431 GB, free: 9.199 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.628e-05/0.5741, allocations: 20 kB / 0.6431 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003598/0.5777, allocations: 0.8143 MB / 0.6439 GB, free: 8.355 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/0.5798, allocations: 0.5188 MB / 0.6444 GB, free: 7.836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005712/0.5855, allocations: 3.661 MB / 0.648 GB, free: 3.945 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.5871, allocations: 76.05 kB / 0.6481 GB, free: 3.871 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002206/0.5874, allocations: 120 kB / 0.6482 GB, free: 3.754 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.0008432/0.5882, allocations: 401 kB / 0.6486 GB, free: 3.352 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003805/0.5886, allocations: 155 kB / 0.6487 GB, free: 3.199 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0117/0.6003, allocations: 3.331 MB / 0.652 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/0.6003, allocations: 20 kB / 0.652 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.6003, allocations: 4 kB / 0.652 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-05/0.6004, allocations: 11.91 kB / 0.652 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0142/0.6145, allocations: 4.93 MB / 0.6568 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.6146, allocations: 0 / 0.6568 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001491/0.616, allocations: 367.5 kB / 0.6572 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0034/0.6194, allocations: 0.7906 MB / 0.658 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001733/0.6196, allocations: 71.94 kB / 0.658 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004868/0.6245, allocations: 3.553 MB / 0.6615 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6245, allocations: 0 / 0.6615 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/0.6369, allocations: 4.249 MB / 0.6656 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.6373, allocations: 135 kB / 0.6658 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002203/0.6375, allocations: 32 kB / 0.6658 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008641/0.6384, allocations: 43.98 kB / 0.6658 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004586/0.6388, allocations: 205.6 kB / 0.666 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/0.639, allocations: 75.95 kB / 0.6661 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008076/0.6398, allocations: 0.5742 MB / 0.6667 GB, free: 484 kB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.6398, allocations: 0 / 0.6667 GB, free: 484 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003052/0.6429, allocations: 1.196 MB / 0.6678 GB, free: 15.27 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.01572/0.6586, allocations: 6.049 MB / 0.6738 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004945/0.6635, allocations: 2.338 MB / 0.676 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6635, allocations: 0 / 0.676 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002467/0.666, allocations: 1.307 MB / 0.6773 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.6675, allocations: 318.6 kB / 0.6776 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03802/0.7055, allocations: 15.85 MB / 0.6931 GB, free: 4.555 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008704/0.7064, allocations: 0.7441 MB / 0.6938 GB, free: 3.773 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001445/0.7078, allocations: 412.1 kB / 0.6942 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00123/0.709, allocations: 0.8388 MB / 0.695 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of SimCode: time 8.12e-07/0.709, allocations: 0 / 0.695 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3043/1.013, allocations: 64.09 MB / 0.7576 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/15.45, allocations: 9.688 kB / 0.7576 GB, free: 170.4 MB / 0.5606 GB " [Timeout remaining time 644] (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: 18.070621689024847] Failed to read output from testmodel.py, exit status != 0: 15.59461860099691 15.60392472 15.134535754 Calling exit ...