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.001401/0.001401, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001605/0.001605, allocations: 212.7 kB / 22.24 MB, free: 5.262 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.482/1.482, allocations: 230.6 MB / 256 MB, free: 7.824 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.1668/0.1668, allocations: 24 MB / 336.4 MB, free: 10.86 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.002652/0.002652, allocations: 67.91 kB / 471.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3474, allocations: 59.89 MB / 0.5187 GB, free: 9.57 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.07527/0.4227, allocations: 28.7 MB / 0.5468 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03992/0.4626, allocations: 25.3 MB / 0.5715 GB, free: 3.695 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002072/0.4647, allocations: 31.75 kB / 0.5715 GB, free: 3.664 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002104/0.4668, allocations: 0.5233 MB / 0.572 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008694/0.4755, allocations: 2.565 MB / 0.5745 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01074/0.4862, allocations: 3.573 MB / 0.578 GB, free: 12.96 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004456/0.4907, allocations: 2.724 MB / 0.5807 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002318/0.493, allocations: 1.341 MB / 0.582 GB, free: 8.852 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00254/0.4956, allocations: 1.45 MB / 0.5834 GB, free: 7.398 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003251/0.4988, allocations: 1.499 MB / 0.5849 GB, free: 5.895 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007198/0.4995, allocations: 248 kB / 0.5851 GB, free: 5.652 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009256/0.5088, allocations: 2.995 MB / 0.588 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000994/0.5098, allocations: 0.6233 MB / 0.5886 GB, free: 2.027 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.5113, allocations: 1.031 MB / 0.5896 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.5247, allocations: 6.113 MB / 0.5956 GB, free: 10.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.5247, allocations: 0 / 0.5956 GB, free: 10.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5247, allocations: 0 / 0.5956 GB, free: 10.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.745e-05/0.5248, allocations: 0 / 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.007441/0.5322, allocations: 2.935 MB / 0.5985 GB, free: 7.875 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.5323, allocations: 12.03 kB / 0.5985 GB, free: 7.863 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003738/0.5327, allocations: 265.9 kB / 0.5987 GB, free: 7.594 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002289/0.535, allocations: 470.8 kB / 0.5992 GB, free: 7.133 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002538/0.5375, allocations: 1.042 MB / 0.6002 GB, free: 6.062 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003498/0.5378, allocations: 357.8 kB / 0.6006 GB, free: 5.664 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004843/0.5383, allocations: 188.3 kB / 0.6007 GB, free: 5.48 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00508/0.5434, allocations: 2.539 MB / 0.6032 GB, free: 2.906 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.563e-05/0.5434, allocations: 0 / 0.6032 GB, free: 2.906 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002661/0.5437, allocations: 72 kB / 0.6033 GB, free: 2.836 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.798e-05/0.5438, allocations: 44 kB / 0.6033 GB, free: 2.793 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005879/0.5496, 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.01685/0.5665, allocations: 7.111 MB / 0.6134 GB, free: 8.379 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009668/0.5762, allocations: 4.647 MB / 0.6179 GB, free: 3.719 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002333/0.5785, allocations: 1.16 MB / 0.619 GB, free: 2.559 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01319/0.5917, allocations: 5.781 MB / 0.6247 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/0.5917, allocations: 51.88 kB / 0.6247 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001404/0.5931, allocations: 310.7 kB / 0.625 GB, free: 12.38 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.469e-06/0.5931, allocations: 0 / 0.625 GB, free: 12.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03013/0.6233, allocations: 7.354 MB / 0.6322 GB, free: 4.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.6233, allocations: 77.41 kB / 0.6323 GB, free: 4.895 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.6246, allocations: 0.9323 MB / 0.6332 GB, free: 3.945 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002552/0.6249, allocations: 53.7 kB / 0.6333 GB, free: 3.887 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006836/0.6256, allocations: 0.8247 MB / 0.6341 GB, free: 3.051 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000802/0.6264, allocations: 0.67 MB / 0.6347 GB, free: 2.375 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007568/0.6271, allocations: 415.9 kB / 0.6351 GB, free: 1.961 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.6273, allocations: 305.1 kB / 0.6354 GB, free: 1.66 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/0.6289, allocations: 0.789 MB / 0.6362 GB, free: 0.8672 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002179/0.631, allocations: 1.371 MB / 0.6375 GB, free: 15.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004153/0.6352, allocations: 2.364 MB / 0.6398 GB, free: 12.62 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.039e-05/0.6352, allocations: 8 kB / 0.6398 GB, free: 12.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01269/0.6479, allocations: 3.384 MB / 0.6431 GB, free: 9.207 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.6479, allocations: 12 kB / 0.6431 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.133e-05/0.648, allocations: 20 kB / 0.6432 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003926/0.6519, allocations: 0.8142 MB / 0.644 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002264/0.6542, allocations: 0.5188 MB / 0.6445 GB, free: 7.832 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006144/0.6603, allocations: 3.662 MB / 0.648 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.6621, allocations: 71.98 kB / 0.6481 GB, free: 3.871 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003948/0.6625, allocations: 127.9 kB / 0.6482 GB, free: 3.746 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.001076/0.6635, allocations: 393.1 kB / 0.6486 GB, free: 3.352 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005071/0.6641, allocations: 155 kB / 0.6488 GB, free: 3.199 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/0.6771, allocations: 3.331 MB / 0.652 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.6771, allocations: 16 kB / 0.652 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.6771, allocations: 4 kB / 0.652 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.854e-05/0.6772, allocations: 15.89 kB / 0.652 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01686/0.6941, allocations: 4.934 MB / 0.6569 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-05/0.6941, allocations: 0 / 0.6569 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002012/0.6961, allocations: 359.6 kB / 0.6572 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003999/0.7001, allocations: 0.8061 MB / 0.658 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003763/0.7005, allocations: 63.95 kB / 0.658 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005833/0.7063, allocations: 3.553 MB / 0.6615 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.7063, allocations: 3.938 kB / 0.6615 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0149/0.7212, allocations: 4.234 MB / 0.6657 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004533/0.7217, allocations: 146.9 kB / 0.6658 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000426/0.7221, allocations: 32 kB / 0.6658 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.7232, allocations: 39.98 kB / 0.6659 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000528/0.7237, allocations: 205.6 kB / 0.6661 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002157/0.724, allocations: 83.94 kB / 0.6661 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009036/0.7249, allocations: 0.5742 MB / 0.6667 GB, free: 476 kB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.7249, allocations: 0 / 0.6667 GB, free: 476 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003502/0.7284, allocations: 1.184 MB / 0.6679 GB, free: 15.28 MB / 0.5138 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.01783/0.7462, allocations: 6.05 MB / 0.6738 GB, free: 9.191 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.005853/0.752, allocations: 2.335 MB / 0.676 GB, free: 6.828 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.7521, allocations: 3.938 kB / 0.6761 GB, free: 6.824 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003342/0.7554, allocations: 1.31 MB / 0.6773 GB, free: 5.488 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.7574, allocations: 319.9 kB / 0.6776 GB, free: 5.172 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04339/0.8008, allocations: 15.85 MB / 0.6931 GB, free: 4.551 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00124/0.802, allocations: 0.7518 MB / 0.6938 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001869/0.8039, allocations: 420 kB / 0.6942 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001405/0.8053, allocations: 0.831 MB / 0.6951 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of SimCode: time 1.162e-06/0.8053, allocations: 0 / 0.6951 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3266/1.132, allocations: 63.46 MB / 0.757 GB, free: 170.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.76, allocations: 7.812 kB / 0.757 GB, free: 170.6 MB / 0.5606 GB " [Timeout remaining time 643] (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 os._exit(0), Time elapsed: 19.652038236148655] Failed to read output from testmodel.py, exit status != 0: 16.919134291820228 16.937501545 16.409082423 Calling exit ...