Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_blood.conf.json 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/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/Chemical 1.4.1-master/package.mo", uses=false) 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.GasSolubility_blood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility_blood") translateModel(Chemical.Examples.GasSolubility_blood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility_blood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008318/0.008318, allocations: 95.61 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001902/0.001902, allocations: 197.7 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.604/1.604, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2531/0.2531, allocations: 15.31 MB / 305.8 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 59.91 kB / 425.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3222, allocations: 53.6 MB / 478.8 MB, free: 26.01 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.007145/0.3294, allocations: 6.965 MB / 485.8 MB, free: 20.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02057/0.3501, allocations: 21.76 MB / 0.4956 GB, free: 3.262 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00166/0.3518, allocations: 17.5 kB / 0.4956 GB, free: 3.254 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.3531, allocations: 453.9 kB / 0.4961 GB, free: 2.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005226/0.3584, allocations: 1.651 MB / 0.4977 GB, free: 1.637 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01014/0.3686, allocations: 2.79 MB / 0.5004 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00367/0.3723, allocations: 1.835 MB / 0.5022 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/0.3737, allocations: 0.9199 MB / 0.5031 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.3749, allocations: 0.8536 MB / 0.5039 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001283/0.3762, allocations: 0.9499 MB / 0.5049 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002218/0.3764, allocations: 152 kB / 0.505 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009073/0.3855, allocations: 2.309 MB / 0.5073 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004202/0.3859, allocations: 366.8 kB / 0.5076 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008653/0.3868, allocations: 0.7934 MB / 0.5084 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009466/0.3963, allocations: 4.144 MB / 0.5124 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3963, allocations: 0 / 0.5124 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.578e-06/0.3963, allocations: 3.984 kB / 0.5124 GB, free: 4.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.3964, allocations: 0 / 0.5124 GB, free: 4.48 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.003492/0.3999, allocations: 2.132 MB / 0.5145 GB, free: 2.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.3999, allocations: 12.03 kB / 0.5145 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001522/0.4014, allocations: 383.4 kB / 0.5149 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.4026, allocations: 0.7645 MB / 0.5156 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.102e-05/0.4027, allocations: 90.84 kB / 0.5157 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000202/0.4029, allocations: 136.3 kB / 0.5159 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002751/0.4057, allocations: 1.76 MB / 0.5176 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.4057, allocations: 4 kB / 0.5176 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.4059, allocations: 48 kB / 0.5176 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.4059, allocations: 32 kB / 0.5177 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003482/0.4094, allocations: 2.481 MB / 0.5201 GB, free: 12.5 MB / 398.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.007992/0.4174, allocations: 5.097 MB / 0.5251 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003412/0.4208, allocations: 2.238 MB / 0.5272 GB, free: 4.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000792/0.4216, allocations: 0.5459 MB / 0.5278 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007006/0.4286, allocations: 5.317 MB / 0.533 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.4287, allocations: 43.2 kB / 0.533 GB, free: 14.36 MB / 414.1 MB Notification: Performance of pre-optimization done (n=72): time 2.314e-06/0.4287, allocations: 0 / 0.533 GB, free: 14.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.01376/0.4425, allocations: 3.39 MB / 0.5363 GB, free: 10.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/0.4426, allocations: 64.34 kB / 0.5364 GB, free: 10.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/0.4443, allocations: 1.296 MB / 0.5376 GB, free: 9.492 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7e-05/0.4444, allocations: 41.7 kB / 0.5377 GB, free: 9.445 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005036/0.4449, allocations: 0.7022 MB / 0.5384 GB, free: 8.734 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003179/0.4453, allocations: 333.2 kB / 0.5387 GB, free: 8.406 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004886/0.4458, allocations: 295.4 kB / 0.539 GB, free: 8.109 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.446, allocations: 357.9 kB / 0.5393 GB, free: 7.754 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008542/0.4468, allocations: 0.5115 MB / 0.5398 GB, free: 7.242 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.4481, allocations: 0.9963 MB / 0.5408 GB, free: 6.027 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002063/0.4502, allocations: 1.441 MB / 0.5422 GB, free: 4.367 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.4502, allocations: 4 kB / 0.5422 GB, free: 4.363 MB / 414.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004726/0.455, allocations: 1.912 MB / 0.5441 GB, free: 2.441 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.455, allocations: 13.41 kB / 0.5441 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.837e-05/0.455, allocations: 16 kB / 0.5441 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001883/0.4569, allocations: 257.5 kB / 0.5443 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.4581, allocations: 347.5 kB / 0.5447 GB, free: 1.816 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005696/0.4638, allocations: 3.871 MB / 0.5484 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.4649, allocations: 44 kB / 0.5485 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/0.4651, allocations: 79.98 kB / 0.5486 GB, free: 13.55 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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.0005585/0.4656, allocations: 297.3 kB / 0.5488 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003033/0.466, allocations: 119.2 kB / 0.549 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003894/0.4699, allocations: 1.244 MB / 0.5502 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.4699, allocations: 12 kB / 0.5502 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4699, allocations: 0 / 0.5502 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.4699, allocations: 3.984 kB / 0.5502 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.4715, allocations: 1.125 MB / 0.5513 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.4715, allocations: 0 / 0.5513 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006463/0.4722, allocations: 175.8 kB / 0.5515 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.474, allocations: 229.6 kB / 0.5517 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.28e-05/0.4741, allocations: 35.97 kB / 0.5517 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005063/0.4791, allocations: 3.772 MB / 0.5554 GB, free: 6.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.4792, allocations: 4.031 kB / 0.5554 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004121/0.4833, allocations: 1.596 MB / 0.557 GB, free: 4.543 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.4837, allocations: 184.4 kB / 0.5571 GB, free: 4.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002122/0.4839, allocations: 20 kB / 0.5572 GB, free: 4.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006023/0.4845, allocations: 20 kB / 0.5572 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.4847, allocations: 72.84 kB / 0.5572 GB, free: 4.234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.789e-05/0.4848, allocations: 43.92 kB / 0.5573 GB, free: 4.191 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.486, allocations: 0.914 MB / 0.5582 GB, free: 3.266 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.486, allocations: 0 / 0.5582 GB, free: 3.266 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00266/0.4886, allocations: 0.8491 MB / 0.559 GB, free: 2.414 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (blood_plasma.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,water.logn,others.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 (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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.002806/0.4915, allocations: 1.016 MB / 0.56 GB, free: 1.387 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002747/0.4942, allocations: 1.415 MB / 0.5614 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.4942, allocations: 0.875 kB / 0.5614 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.4954, allocations: 0.6905 MB / 0.5621 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.4968, allocations: 233.2 kB / 0.5623 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/0.5006, allocations: 2.135 MB / 0.5644 GB, free: 12.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007602/0.5013, allocations: 1.077 MB / 0.5654 GB, free: 11.72 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009635/0.5023, allocations: 256.1 kB / 0.5657 GB, free: 11.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000391/0.5027, allocations: 174.8 kB / 0.5658 GB, free: 11.3 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5027, allocations: 0 / 0.5658 GB, free: 11.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04302/0.5458, allocations: 28.18 MB / 0.5933 GB, free: 15.21 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.GasSolubility_blood.makefile (rm -f Chemical_Chemical.Examples.GasSolubility_blood.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility_blood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility_blood.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility_blood.sim & ./Chemical_Chemical.Examples.GasSolubility_blood -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)