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.001793/0.001793, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.002154/0.002154, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.537/1.537, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1331/0.1331, allocations: 23.86 MB / 333.4 MB, free: 1.211 MB / 254.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="cs",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.001985/0.001985, allocations: 71.22 kB / 466.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1019, allocations: 59.83 MB / 0.5142 GB, free: 12.97 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.05369/0.1556, allocations: 29.37 MB / 0.5429 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03941/0.195, allocations: 28.85 MB / 0.571 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.1962, allocations: 35.69 kB / 0.5711 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001532/0.1978, allocations: 0.5739 MB / 0.5716 GB, free: 2.059 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007031/0.2048, allocations: 2.6 MB / 0.5742 GB, free: 15.44 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009148/0.2139, allocations: 3.53 MB / 0.5776 GB, free: 11.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004343/0.2183, allocations: 2.728 MB / 0.5803 GB, free: 9.148 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.2201, allocations: 1.414 MB / 0.5817 GB, free: 7.699 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001794/0.2219, allocations: 1.446 MB / 0.5831 GB, free: 6.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002399/0.2243, allocations: 1.643 MB / 0.5847 GB, free: 4.602 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004062/0.2247, allocations: 248 kB / 0.5849 GB, free: 4.359 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008972/0.2337, allocations: 3.198 MB / 0.588 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000777/0.2345, allocations: 0.6155 MB / 0.5887 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2282/0.4627, allocations: 1.211 MB / 0.5898 GB, free: 25.58 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01417/0.4768, allocations: 6.126 MB / 0.5958 GB, free: 25.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4768, allocations: 0 / 0.5958 GB, free: 25.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4768, allocations: 0 / 0.5958 GB, free: 25.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.349e-05/0.4769, allocations: 0.875 kB / 0.5958 GB, free: 25.27 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.008566/0.4855, allocations: 3.016 MB / 0.5988 GB, free: 23.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.4855, allocations: 9.625 kB / 0.5988 GB, free: 23.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.35e-05/0.4856, allocations: 47.78 kB / 0.5988 GB, free: 23.9 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003597/0.486, allocations: 259.6 kB / 0.5991 GB, free: 23.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002447/0.4884, allocations: 480.6 kB / 0.5995 GB, free: 23.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002185/0.4906, allocations: 1.12 MB / 0.6006 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.4908, allocations: 248.8 kB / 0.6009 GB, free: 23.22 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003927/0.4912, allocations: 198.2 kB / 0.601 GB, free: 23.22 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004195/0.4954, allocations: 2.531 MB / 0.6035 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.64e-05/0.4954, allocations: 2.688 kB / 0.6035 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002207/0.4956, allocations: 74.47 kB / 0.6036 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.723e-05/0.4957, allocations: 44.78 kB / 0.6036 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005718/0.5014, allocations: 3.214 MB / 0.6068 GB, free: 23.05 MB / 446.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.01468/0.5161, allocations: 8.464 MB / 0.615 GB, free: 19.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007959/0.524, allocations: 5.292 MB / 0.6202 GB, free: 17.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/0.526, allocations: 1.161 MB / 0.6213 GB, free: 17.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.012/0.538, allocations: 10.33 MB / 0.6314 GB, free: 8.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.538, allocations: 51.06 kB / 0.6315 GB, free: 8.703 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001423/0.5394, allocations: 308.6 kB / 0.6318 GB, free: 8.535 MB / 446.1 MB Notification: Performance of pre-optimization done (n=158): time 3.818e-06/0.5394, allocations: 2.688 kB / 0.6318 GB, free: 8.535 MB / 446.1 MB Notification: Performance of matching and sorting (n=187): time 0.02826/0.5677, allocations: 7.578 MB / 0.6392 GB, free: 3.301 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.5677, allocations: 71.38 kB / 0.6392 GB, free: 3.219 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.5687, allocations: 0.9079 MB / 0.6401 GB, free: 2.297 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001988/0.5689, allocations: 53.7 kB / 0.6402 GB, free: 2.238 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.5693, allocations: 0.8199 MB / 0.641 GB, free: 1.414 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004081/0.5697, allocations: 0.6673 MB / 0.6416 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005094/0.5702, allocations: 415.9 kB / 0.642 GB, free: 348 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.627e-05/0.5702, allocations: 310.3 kB / 0.6423 GB, free: 40 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/0.5717, allocations: 0.7865 MB / 0.6431 GB, free: 15.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.5739, allocations: 1.37 MB / 0.6444 GB, free: 13.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003921/0.5778, allocations: 2.366 MB / 0.6467 GB, free: 11.14 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/0.5778, allocations: 8 kB / 0.6467 GB, free: 11.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01275/0.5906, allocations: 3.381 MB / 0.65 GB, free: 7.887 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.5906, allocations: 18.64 kB / 0.6501 GB, free: 7.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/0.5907, allocations: 23.62 kB / 0.6501 GB, free: 7.852 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004023/0.5947, allocations: 0.8165 MB / 0.6509 GB, free: 7.062 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/0.5971, allocations: 0.5149 MB / 0.6514 GB, free: 6.578 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006345/0.6034, allocations: 3.896 MB / 0.6552 GB, free: 2.461 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/0.6058, allocations: 67.98 kB / 0.6553 GB, free: 2.395 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003897/0.6062, allocations: 126.6 kB / 0.6554 GB, free: 2.273 MB / 462.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.001089/0.6073, allocations: 396.1 kB / 0.6558 GB, free: 1.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004677/0.6078, allocations: 159 kB / 0.6559 GB, free: 1.754 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/0.6208, allocations: 3.328 MB / 0.6592 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.873e-05/0.6209, allocations: 23.09 kB / 0.6592 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.6209, allocations: 7.938 kB / 0.6592 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.663e-05/0.6209, allocations: 11.95 kB / 0.6592 GB, free: 14.47 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/0.6376, allocations: 5.22 MB / 0.6643 GB, free: 9.273 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/0.6376, allocations: 2.625 kB / 0.6643 GB, free: 9.273 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/0.6395, allocations: 364 kB / 0.6646 GB, free: 8.938 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003854/0.6434, allocations: 0.7908 MB / 0.6654 GB, free: 8.168 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003797/0.6437, allocations: 63.95 kB / 0.6655 GB, free: 8.105 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005748/0.6495, allocations: 3.801 MB / 0.6692 GB, free: 4.066 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.6495, allocations: 0 / 0.6692 GB, free: 4.066 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/0.664, allocations: 4.243 MB / 0.6733 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005451/0.6645, allocations: 212.1 kB / 0.6735 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002912/0.6648, allocations: 32 kB / 0.6736 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.6658, allocations: 43.98 kB / 0.6736 GB, free: 15.53 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005457/0.6664, allocations: 201 kB / 0.6738 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/0.6666, allocations: 81.2 kB / 0.6739 GB, free: 15.26 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000894/0.6675, allocations: 0.5742 MB / 0.6744 GB, free: 14.68 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6675, allocations: 0 / 0.6744 GB, free: 14.68 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004106/0.6716, allocations: 1.196 MB / 0.6756 GB, free: 13.48 MB / 494.1 MB 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.01795/0.6895, allocations: 6.041 MB / 0.6815 GB, free: 7.695 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005579/0.6951, allocations: 2.422 MB / 0.6839 GB, free: 5.305 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6951, allocations: 3.938 kB / 0.6839 GB, free: 5.301 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002741/0.6978, allocations: 1.383 MB / 0.6852 GB, free: 3.906 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.6996, allocations: 314.5 kB / 0.6855 GB, free: 3.637 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04401/0.7436, allocations: 15.85 MB / 0.701 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.7447, allocations: 1.321 MB / 0.7023 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001614/0.7463, allocations: 423.7 kB / 0.7027 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/0.7477, allocations: 0.8362 MB / 0.7035 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of SimCode: time 1.092e-06/0.7477, allocations: 0 / 0.7035 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.133/0.8807, allocations: 60.95 MB / 0.763 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.36/18.24, allocations: 22.52 kB / 0.7631 GB, free: 4.441 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 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: 21.22287898999639] Failed to read output from testmodel.py, exit status != 0: 18.42849251802545 18.444933637 17.964790501 Calling exit ...