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.001287/0.001287, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001426/0.001426, allocations: 210.1 kB / 22.99 MB, free: 4.98 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.392/1.392, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1292/0.1292, allocations: 23.91 MB / 337.1 MB, free: 10.94 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: translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate") translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_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.002013/0.002013, allocations: 67.89 kB / 472.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2817, allocations: 59.88 MB / 0.5198 GB, free: 9.742 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.06996/0.3517, allocations: 28.53 MB / 0.5477 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03278/0.3844, allocations: 25.3 MB / 0.5724 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.386, allocations: 35.69 kB / 0.5724 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001486/0.3875, allocations: 0.5155 MB / 0.5729 GB, free: 3.402 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007025/0.3945, allocations: 2.557 MB / 0.5754 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00986/0.4043, allocations: 3.581 MB / 0.5789 GB, free: 13.22 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003886/0.4082, allocations: 2.723 MB / 0.5816 GB, free: 10.5 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00184/0.4101, allocations: 1.372 MB / 0.5829 GB, free: 9.086 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001767/0.4118, allocations: 1.446 MB / 0.5844 GB, free: 7.637 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002354/0.4142, allocations: 1.651 MB / 0.586 GB, free: 5.98 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000438/0.4146, allocations: 248 kB / 0.5862 GB, free: 5.738 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007498/0.4221, allocations: 3.077 MB / 0.5892 GB, free: 2.656 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008093/0.4229, allocations: 0.6194 MB / 0.5898 GB, free: 2.035 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001307/0.4242, allocations: 1.039 MB / 0.5908 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01179/0.436, allocations: 6.109 MB / 0.5968 GB, free: 10.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.436, allocations: 0 / 0.5968 GB, free: 10.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.436, allocations: 0 / 0.5968 GB, free: 10.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.503e-05/0.4361, allocations: 0 / 0.5968 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.006432/0.4425, allocations: 2.935 MB / 0.5997 GB, free: 7.879 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.4426, allocations: 12.03 kB / 0.5997 GB, free: 7.867 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002237/0.4448, allocations: 470.8 kB / 0.6001 GB, free: 7.406 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002145/0.4469, allocations: 1.046 MB / 0.6011 GB, free: 6.332 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/0.4472, allocations: 353.8 kB / 0.6015 GB, free: 5.938 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004155/0.4476, allocations: 192.3 kB / 0.6017 GB, free: 5.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00444/0.4521, allocations: 2.535 MB / 0.6041 GB, free: 3.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/0.4521, allocations: 4 kB / 0.6041 GB, free: 3.176 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.4523, allocations: 68 kB / 0.6042 GB, free: 3.109 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.982e-05/0.4524, allocations: 48 kB / 0.6043 GB, free: 3.062 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005249/0.4576, allocations: 3.176 MB / 0.6074 GB, free: 15.88 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.01395/0.4716, allocations: 6.905 MB / 0.6141 GB, free: 8.871 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009063/0.4806, allocations: 4.642 MB / 0.6186 GB, free: 4.215 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/0.4828, allocations: 1.164 MB / 0.6198 GB, free: 3.051 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01289/0.4957, allocations: 5.777 MB / 0.6254 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.983e-05/0.4957, allocations: 51.88 kB / 0.6255 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001486/0.4972, allocations: 286.9 kB / 0.6257 GB, free: 12.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 5.27e-06/0.4972, allocations: 4 kB / 0.6257 GB, free: 12.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03116/0.5284, allocations: 7.354 MB / 0.6329 GB, free: 5.496 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.5284, allocations: 77.39 kB / 0.633 GB, free: 5.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.5296, allocations: 0.8581 MB / 0.6338 GB, free: 4.531 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002271/0.5298, allocations: 53.7 kB / 0.6339 GB, free: 4.473 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006134/0.5304, allocations: 0.8363 MB / 0.6347 GB, free: 3.625 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006392/0.5311, allocations: 0.67 MB / 0.6354 GB, free: 2.949 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006499/0.5317, allocations: 411.9 kB / 0.6357 GB, free: 2.539 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5318, allocations: 305.1 kB / 0.636 GB, free: 2.238 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001465/0.5333, allocations: 0.7929 MB / 0.6368 GB, free: 1.441 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002004/0.5353, allocations: 1.371 MB / 0.6381 GB, free: 15.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003749/0.5391, allocations: 2.364 MB / 0.6405 GB, free: 13.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.5391, allocations: 8 kB / 0.6405 GB, free: 13.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01275/0.5518, allocations: 3.38 MB / 0.6438 GB, free: 9.781 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.5518, allocations: 12 kB / 0.6438 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.352e-05/0.5519, allocations: 16 kB / 0.6438 GB, free: 9.754 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004122/0.556, allocations: 0.8226 MB / 0.6446 GB, free: 8.922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002011/0.558, allocations: 0.5149 MB / 0.6451 GB, free: 8.406 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005839/0.5638, allocations: 3.616 MB / 0.6486 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.5654, allocations: 67.98 kB / 0.6487 GB, free: 4.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/0.5657, allocations: 127.9 kB / 0.6488 GB, free: 4.395 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.000776/0.5665, allocations: 397.1 kB / 0.6492 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003399/0.5668, allocations: 147.1 kB / 0.6493 GB, free: 3.852 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01295/0.5798, allocations: 3.33 MB / 0.6526 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/0.5798, allocations: 20 kB / 0.6526 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.5798, allocations: 4 kB / 0.6526 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.854e-05/0.5798, allocations: 7.969 kB / 0.6526 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01502/0.5948, allocations: 4.749 MB / 0.6573 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.964e-06/0.5948, allocations: 0 / 0.6573 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/0.5964, allocations: 363.5 kB / 0.6576 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003949/0.6004, allocations: 0.7945 MB / 0.6584 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000207/0.6006, allocations: 67.89 kB / 0.6584 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00531/0.6059, allocations: 3.508 MB / 0.6619 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.6059, allocations: 7.969 kB / 0.6619 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/0.6197, allocations: 4.226 MB / 0.666 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.62, allocations: 131 kB / 0.6661 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002423/0.6202, allocations: 36 kB / 0.6662 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.6213, allocations: 39.98 kB / 0.6662 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000481/0.6218, allocations: 201.6 kB / 0.6664 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001916/0.6219, allocations: 83.94 kB / 0.6665 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007125/0.6227, allocations: 0.5331 MB / 0.667 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6227, allocations: 0 / 0.667 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003096/0.6258, allocations: 1.188 MB / 0.6682 GB, free: 268 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.002464/0.6282, allocations: 1.359 MB / 0.6695 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00464/0.6329, allocations: 2.347 MB / 0.6718 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6329, allocations: 0 / 0.6718 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002585/0.6354, allocations: 1.306 MB / 0.673 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.6369, allocations: 323.6 kB / 0.6734 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006373/0.6433, allocations: 3.4 MB / 0.6767 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007745/0.6441, allocations: 0.7478 MB / 0.6774 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001415/0.6455, allocations: 411.6 kB / 0.6778 GB, free: 6.25 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006095/0.6461, allocations: 267.1 kB / 0.6781 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of SimCode: time 1.152e-06/0.6461, allocations: 0 / 0.6781 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of Templates: time 0.07009/0.7162, allocations: 49.74 MB / 0.7266 GB, free: 4.5 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.makefile [Timeout 660] (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 & ./Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 6.50590917399677] Failed to read output from testmodel.py, exit status != 0: 0.7258794410008704 0.900933195 0.46220700899999995 Calling exit ...