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.001149/0.001149, allocations: 109 kB / 15.99 MB, free: 6.355 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.001061/0.001061, allocations: 192.2 kB / 16.91 MB, free: 6.188 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.463/1.463, allocations: 222.9 MB / 240.6 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08357/0.08357, allocations: 15.3 MB / 306 MB, free: 15.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 56.53 kB / 370.5 MB, free: 50.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1051, allocations: 53.61 MB / 424.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.007268/0.1124, allocations: 7.963 MB / 432 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02279/0.1353, allocations: 21.5 MB / 453.5 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001441/0.1367, allocations: 31.75 kB / 453.6 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.1383, allocations: 411.1 kB / 454 MB, free: 392 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005047/0.1435, allocations: 1.514 MB / 455.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007876/0.1514, allocations: 2.494 MB / 458 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002631/0.1541, allocations: 1.814 MB / 459.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.1555, allocations: 0.9254 MB / 460.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.1568, allocations: 0.8999 MB / 461.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001411/0.1582, allocations: 0.9655 MB / 462.6 MB, free: 7.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004243/0.1587, allocations: 156 kB / 462.7 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008999/0.1677, allocations: 2.379 MB / 465.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000731/0.1684, allocations: 370.8 kB / 465.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001654/0.1701, allocations: 0.7973 MB / 466.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006173/0.1763, allocations: 3.064 MB / 469.3 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1763, allocations: 0 / 469.3 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1764, allocations: 0 / 469.3 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.546e-05/0.1764, allocations: 0 / 469.3 MB, free: 0.9414 MB / 334.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.0049/0.1813, allocations: 2.07 MB / 471.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.1814, allocations: 8.031 kB / 471.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001959/0.1834, allocations: 382.4 kB / 471.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00154/0.1849, allocations: 0.7289 MB / 472.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001549/0.1851, allocations: 94.83 kB / 472.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002846/0.1854, allocations: 132.3 kB / 472.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003266/0.1887, allocations: 1.756 MB / 474.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.1887, allocations: 4 kB / 474.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.1889, allocations: 56 kB / 474.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.745e-05/0.1889, allocations: 32 kB / 474.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003778/0.1927, allocations: 2.485 MB / 477.1 MB, free: 9.062 MB / 350.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.009322/0.202, allocations: 5.088 MB / 482.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003806/0.2059, allocations: 2.248 MB / 484.4 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009509/0.2068, allocations: 0.5615 MB / 485 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008191/0.215, allocations: 5.305 MB / 490.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001294/0.2152, allocations: 51.16 kB / 490.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.385e-06/0.2152, allocations: 0 / 490.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01595/0.2312, allocations: 3.368 MB / 493.7 MB, free: 7.453 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.2313, allocations: 68.33 kB / 493.8 MB, free: 7.371 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.2328, allocations: 1.292 MB / 495 MB, free: 6.055 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.642e-05/0.2329, allocations: 41.7 kB / 495.1 MB, free: 6.008 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004721/0.2334, allocations: 0.6842 MB / 495.8 MB, free: 5.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000309/0.2337, allocations: 319.5 kB / 496.1 MB, free: 4.996 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004404/0.2342, allocations: 287.3 kB / 496.4 MB, free: 4.711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.2344, allocations: 361.9 kB / 496.7 MB, free: 4.352 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008317/0.2352, allocations: 0.5115 MB / 497.2 MB, free: 3.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/0.2364, allocations: 1 MB / 498.2 MB, free: 2.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001913/0.2383, allocations: 1.433 MB / 499.7 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.2383, allocations: 4 kB / 499.7 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004979/0.2433, allocations: 1.912 MB / 0.4898 GB, free: 15.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.2434, allocations: 15.94 kB / 0.4898 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/0.2434, allocations: 16 kB / 0.4899 GB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002205/0.2456, allocations: 249.5 kB / 0.4901 GB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.2468, allocations: 351.5 kB / 0.4904 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006162/0.253, allocations: 3.863 MB / 0.4942 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.2545, allocations: 84.06 kB / 0.4943 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002738/0.2548, allocations: 79.98 kB / 0.4944 GB, free: 10.12 MB / 382.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.0007253/0.2555, allocations: 293.3 kB / 0.4946 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/0.2559, allocations: 106.6 kB / 0.4947 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004521/0.2604, allocations: 1.252 MB / 0.496 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.2604, allocations: 8 kB / 0.496 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.2604, allocations: 0 / 0.496 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.2605, allocations: 7.984 kB / 0.496 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001925/0.2624, allocations: 1.109 MB / 0.4971 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.2624, allocations: 4 kB / 0.4971 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007336/0.2632, allocations: 171.8 kB / 0.4972 GB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002239/0.2654, allocations: 237.5 kB / 0.4974 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.2655, allocations: 31.92 kB / 0.4975 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005573/0.2711, allocations: 3.768 MB / 0.5012 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.2711, allocations: 7.922 kB / 0.5012 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004719/0.2759, allocations: 1.599 MB / 0.5027 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003944/0.2763, allocations: 175.8 kB / 0.5029 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/0.2765, allocations: 20 kB / 0.5029 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007889/0.2773, allocations: 35.89 kB / 0.503 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.2776, allocations: 76.84 kB / 0.503 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-05/0.2777, allocations: 35.98 kB / 0.5031 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1715/0.4492, allocations: 0.9119 MB / 0.5039 GB, free: 80.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.4492, allocations: 0 / 0.5039 GB, free: 80.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002938/0.4522, allocations: 0.8266 MB / 0.5048 GB, free: 80.18 MB / 382.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.002524/0.4547, allocations: 1.001 MB / 0.5057 GB, free: 80.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.4577, allocations: 1.454 MB / 0.5072 GB, free: 79.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4577, allocations: 3.969 kB / 0.5072 GB, free: 79.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009224/0.4586, allocations: 0.6845 MB / 0.5078 GB, free: 79.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.4599, allocations: 236.5 kB / 0.5081 GB, free: 79.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.4631, allocations: 2.687 MB / 0.5107 GB, free: 78.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000556/0.4637, allocations: 1.08 MB / 0.5117 GB, free: 77.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005235/0.4642, allocations: 223.1 kB / 0.5119 GB, free: 77.46 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4642, allocations: 0 / 0.5119 GB, free: 77.46 MB / 382.1 MB Notification: Performance of Templates: time 0.03245/0.4967, allocations: 31.04 MB / 0.5423 GB, free: 55.09 MB / 382.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)