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.001452/0.001452, allocations: 114.5 kB / 18.94 MB, free: 2.957 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.001453/0.001453, allocations: 216 kB / 22.25 MB, free: 5.117 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.353/1.353, allocations: 230.6 MB / 256 MB, free: 8.031 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.1263/0.1263, allocations: 23.85 MB / 336.3 MB, free: 11.23 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.001867/0.001867, allocations: 67.89 kB / 471.2 MB, free: 7.727 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2905, allocations: 59.87 MB / 0.5186 GB, free: 9.613 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.03804/0.3286, allocations: 29.61 MB / 0.5475 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03352/0.3621, allocations: 28.9 MB / 0.5757 GB, free: 15.66 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001522/0.3636, allocations: 35.69 kB / 0.5758 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001737/0.3654, allocations: 0.5739 MB / 0.5763 GB, free: 15.04 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006947/0.3723, allocations: 2.623 MB / 0.5789 GB, free: 12.4 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009856/0.3822, allocations: 3.573 MB / 0.5824 GB, free: 8.809 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004507/0.3867, allocations: 2.727 MB / 0.585 GB, free: 6.074 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.3883, allocations: 1.372 MB / 0.5864 GB, free: 4.664 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.3899, allocations: 1.442 MB / 0.5878 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002443/0.3923, allocations: 1.647 MB / 0.5894 GB, free: 1.566 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003889/0.3927, allocations: 252 kB / 0.5896 GB, free: 1.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008662/0.4013, allocations: 3.194 MB / 0.5928 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007174/0.4021, allocations: 0.6193 MB / 0.5934 GB, free: 13.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001407/0.4035, allocations: 1.206 MB / 0.5945 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0127/0.4162, allocations: 6.133 MB / 0.6005 GB, free: 6.133 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.4162, allocations: 4 kB / 0.6005 GB, free: 6.129 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4162, allocations: 0 / 0.6005 GB, free: 6.129 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.055e-05/0.4162, allocations: 0 / 0.6005 GB, free: 6.129 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.005673/0.4219, allocations: 2.935 MB / 0.6034 GB, free: 3.148 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.4219, allocations: 19.97 kB / 0.6034 GB, free: 3.129 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000323/0.4222, allocations: 258 kB / 0.6037 GB, free: 2.867 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001945/0.4242, allocations: 474.6 kB / 0.6041 GB, free: 2.402 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/0.426, allocations: 1.05 MB / 0.6051 GB, free: 1.324 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/0.4263, allocations: 349.8 kB / 0.6055 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003155/0.4266, allocations: 200.2 kB / 0.6057 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003987/0.4306, allocations: 2.523 MB / 0.6081 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.4306, allocations: 3.938 kB / 0.6081 GB, free: 14.17 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001871/0.4308, allocations: 76 kB / 0.6082 GB, free: 14.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-05/0.4308, allocations: 47.98 kB / 0.6082 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004856/0.4357, allocations: 3.208 MB / 0.6114 GB, free: 10.84 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.01406/0.4498, allocations: 8.392 MB / 0.6196 GB, free: 2.152 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008664/0.4584, allocations: 4.787 MB / 0.6242 GB, free: 13.35 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002088/0.4605, allocations: 1.164 MB / 0.6254 GB, free: 12.18 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/0.4734, allocations: 6.065 MB / 0.6313 GB, free: 6.094 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/0.4734, allocations: 47.88 kB / 0.6314 GB, free: 6.035 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001319/0.4747, allocations: 314.6 kB / 0.6317 GB, free: 5.727 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 3.858e-06/0.4747, allocations: 0 / 0.6317 GB, free: 5.727 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.02904/0.5038, allocations: 7.362 MB / 0.6388 GB, free: 14.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.5038, allocations: 69.41 kB / 0.6389 GB, free: 14.24 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.5051, allocations: 0.9052 MB / 0.6398 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003277/0.5054, allocations: 53.7 kB / 0.6398 GB, free: 13.26 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006206/0.506, allocations: 0.8208 MB / 0.6406 GB, free: 12.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008015/0.5068, allocations: 0.674 MB / 0.6413 GB, free: 11.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006401/0.5075, allocations: 415.9 kB / 0.6417 GB, free: 11.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.5076, allocations: 305.1 kB / 0.642 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001422/0.509, allocations: 0.7851 MB / 0.6428 GB, free: 10.24 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/0.511, allocations: 1.375 MB / 0.6441 GB, free: 8.605 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003615/0.5146, allocations: 2.36 MB / 0.6464 GB, free: 5.992 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.5146, allocations: 8 kB / 0.6464 GB, free: 5.984 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01172/0.5263, allocations: 3.384 MB / 0.6497 GB, free: 2.582 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.784e-05/0.5263, allocations: 12 kB / 0.6497 GB, free: 2.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/0.5264, allocations: 20 kB / 0.6498 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00377/0.5301, allocations: 0.8179 MB / 0.6505 GB, free: 1.723 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001994/0.5321, allocations: 0.5188 MB / 0.6511 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005516/0.5377, allocations: 3.697 MB / 0.6547 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.5392, allocations: 67.98 kB / 0.6547 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000225/0.5394, allocations: 123.9 kB / 0.6548 GB, free: 13.09 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.000772/0.5402, allocations: 401.6 kB / 0.6552 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003516/0.5405, allocations: 155 kB / 0.6554 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/0.5524, allocations: 3.323 MB / 0.6586 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.822e-05/0.5524, allocations: 20 kB / 0.6586 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.5524, allocations: 3.938 kB / 0.6586 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.025e-05/0.5524, allocations: 11.95 kB / 0.6587 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.015/0.5674, allocations: 5.203 MB / 0.6637 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.216e-05/0.5675, allocations: 0 / 0.6637 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/0.5692, allocations: 375.4 kB / 0.6641 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003686/0.5729, allocations: 0.7867 MB / 0.6649 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003201/0.5732, allocations: 75.94 kB / 0.6649 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005119/0.5784, allocations: 3.585 MB / 0.6684 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.5784, allocations: 0 / 0.6684 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/0.5912, allocations: 4.234 MB / 0.6726 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003556/0.5916, allocations: 131 kB / 0.6727 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.5918, allocations: 40 kB / 0.6727 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008915/0.5927, allocations: 39.98 kB / 0.6728 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004381/0.5931, allocations: 205.6 kB / 0.673 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001773/0.5933, allocations: 79.94 kB / 0.673 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007332/0.5941, allocations: 0.5703 MB / 0.6736 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.5941, allocations: 0 / 0.6736 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002886/0.5969, allocations: 1.2 MB / 0.6748 GB, free: 8.312 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.01548/0.6124, allocations: 6.053 MB / 0.6807 GB, free: 2.227 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004545/0.617, allocations: 2.343 MB / 0.683 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.617, allocations: 0 / 0.683 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002424/0.6194, allocations: 1.317 MB / 0.6843 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.6208, allocations: 315 kB / 0.6846 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03697/0.6578, allocations: 15.84 MB / 0.7 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.6588, allocations: 1.329 MB / 0.7013 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001498/0.6603, allocations: 428 kB / 0.7017 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.6615, allocations: 0.8271 MB / 0.7025 GB, free: 10.98 MB / 0.545 GB Notification: Performance of SimCode: time 9.82e-07/0.6615, allocations: 0 / 0.7025 GB, free: 10.98 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3033/0.9648, allocations: 62.69 MB / 0.7638 GB, free: 165 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.83/17.8, allocations: 6.469 kB / 0.7638 GB, free: 165 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: 72.59441743199568] Failed to read output from testmodel.py, exit status != 0: 17.942820948002918 17.95241468 17.534094249 Calling exit ...