Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility") translateModel(Chemical.Examples.GasSolubility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 105.6 kB / 16.35 MB, free: 5.824 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.001754/0.001754, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.506/1.506, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08831/0.08831, allocations: 15.3 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 59.33 kB / 371.7 MB, free: 50.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1215, allocations: 53.61 MB / 425.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.0109/0.1325, allocations: 10.3 MB / 435.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03773/0.1703, allocations: 32.89 MB / 468.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.1727, allocations: 23.88 kB / 468.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00227/0.175, allocations: 0.6941 MB / 469.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009073/0.1842, allocations: 2.611 MB / 471.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01297/0.1972, allocations: 4.287 MB / 476.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005862/0.2031, allocations: 3.015 MB / 479.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002982/0.2062, allocations: 1.662 MB / 480.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00246/0.2087, allocations: 1.457 MB / 482.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003242/0.2119, allocations: 1.608 MB / 483.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006884/0.2126, allocations: 264 kB / 484.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01691/0.2296, allocations: 3.608 MB / 487.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00151/0.2311, allocations: 0.6075 MB / 488.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002178/0.2333, allocations: 1.33 MB / 489.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02026/0.2536, allocations: 6.594 MB / 496.3 MB, free: 6.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.789e-06/0.2537, allocations: 3.984 kB / 496.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2537, allocations: 0 / 496.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.452e-05/0.2538, allocations: 0 / 496.3 MB, free: 6.035 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.007371/0.2611, allocations: 3.239 MB / 499.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.2612, allocations: 8.031 kB / 499.5 MB, free: 2.723 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002713/0.2639, allocations: 0.5788 MB / 0.4884 GB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002784/0.2667, allocations: 1.126 MB / 0.4895 GB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.2669, allocations: 168.5 kB / 0.4897 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000386/0.2673, allocations: 216.3 kB / 0.4899 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004925/0.2722, allocations: 2.787 MB / 0.4926 GB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.037e-05/0.2723, allocations: 4 kB / 0.4926 GB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002016/0.2725, allocations: 84 kB / 0.4927 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.036e-05/0.2726, allocations: 52 kB / 0.4927 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006008/0.2786, allocations: 3.784 MB / 0.4964 GB, free: 9.785 MB / 382.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.01478/0.2934, allocations: 8.311 MB / 0.5045 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2142/0.5076, allocations: 3.944 MB / 0.5084 GB, free: 76.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002585/0.5103, allocations: 1.021 MB / 0.5094 GB, free: 76.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01527/0.5256, allocations: 9.215 MB / 0.5184 GB, free: 70.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.5256, allocations: 53.47 kB / 0.5184 GB, free: 70.41 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007612/0.5264, allocations: 162.6 kB / 0.5186 GB, free: 70.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=138): time 4.548e-06/0.5264, allocations: 0 / 0.5186 GB, free: 70.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=170): time 0.03006/0.5565, allocations: 6.393 MB / 0.5248 GB, free: 67.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.5566, allocations: 69.25 kB / 0.5249 GB, free: 67.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.5586, allocations: 1.662 MB / 0.5265 GB, free: 67.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001832/0.5588, allocations: 57.58 kB / 0.5266 GB, free: 67.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004992/0.5593, allocations: 1.04 MB / 0.5276 GB, free: 66.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003944/0.5597, allocations: 0.5945 MB / 0.5282 GB, free: 65.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005573/0.5603, allocations: 481.2 kB / 0.5286 GB, free: 65.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.126e-05/0.5603, allocations: 309 kB / 0.5289 GB, free: 65.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.5615, allocations: 0.7943 MB / 0.5297 GB, free: 65.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001594/0.5631, allocations: 1.594 MB / 0.5313 GB, free: 63.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002773/0.5658, allocations: 2.42 MB / 0.5336 GB, free: 61.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.8e-05/0.5659, allocations: 7.812 kB / 0.5336 GB, free: 61.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.007946/0.5738, allocations: 3.126 MB / 0.5367 GB, free: 60.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/0.5739, allocations: 18.09 kB / 0.5367 GB, free: 60.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.441e-05/0.574, allocations: 25.34 kB / 0.5367 GB, free: 60.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003777/0.5777, allocations: 482.4 kB / 0.5372 GB, free: 59.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002125/0.5799, allocations: 0.5899 MB / 0.5378 GB, free: 59.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009326/0.5892, allocations: 7.706 MB / 0.5453 GB, free: 51.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.5917, allocations: 79.98 kB / 0.5454 GB, free: 51.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002305/0.5919, allocations: 144.8 kB / 0.5455 GB, free: 50.93 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * 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 (305): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009217/0.5928, allocations: 417.5 kB / 0.5459 GB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004217/0.5933, allocations: 173.9 kB / 0.5461 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006943/0.6002, allocations: 2.398 MB / 0.5484 GB, free: 47.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.6003, allocations: 16 kB / 0.5484 GB, free: 47.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.6003, allocations: 4 kB / 0.5484 GB, free: 47.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-05/0.6003, allocations: 8.953 kB / 0.5484 GB, free: 47.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/0.603, allocations: 1.871 MB / 0.5503 GB, free: 45.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.603, allocations: 4 kB / 0.5503 GB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.6042, allocations: 347.8 kB / 0.5506 GB, free: 45.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003602/0.6078, allocations: 457.2 kB / 0.551 GB, free: 45.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002055/0.6081, allocations: 63.97 kB / 0.5511 GB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008545/0.6166, allocations: 7.523 MB / 0.5584 GB, free: 37.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/0.6167, allocations: 4.031 kB / 0.5584 GB, free: 37.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008099/0.6248, allocations: 2.999 MB / 0.5614 GB, free: 34.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006514/0.6255, allocations: 234.8 kB / 0.5616 GB, free: 33.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002358/0.6257, allocations: 39.98 kB / 0.5616 GB, free: 33.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009148/0.6266, allocations: 40 kB / 0.5617 GB, free: 33.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.627, allocations: 149.8 kB / 0.5618 GB, free: 33.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.6271, allocations: 75.97 kB / 0.5619 GB, free: 33.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.6282, allocations: 1.129 MB / 0.563 GB, free: 32.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6282, allocations: 4 kB / 0.563 GB, free: 32.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004221/0.6324, allocations: 1.365 MB / 0.5643 GB, free: 31.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (blood_plasma.temperature,red_cells.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,CO2_unbound_erythrocyte.logn,O2_unbound_erythrocyte_NIST.logn,water_plasma.logn,water.logn,water_plasma1.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 (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002773/0.6352, allocations: 1.496 MB / 0.5658 GB, free: 29.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003725/0.639, allocations: 2.5 MB / 0.5682 GB, free: 27.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.639, allocations: 0 / 0.5682 GB, free: 27.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.6406, allocations: 1.358 MB / 0.5696 GB, free: 26.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.6425, allocations: 373.6 kB / 0.5699 GB, free: 25.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005898/0.6484, allocations: 3.565 MB / 0.5734 GB, free: 22.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000819/0.6493, allocations: 1.378 MB / 0.5747 GB, free: 20.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001598/0.6509, allocations: 439 kB / 0.5752 GB, free: 20.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005909/0.6515, allocations: 294.5 kB / 0.5754 GB, free: 19.94 MB / 382.1 MB Notification: Performance of SimCode: time 1.422e-06/0.6515, allocations: 0 / 0.5754 GB, free: 19.94 MB / 382.1 MB Notification: Performance of Templates: time 0.06496/0.7164, allocations: 45.76 MB / 0.6201 GB, free: 6.348 MB / 414.1 MB make -j1 -f Chemical_Chemical.Examples.GasSolubility.makefile (rm -f Chemical_Chemical.Examples.GasSolubility.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility.sim & ./Chemical_Chemical.Examples.GasSolubility -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)