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.001703/0.001703, allocations: 105.2 kB / 19.7 MB, free: 2.008 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.002046/0.002046, allocations: 207.5 kB / 22.99 MB, free: 4.41 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1385/0.1385, allocations: 23.88 MB / 337.1 MB, free: 11.09 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: translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate") translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate") [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.002086/0.002086, allocations: 67.91 kB / 472.4 MB, free: 7.055 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3374, allocations: 59.86 MB / 0.5198 GB, free: 9.766 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.0755/0.4129, allocations: 28.62 MB / 0.5477 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03532/0.4483, allocations: 25.29 MB / 0.5724 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001898/0.4501, allocations: 35.69 kB / 0.5724 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.4521, allocations: 0.5194 MB / 0.5729 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008926/0.461, allocations: 2.565 MB / 0.5755 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01126/0.4723, allocations: 3.585 MB / 0.579 GB, free: 13.21 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004564/0.4768, allocations: 2.72 MB / 0.5816 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002109/0.479, allocations: 1.376 MB / 0.583 GB, free: 9.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002138/0.4811, allocations: 1.442 MB / 0.5844 GB, free: 7.625 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003049/0.4841, allocations: 1.655 MB / 0.586 GB, free: 5.965 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006481/0.4848, allocations: 252 kB / 0.5862 GB, free: 5.719 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009066/0.4939, allocations: 3.069 MB / 0.5892 GB, free: 2.645 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.4951, allocations: 0.6232 MB / 0.5898 GB, free: 2.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001993/0.497, allocations: 1.031 MB / 0.5908 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01463/0.5117, allocations: 6.113 MB / 0.5968 GB, free: 10.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.5117, allocations: 4 kB / 0.5968 GB, free: 10.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5117, allocations: 0 / 0.5968 GB, free: 10.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.597e-05/0.5118, allocations: 0 / 0.5968 GB, free: 10.84 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.006948/0.5187, allocations: 2.935 MB / 0.5997 GB, free: 7.863 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.5187, allocations: 8.031 kB / 0.5997 GB, free: 7.855 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002356/0.5211, allocations: 474.6 kB / 0.6001 GB, free: 7.391 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002571/0.5237, allocations: 1.046 MB / 0.6012 GB, free: 6.316 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003283/0.524, allocations: 349.8 kB / 0.6015 GB, free: 5.926 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005132/0.5245, allocations: 196.3 kB / 0.6017 GB, free: 5.734 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004655/0.5292, allocations: 2.535 MB / 0.6041 GB, free: 3.164 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.033e-05/0.5292, allocations: 0 / 0.6041 GB, free: 3.164 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002205/0.5294, allocations: 76 kB / 0.6042 GB, free: 3.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-05/0.5295, allocations: 44 kB / 0.6043 GB, free: 3.047 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005426/0.5349, allocations: 3.176 MB / 0.6074 GB, free: 15.86 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.01525/0.5501, allocations: 6.909 MB / 0.6141 GB, free: 8.852 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009521/0.5597, allocations: 4.643 MB / 0.6186 GB, free: 4.195 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002331/0.562, allocations: 1.153 MB / 0.6198 GB, free: 3.043 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01406/0.5761, allocations: 5.78 MB / 0.6254 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.982e-05/0.5761, allocations: 47.88 kB / 0.6255 GB, free: 13.17 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001401/0.5775, allocations: 302.8 kB / 0.6257 GB, free: 12.88 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 5.079e-06/0.5775, allocations: 0 / 0.6257 GB, free: 12.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03064/0.6082, allocations: 7.354 MB / 0.6329 GB, free: 5.477 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.6082, allocations: 69.41 kB / 0.633 GB, free: 5.398 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001254/0.6095, allocations: 0.8619 MB / 0.6338 GB, free: 4.516 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000344/0.6098, allocations: 61.7 kB / 0.6339 GB, free: 4.449 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000684/0.6105, allocations: 0.8285 MB / 0.6347 GB, free: 3.609 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000764/0.6113, allocations: 0.67 MB / 0.6354 GB, free: 2.934 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000667/0.6119, allocations: 411.9 kB / 0.6358 GB, free: 2.523 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.6121, allocations: 305.1 kB / 0.636 GB, free: 2.223 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001486/0.6136, allocations: 0.7851 MB / 0.6368 GB, free: 1.434 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002138/0.6157, allocations: 1.379 MB / 0.6382 GB, free: 15.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003984/0.6197, allocations: 2.364 MB / 0.6405 GB, free: 13.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.6197, allocations: 4 kB / 0.6405 GB, free: 13.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01236/0.6321, allocations: 3.38 MB / 0.6438 GB, free: 9.773 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.6321, allocations: 12 kB / 0.6438 GB, free: 9.762 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-05/0.6321, allocations: 20 kB / 0.6438 GB, free: 9.742 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003778/0.6359, allocations: 0.8222 MB / 0.6446 GB, free: 8.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002186/0.6381, allocations: 0.5187 MB / 0.6451 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005699/0.6438, allocations: 3.622 MB / 0.6487 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.6454, allocations: 67.98 kB / 0.6487 GB, free: 4.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002413/0.6457, allocations: 123.9 kB / 0.6488 GB, free: 4.379 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.0008853/0.6466, allocations: 401.1 kB / 0.6492 GB, free: 3.977 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/0.6469, allocations: 143.1 kB / 0.6494 GB, free: 3.836 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01214/0.6591, allocations: 3.322 MB / 0.6526 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-05/0.6591, allocations: 16 kB / 0.6526 GB, free: 488 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.6591, allocations: 8 kB / 0.6526 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.025e-05/0.6591, allocations: 7.969 kB / 0.6526 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/0.6741, allocations: 4.753 MB / 0.6573 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.6741, allocations: 0 / 0.6573 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/0.6759, allocations: 363.5 kB / 0.6576 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003711/0.6796, allocations: 0.8022 MB / 0.6584 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003208/0.6799, allocations: 63.95 kB / 0.6585 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005334/0.6853, allocations: 3.508 MB / 0.6619 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/0.6853, allocations: 7.922 kB / 0.6619 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01402/0.6993, allocations: 4.234 MB / 0.666 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004249/0.6997, allocations: 131 kB / 0.6662 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002947/0.7, allocations: 32 kB / 0.6662 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009337/0.7009, allocations: 39.98 kB / 0.6662 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004978/0.7014, allocations: 201.6 kB / 0.6664 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001946/0.7016, allocations: 83.94 kB / 0.6665 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000784/0.7024, allocations: 0.5292 MB / 0.667 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.7024, allocations: 0 / 0.667 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003574/0.706, allocations: 1.196 MB / 0.6682 GB, free: 240 kB / 0.4981 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.002828/0.7088, allocations: 1.359 MB / 0.6695 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005034/0.7139, allocations: 2.339 MB / 0.6718 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.7139, allocations: 4 kB / 0.6718 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002697/0.7166, allocations: 1.31 MB / 0.6731 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.7182, allocations: 314.8 kB / 0.6734 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007264/0.7255, allocations: 3.429 MB / 0.6767 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00091/0.7264, allocations: 0.7478 MB / 0.6775 GB, free: 6.594 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/0.7275, allocations: 355 kB / 0.6778 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of SimCode: time 1.092e-06/0.7275, allocations: 0 / 0.6778 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of Templates: time 0.2968/1.024, allocations: 57.05 MB / 0.7335 GB, free: 174.3 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.makefile [Timeout 660] (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 & ./Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.843168264022097] Failed to read output from testmodel.py, exit status != 0: 1.033714715973474 1.046721203 0.5321742340000001 Calling exit ...