Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 118.2 kB / 17.13 MB, free: 5.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 191.7 kB / 20.08 MB, free: 2.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 225.6 MB / 248.5 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08521/0.08521, allocations: 15.54 MB / 318.9 MB, free: 13.58 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 61.78 kB / 446.1 MB, free: 47.97 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08826/0.09014, allocations: 56.56 MB / 0.4909 GB, free: 20.61 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.AcidBase.Phosphate): time 0.03081/0.121, allocations: 29.39 MB / 0.5196 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03435/0.1553, allocations: 28.79 MB / 0.5477 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.1567, allocations: 23.88 kB / 0.5477 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.1582, allocations: 0.5778 MB / 0.5483 GB, free: 12.63 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006602/0.1648, allocations: 2.592 MB / 0.5508 GB, free: 10.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008818/0.1737, allocations: 3.534 MB / 0.5543 GB, free: 6.465 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003712/0.1774, allocations: 2.716 MB / 0.5569 GB, free: 3.738 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001728/0.1791, allocations: 1.414 MB / 0.5583 GB, free: 2.285 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001584/0.1807, allocations: 1.426 MB / 0.5597 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002147/0.1828, allocations: 1.647 MB / 0.5613 GB, free: 15.2 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003616/0.1832, allocations: 255.9 kB / 0.5615 GB, free: 14.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008732/0.1919, allocations: 3.19 MB / 0.5646 GB, free: 11.76 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006501/0.1926, allocations: 0.6193 MB / 0.5653 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001313/0.1939, allocations: 1.21 MB / 0.5664 GB, free: 9.922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.2054, allocations: 5.973 MB / 0.5723 GB, free: 3.926 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2054, allocations: 0 / 0.5723 GB, free: 3.926 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2055, allocations: 0 / 0.5723 GB, free: 3.926 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.733e-05/0.2055, allocations: 0 / 0.5723 GB, free: 3.926 MB / 430.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.005925/0.2114, allocations: 3.017 MB / 0.5752 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2114, allocations: 8.031 kB / 0.5752 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001982/0.2134, allocations: 482.6 kB / 0.5757 GB, free: 376 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.2154, allocations: 1.1 MB / 0.5768 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002242/0.2157, allocations: 251 kB / 0.577 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003475/0.216, allocations: 192.3 kB / 0.5772 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004052/0.2201, allocations: 2.535 MB / 0.5797 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.673e-05/0.2201, allocations: 0 / 0.5797 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001951/0.2203, allocations: 76 kB / 0.5797 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.463e-05/0.2203, allocations: 44 kB / 0.5798 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005064/0.2254, allocations: 3.211 MB / 0.5829 GB, free: 8.867 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.01399/0.2394, allocations: 8.446 MB / 0.5912 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009032/0.2484, allocations: 5.295 MB / 0.5963 GB, free: 10.69 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.2503, allocations: 1.164 MB / 0.5975 GB, free: 9.523 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2369/0.4872, allocations: 10.32 MB / 0.6075 GB, free: 97.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.4872, allocations: 51.5 kB / 0.6076 GB, free: 97.8 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001371/0.4886, allocations: 308.2 kB / 0.6079 GB, free: 97.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 5.42e-06/0.4886, allocations: 3.219 kB / 0.6079 GB, free: 97.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.02918/0.5178, allocations: 7.573 MB / 0.6153 GB, free: 95.27 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.5178, allocations: 72.12 kB / 0.6153 GB, free: 95.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.519, allocations: 0.9042 MB / 0.6162 GB, free: 94.83 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001963/0.5192, allocations: 56.33 kB / 0.6163 GB, free: 94.78 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003858/0.5195, allocations: 0.8201 MB / 0.6171 GB, free: 94.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/0.52, allocations: 0.6691 MB / 0.6177 GB, free: 93.78 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005327/0.5205, allocations: 414.2 kB / 0.6181 GB, free: 93.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.847e-05/0.5205, allocations: 301.1 kB / 0.6184 GB, free: 93.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.5218, allocations: 0.7821 MB / 0.6192 GB, free: 93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.5233, allocations: 1.381 MB / 0.6205 GB, free: 91.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002793/0.5261, allocations: 2.364 MB / 0.6228 GB, free: 90.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.477e-06/0.5261, allocations: 7.656 kB / 0.6228 GB, free: 90.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01063/0.5368, allocations: 3.383 MB / 0.6261 GB, free: 89.26 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.5368, allocations: 14.53 kB / 0.6262 GB, free: 89.26 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.011e-05/0.5368, allocations: 19.75 kB / 0.6262 GB, free: 89.26 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003342/0.5401, allocations: 0.8146 MB / 0.627 GB, free: 89.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.5419, allocations: 0.5134 MB / 0.6275 GB, free: 88.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004539/0.5465, allocations: 3.905 MB / 0.6313 GB, free: 85.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.5482, allocations: 67.61 kB / 0.6314 GB, free: 85.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/0.5484, allocations: 125.5 kB / 0.6315 GB, free: 85.21 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.0008069/0.5492, allocations: 409.1 kB / 0.6319 GB, free: 84.92 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000306/0.5495, allocations: 156.5 kB / 0.632 GB, free: 84.83 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/0.5601, allocations: 3.32 MB / 0.6353 GB, free: 83.01 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/0.5601, allocations: 19.56 kB / 0.6353 GB, free: 83.01 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.5601, allocations: 6.641 kB / 0.6353 GB, free: 83.01 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.48e-05/0.5602, allocations: 7.969 kB / 0.6353 GB, free: 83 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01267/0.5728, allocations: 5.241 MB / 0.6404 GB, free: 78.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.5728, allocations: 0 / 0.6404 GB, free: 78.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001468/0.5743, allocations: 361.7 kB / 0.6408 GB, free: 78.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00325/0.5776, allocations: 0.7999 MB / 0.6415 GB, free: 77.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002406/0.5778, allocations: 67.94 kB / 0.6416 GB, free: 77.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003985/0.5818, allocations: 3.795 MB / 0.6453 GB, free: 73.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5818, allocations: 0 / 0.6453 GB, free: 73.39 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/0.5931, allocations: 4.23 MB / 0.6494 GB, free: 69.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004947/0.5936, allocations: 214.2 kB / 0.6496 GB, free: 68.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002343/0.5939, allocations: 38.66 kB / 0.6497 GB, free: 68.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009125/0.5948, allocations: 39.98 kB / 0.6497 GB, free: 68.86 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004049/0.5952, allocations: 203.8 kB / 0.6499 GB, free: 68.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.5953, allocations: 71.95 kB / 0.65 GB, free: 68.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005794/0.5959, allocations: 0.5742 MB / 0.6505 GB, free: 68 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5959, allocations: 2.688 kB / 0.6505 GB, free: 68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002902/0.5988, allocations: 1.194 MB / 0.6517 GB, free: 66.93 MB / 462.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.001975/0.6008, allocations: 1.342 MB / 0.653 GB, free: 65.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00379/0.6046, allocations: 2.421 MB / 0.6554 GB, free: 63.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.6046, allocations: 2.656 kB / 0.6554 GB, free: 63.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001947/0.6065, allocations: 1.385 MB / 0.6567 GB, free: 61.91 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.608, allocations: 308.5 kB / 0.657 GB, free: 61.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005271/0.6133, allocations: 3.446 MB / 0.6604 GB, free: 58.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.6138, allocations: 1.323 MB / 0.6617 GB, free: 56.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007152/0.6145, allocations: 348.5 kB / 0.662 GB, free: 56.55 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.6145, allocations: 0 / 0.662 GB, free: 56.55 MB / 462.1 MB Notification: Performance of Templates: time 0.04732/0.6619, allocations: 55.72 MB / 0.7164 GB, free: 1.652 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & ./Chemical_Chemical.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.02580104500521] Failed to read output from testmodel.py, exit status != 0: 0.8385687779955333 0.681423424 0.473278595 Calling exit ...