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.001343/0.001343, allocations: 105.4 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.001451/0.001451, 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.509/1.509, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.1547/0.1547, allocations: 23.88 MB / 332.7 MB, free: 12.32 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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.002306/0.002306, allocations: 63.91 kB / 466 MB, free: 10.04 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.343, allocations: 59.83 MB / 0.5135 GB, free: 8.789 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.04273/0.3857, allocations: 29.57 MB / 0.5424 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04075/0.4265, allocations: 28.84 MB / 0.5706 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002193/0.4287, allocations: 31.75 kB / 0.5706 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.4311, allocations: 0.5767 MB / 0.5712 GB, free: 208 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008994/0.4401, allocations: 2.604 MB / 0.5737 GB, free: 13.58 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01005/0.4501, allocations: 3.538 MB / 0.5772 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004106/0.4542, allocations: 2.731 MB / 0.5798 GB, free: 7.281 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001854/0.4561, allocations: 1.41 MB / 0.5812 GB, free: 5.836 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001856/0.4579, allocations: 1.442 MB / 0.5826 GB, free: 4.391 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.4606, allocations: 1.655 MB / 0.5842 GB, free: 2.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005037/0.4611, allocations: 248 kB / 0.5845 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009404/0.4705, allocations: 3.187 MB / 0.5876 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008868/0.4714, allocations: 0.6271 MB / 0.5882 GB, free: 14.67 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.473, allocations: 1.21 MB / 0.5894 GB, free: 13.45 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01508/0.4881, allocations: 6.129 MB / 0.5954 GB, free: 7.301 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.4881, allocations: 3.938 kB / 0.5954 GB, free: 7.297 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4881, allocations: 0 / 0.5954 GB, free: 7.297 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000132/0.4882, allocations: 0 / 0.5954 GB, free: 7.297 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.008888/0.4971, allocations: 3.014 MB / 0.5983 GB, free: 4.219 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.4972, allocations: 8.031 kB / 0.5983 GB, free: 4.211 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005701/0.4977, allocations: 262 kB / 0.5986 GB, free: 3.945 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002514/0.5002, allocations: 482.6 kB / 0.599 GB, free: 3.473 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002333/0.5026, allocations: 1.112 MB / 0.6001 GB, free: 2.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002915/0.5029, allocations: 255 kB / 0.6004 GB, free: 2.047 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005469/0.5034, allocations: 188.3 kB / 0.6005 GB, free: 1.863 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005615/0.509, allocations: 2.535 MB / 0.603 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.022e-05/0.5091, allocations: 3.984 kB / 0.603 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002932/0.5094, allocations: 72 kB / 0.6031 GB, free: 15.22 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-05/0.5094, allocations: 44 kB / 0.6031 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006479/0.5159, allocations: 3.208 MB / 0.6063 GB, free: 11.96 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.01908/0.535, allocations: 8.469 MB / 0.6145 GB, free: 3.191 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01095/0.5459, allocations: 5.291 MB / 0.6197 GB, free: 13.76 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002748/0.5487, allocations: 1.16 MB / 0.6208 GB, free: 12.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01816/0.5668, allocations: 10.33 MB / 0.6309 GB, free: 1.188 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.844e-05/0.5669, allocations: 47.88 kB / 0.631 GB, free: 1.133 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001584/0.5685, allocations: 314.7 kB / 0.6313 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 8.025e-06/0.5685, allocations: 0 / 0.6313 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03216/0.6006, allocations: 7.581 MB / 0.6387 GB, free: 9.148 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/0.6007, allocations: 73.41 kB / 0.6387 GB, free: 9.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/0.6021, allocations: 0.8936 MB / 0.6396 GB, free: 8.156 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002443/0.6024, allocations: 57.7 kB / 0.6397 GB, free: 8.094 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006882/0.6031, allocations: 0.8247 MB / 0.6405 GB, free: 7.258 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007616/0.6038, allocations: 0.6701 MB / 0.6411 GB, free: 6.582 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008125/0.6046, allocations: 415.9 kB / 0.6415 GB, free: 6.168 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.6048, allocations: 309 kB / 0.6418 GB, free: 5.863 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.6065, allocations: 0.789 MB / 0.6426 GB, free: 5.07 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002281/0.6088, allocations: 1.375 MB / 0.6439 GB, free: 3.434 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004029/0.6128, allocations: 2.356 MB / 0.6462 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/0.6128, allocations: 4 kB / 0.6462 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01319/0.626, allocations: 3.388 MB / 0.6496 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.532e-05/0.6261, allocations: 16 kB / 0.6496 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.6261, allocations: 16 kB / 0.6496 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004092/0.6302, allocations: 0.8218 MB / 0.6504 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/0.6325, allocations: 0.5188 MB / 0.6509 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006428/0.6389, allocations: 3.892 MB / 0.6547 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.6407, allocations: 75.98 kB / 0.6548 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004021/0.6411, allocations: 123.9 kB / 0.6549 GB, free: 7.668 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.001/0.6421, allocations: 393.2 kB / 0.6553 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005136/0.6426, allocations: 167 kB / 0.6554 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01369/0.6563, allocations: 3.319 MB / 0.6587 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.772e-05/0.6563, allocations: 20 kB / 0.6587 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.832e-05/0.6564, allocations: 7.938 kB / 0.6587 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-05/0.6564, allocations: 11.95 kB / 0.6587 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/0.6743, allocations: 5.228 MB / 0.6638 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/0.6743, allocations: 0 / 0.6638 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/0.6761, allocations: 359.5 kB / 0.6641 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004059/0.6802, allocations: 0.7945 MB / 0.6649 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003749/0.6806, allocations: 63.94 kB / 0.665 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005779/0.6863, allocations: 3.803 MB / 0.6687 GB, free: 9.133 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.6864, allocations: 0 / 0.6687 GB, free: 9.133 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/0.7015, allocations: 4.246 MB / 0.6728 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005059/0.702, allocations: 216 kB / 0.673 GB, free: 4.633 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005066/0.7025, allocations: 36 kB / 0.6731 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.7038, allocations: 43.98 kB / 0.6731 GB, free: 4.555 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006551/0.7045, allocations: 201.6 kB / 0.6733 GB, free: 4.355 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000269/0.7048, allocations: 75.94 kB / 0.6734 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009102/0.7057, allocations: 0.5703 MB / 0.6739 GB, free: 3.703 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.7057, allocations: 0 / 0.6739 GB, free: 3.703 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00394/0.7096, allocations: 1.196 MB / 0.6751 GB, free: 2.504 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.01882/0.7284, allocations: 6.049 MB / 0.681 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006001/0.7344, allocations: 2.41 MB / 0.6834 GB, free: 9.961 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.7344, allocations: 4 kB / 0.6834 GB, free: 9.957 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003204/0.7376, allocations: 1.381 MB / 0.6847 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.7396, allocations: 315.6 kB / 0.685 GB, free: 8.223 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04555/0.7851, allocations: 15.83 MB / 0.7005 GB, free: 7.613 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.7864, allocations: 1.329 MB / 0.7018 GB, free: 6.25 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001607/0.788, allocations: 412.1 kB / 0.7022 GB, free: 5.844 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/0.7894, allocations: 0.8388 MB / 0.703 GB, free: 5.008 MB / 0.545 GB Notification: Performance of SimCode: time 1.012e-06/0.7894, allocations: 3.938 kB / 0.703 GB, free: 5.004 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3651/1.155, allocations: 60.92 MB / 0.7625 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.25/18.4, allocations: 8.281 kB / 0.7625 GB, free: 159.2 MB / 0.5606 GB " [Timeout remaining time 641] (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: 73.33919571200386] Failed to read output from testmodel.py, exit status != 0: 18.53739655087702 18.554861374 18.063001611 Calling exit ...