Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate") translateModel(Physiolibrary.Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009846/0.0009845, allocations: 106.2 kB / 289.9 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3743/0.3743, allocations: 36.67 MB / 376.7 MB, free: 41.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 67.89 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1453, allocations: 58.92 MB / 0.4935 GB, free: 0.8398 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671: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/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671: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(Physiolibrary.Chemical.Examples.AcidBase.Phosphate): time 0.2739/0.4192, allocations: 26.63 MB / 0.5195 GB, free: 31.69 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02957/0.4488, allocations: 28.38 MB / 0.5472 GB, free: 11.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002825/0.4517, allocations: 42.62 kB / 0.5472 GB, free: 11.28 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00226/0.454, allocations: 0.5137 MB / 0.5477 GB, free: 11.01 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008628/0.4627, allocations: 2.219 MB / 0.5499 GB, free: 9.699 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01126/0.4739, allocations: 3.081 MB / 0.5529 GB, free: 7.891 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005283/0.4793, allocations: 2.69 MB / 0.5555 GB, free: 6.672 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002955/0.4822, allocations: 1.441 MB / 0.5569 GB, free: 6.043 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003767/0.486, allocations: 1.405 MB / 0.5583 GB, free: 5.621 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003753/0.4898, allocations: 1.578 MB / 0.5599 GB, free: 4.566 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00117/0.491, allocations: 172 kB / 0.56 GB, free: 4.398 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01489/0.5059, allocations: 3.008 MB / 0.563 GB, free: 1.68 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001875/0.5079, allocations: 0.5455 MB / 0.5635 GB, free: 1.262 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003658/0.5116, allocations: 1.137 MB / 0.5646 GB, free: 244 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02198/0.5336, allocations: 5.651 MB / 0.5701 GB, free: 11.72 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/0.5337, allocations: 0 / 0.5701 GB, free: 11.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5337, allocations: 0 / 0.5701 GB, free: 11.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001109/0.5338, allocations: 0 / 0.5701 GB, free: 11.72 MB / 394.7 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.009582/0.5434, allocations: 2.982 MB / 0.573 GB, free: 9.008 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.5435, allocations: 11.97 kB / 0.573 GB, free: 8.996 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002586/0.5461, allocations: 462.7 kB / 0.5735 GB, free: 8.605 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002435/0.5485, allocations: 1.069 MB / 0.5745 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002857/0.5488, allocations: 263 kB / 0.5748 GB, free: 7.309 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004604/0.5493, allocations: 188.3 kB / 0.575 GB, free: 7.125 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004947/0.5543, allocations: 2.52 MB / 0.5774 GB, free: 4.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.315e-05/0.5543, allocations: 4 kB / 0.5774 GB, free: 4.566 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00021/0.5545, allocations: 72 kB / 0.5775 GB, free: 4.496 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.274e-05/0.5546, allocations: 47.98 kB / 0.5775 GB, free: 4.449 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005459/0.5601, allocations: 3.203 MB / 0.5807 GB, free: 1.242 MB / 394.7 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.01661/0.5767, allocations: 8.402 MB / 0.5889 GB, free: 8.559 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009266/0.586, allocations: 5.424 MB / 0.5942 GB, free: 2.996 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002789/0.5888, allocations: 1.293 MB / 0.5954 GB, free: 1.699 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01574/0.6046, allocations: 10.29 MB / 0.6055 GB, free: 6.332 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.6047, allocations: 47.81 kB / 0.6055 GB, free: 6.277 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001236/0.6059, allocations: 246.3 kB / 0.6058 GB, free: 6.035 MB / 426.7 MB Notification: Performance of pre-optimization done (n=158): time 4.669e-06/0.606, allocations: 4 kB / 0.6058 GB, free: 6.031 MB / 426.7 MB Notification: Performance of matching and sorting (n=187): time 0.03245/0.6384, allocations: 7.832 MB / 0.6134 GB, free: 14.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.319e-05/0.6385, allocations: 77.34 kB / 0.6135 GB, free: 14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001571/0.6401, allocations: 0.9012 MB / 0.6144 GB, free: 13.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004668/0.6406, allocations: 57.7 kB / 0.6144 GB, free: 13.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005365/0.6411, allocations: 0.7988 MB / 0.6152 GB, free: 12.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007183/0.6419, allocations: 0.6353 MB / 0.6158 GB, free: 11.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006433/0.6425, allocations: 415.8 kB / 0.6162 GB, free: 11.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.6426, allocations: 305.1 kB / 0.6165 GB, free: 10.85 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.6441, allocations: 0.7968 MB / 0.6173 GB, free: 10.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002038/0.6462, allocations: 1.387 MB / 0.6186 GB, free: 8.406 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003661/0.6498, allocations: 2.384 MB / 0.621 GB, free: 5.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.6499, allocations: 4 kB / 0.621 GB, free: 5.766 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.013/0.6629, allocations: 3.55 MB / 0.6244 GB, free: 2.195 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.663, allocations: 12 kB / 0.6245 GB, free: 2.184 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.641e-05/0.663, allocations: 20 kB / 0.6245 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00416/0.6672, allocations: 0.8926 MB / 0.6253 GB, free: 1.262 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/0.6694, allocations: 0.5188 MB / 0.6259 GB, free: 0.7422 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005243/0.6747, allocations: 3.522 MB / 0.6293 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/0.6769, allocations: 115.8 kB / 0.6294 GB, free: 12.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003325/0.6773, allocations: 131.9 kB / 0.6295 GB, free: 12.7 MB / 458.7 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.0009816/0.6783, allocations: 412.9 kB / 0.6299 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004204/0.6787, allocations: 146.2 kB / 0.6301 GB, free: 12.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/0.692, allocations: 3.498 MB / 0.6335 GB, free: 8.629 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.311e-05/0.6921, allocations: 20 kB / 0.6335 GB, free: 8.609 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.6921, allocations: 0 / 0.6335 GB, free: 8.609 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-05/0.6922, allocations: 7.969 kB / 0.6335 GB, free: 8.602 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/0.7085, allocations: 5.398 MB / 0.6388 GB, free: 3.137 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-05/0.7086, allocations: 4 kB / 0.6388 GB, free: 3.133 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001857/0.7104, allocations: 363.5 kB / 0.6391 GB, free: 2.777 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004198/0.7147, allocations: 0.8648 MB / 0.64 GB, free: 1.902 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004714/0.7152, allocations: 75.94 kB / 0.64 GB, free: 1.828 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004692/0.7199, allocations: 3.409 MB / 0.6434 GB, free: 14.15 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.7199, allocations: 0 / 0.6434 GB, free: 14.15 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04102/0.7609, allocations: 15.23 MB / 0.6582 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003772/0.7613, allocations: 207.2 kB / 0.6584 GB, free: 14.36 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003584/0.7617, allocations: 32 kB / 0.6585 GB, free: 14.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.7628, allocations: 83.91 kB / 0.6586 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005271/0.7634, allocations: 193.7 kB / 0.6587 GB, free: 14.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001799/0.7636, allocations: 79.95 kB / 0.6588 GB, free: 13.98 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0007796/0.7644, allocations: 0.582 MB / 0.6594 GB, free: 13.39 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7644, allocations: 0 / 0.6594 GB, free: 13.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004836/0.7692, allocations: 1.366 MB / 0.6607 GB, free: 12.02 MB / 490.7 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.003343/0.7726, allocations: 1.317 MB / 0.662 GB, free: 10.69 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006127/0.7787, allocations: 2.61 MB / 0.6646 GB, free: 8.039 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.7788, allocations: 0 / 0.6646 GB, free: 8.039 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002969/0.7817, allocations: 1.549 MB / 0.6661 GB, free: 6.445 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.7834, allocations: 288.6 kB / 0.6663 GB, free: 6.168 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007522/0.791, allocations: 5.311 MB / 0.6715 GB, free: 0.7969 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009821/0.792, allocations: 1.374 MB / 0.6729 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002226/0.7942, allocations: 471.3 kB / 0.6733 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007237/0.7949, allocations: 283.1 kB / 0.6736 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of SimCode: time 6.12e-07/0.795, allocations: 0 / 0.6736 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of Templates: time 0.2973/1.092, allocations: 49.61 MB / 0.722 GB, free: 141.9 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)