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.001274/0.001274, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001477/0.001477, allocations: 215.7 kB / 23.04 MB, free: 5.074 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.434/1.434, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.1408/0.1408, allocations: 23.85 MB / 337.1 MB, free: 11.18 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="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.002053/0.002053, allocations: 63.89 kB / 472 MB, free: 7.664 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2979, allocations: 59.85 MB / 0.5193 GB, free: 9.625 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.04029/0.3381, allocations: 29.45 MB / 0.5481 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03745/0.3756, allocations: 28.9 MB / 0.5763 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00157/0.3772, allocations: 43.62 kB / 0.5764 GB, free: 15.72 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.3789, allocations: 0.5661 MB / 0.5769 GB, free: 15.15 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007832/0.3867, allocations: 2.623 MB / 0.5795 GB, free: 12.51 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01053/0.3972, allocations: 3.566 MB / 0.583 GB, free: 8.926 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004614/0.4018, allocations: 2.727 MB / 0.5856 GB, free: 6.191 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002285/0.4041, allocations: 1.372 MB / 0.587 GB, free: 4.781 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002278/0.4064, allocations: 1.446 MB / 0.5884 GB, free: 3.332 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003083/0.4095, allocations: 1.647 MB / 0.59 GB, free: 1.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007202/0.4102, allocations: 252 kB / 0.5902 GB, free: 1.434 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01091/0.4211, allocations: 3.19 MB / 0.5933 GB, free: 14.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.4223, allocations: 0.6232 MB / 0.594 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001655/0.424, allocations: 1.21 MB / 0.5951 GB, free: 12.4 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01512/0.4391, allocations: 6.129 MB / 0.6011 GB, free: 6.246 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4391, allocations: 4 kB / 0.6011 GB, free: 6.242 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4391, allocations: 0 / 0.6011 GB, free: 6.242 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.941e-05/0.4392, allocations: 0 / 0.6011 GB, free: 6.242 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.008048/0.4472, allocations: 2.938 MB / 0.604 GB, free: 3.258 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.4473, allocations: 12.03 kB / 0.604 GB, free: 3.246 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.982e-05/0.4473, allocations: 47.84 kB / 0.6041 GB, free: 3.199 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003916/0.4477, allocations: 266 kB / 0.6043 GB, free: 2.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002331/0.4501, allocations: 474.6 kB / 0.6048 GB, free: 2.465 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/0.4522, allocations: 1.046 MB / 0.6058 GB, free: 1.391 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003113/0.4525, allocations: 353.8 kB / 0.6061 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003897/0.4529, allocations: 200.1 kB / 0.6063 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004507/0.4574, allocations: 2.52 MB / 0.6088 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.582e-05/0.4574, allocations: 3.938 kB / 0.6088 GB, free: 14.23 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/0.4576, allocations: 80 kB / 0.6088 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.974e-05/0.4577, allocations: 44 kB / 0.6089 GB, free: 14.11 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005576/0.4633, allocations: 3.208 MB / 0.612 GB, free: 10.9 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.01531/0.4786, allocations: 8.392 MB / 0.6202 GB, free: 2.219 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/0.4887, allocations: 4.782 MB / 0.6249 GB, free: 13.42 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002779/0.4915, allocations: 1.164 MB / 0.626 GB, free: 12.26 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01654/0.508, allocations: 6.063 MB / 0.6319 GB, free: 6.168 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.75e-05/0.5081, allocations: 51.88 kB / 0.632 GB, free: 6.105 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001534/0.5096, allocations: 310.7 kB / 0.6323 GB, free: 5.801 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 7.374e-06/0.5096, allocations: 4 kB / 0.6323 GB, free: 5.797 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03267/0.5423, allocations: 7.366 MB / 0.6395 GB, free: 14.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/0.5424, allocations: 69.41 kB / 0.6396 GB, free: 14.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001433/0.5438, allocations: 0.9013 MB / 0.6404 GB, free: 13.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003563/0.5442, allocations: 57.7 kB / 0.6405 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006686/0.5448, allocations: 0.8169 MB / 0.6413 GB, free: 12.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009281/0.5458, allocations: 0.6661 MB / 0.6419 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001016/0.5468, allocations: 427.8 kB / 0.6423 GB, free: 11.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.5469, allocations: 305.1 kB / 0.6426 GB, free: 11.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.5487, allocations: 0.7812 MB / 0.6434 GB, free: 10.31 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002366/0.551, allocations: 1.375 MB / 0.6447 GB, free: 8.676 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004396/0.5554, allocations: 2.368 MB / 0.6471 GB, free: 6.055 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/0.5554, allocations: 4 kB / 0.6471 GB, free: 6.051 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01324/0.5687, allocations: 3.376 MB / 0.6504 GB, free: 2.656 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.5687, allocations: 12 kB / 0.6504 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.84e-05/0.5687, allocations: 20.88 kB / 0.6504 GB, free: 2.625 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003901/0.5726, allocations: 0.8179 MB / 0.6512 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/0.5748, allocations: 0.5187 MB / 0.6517 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006115/0.581, allocations: 3.693 MB / 0.6553 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.5827, allocations: 76.05 kB / 0.6554 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004544/0.5832, allocations: 123.9 kB / 0.6555 GB, free: 13.16 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.001134/0.5843, allocations: 397.6 kB / 0.6559 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006514/0.5849, allocations: 155 kB / 0.656 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/0.5985, allocations: 3.331 MB / 0.6593 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.035e-05/0.5985, allocations: 20 kB / 0.6593 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.5985, allocations: 3.938 kB / 0.6593 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-05/0.5986, allocations: 11.95 kB / 0.6593 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01763/0.6162, allocations: 5.203 MB / 0.6644 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.419e-05/0.6162, allocations: 0 / 0.6644 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00187/0.6181, allocations: 363.6 kB / 0.6647 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00389/0.622, allocations: 0.8022 MB / 0.6655 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004623/0.6225, allocations: 71.88 kB / 0.6656 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005599/0.6281, allocations: 3.585 MB / 0.6691 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6281, allocations: 0 / 0.6691 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01445/0.6425, allocations: 4.238 MB / 0.6732 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003887/0.6429, allocations: 138.9 kB / 0.6734 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003561/0.6433, allocations: 32 kB / 0.6734 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.6443, allocations: 43.98 kB / 0.6734 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005086/0.6448, allocations: 201.6 kB / 0.6736 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002214/0.6451, allocations: 83.94 kB / 0.6737 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008497/0.6459, allocations: 0.5703 MB / 0.6743 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.6459, allocations: 0 / 0.6743 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00335/0.6493, allocations: 1.196 MB / 0.6754 GB, free: 8.379 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.01778/0.667, allocations: 6.045 MB / 0.6813 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005526/0.6726, allocations: 2.342 MB / 0.6836 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.6726, allocations: 0 / 0.6836 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002993/0.6756, allocations: 1.314 MB / 0.6849 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001752/0.6773, allocations: 325.5 kB / 0.6852 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04259/0.7199, allocations: 15.84 MB / 0.7007 GB, free: 13.65 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00143/0.7213, allocations: 1.329 MB / 0.702 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001779/0.7231, allocations: 416.1 kB / 0.7024 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001394/0.7245, allocations: 0.8388 MB / 0.7032 GB, free: 11.04 MB / 0.545 GB Notification: Performance of SimCode: time 1.363e-06/0.7245, allocations: 0 / 0.7032 GB, free: 11.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3201/1.045, allocations: 62.71 MB / 0.7644 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.45/19.49, allocations: 7.125 kB / 0.7644 GB, free: 165.1 MB / 0.5606 GB " [Timeout remaining time 640] (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 sys.exit(0), Time elapsed: 22.409206626936793] Failed to read output from testmodel.py, exit status != 0: 19.708024512976408 19.725991047 19.283356852 Calling exit ...