Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.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.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002069/0.00207, allocations: 198.5 kB / 16.14 MB, free: 6.703 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.353/1.353, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2037/0.2037, allocations: 15.31 MB / 305.3 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 59.91 kB / 369.6 MB, free: 4.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1213, allocations: 53.62 MB / 423.3 MB, free: 14.79 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.AcidBase.CarbonDioxideInBlood): time 0.2579/0.3793, allocations: 34.88 MB / 458.1 MB, free: 37 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04003/0.4193, allocations: 47.3 MB / 0.4936 GB, free: 9.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003457/0.4228, allocations: 69.41 kB / 0.4937 GB, free: 9.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003281/0.4261, allocations: 0.9154 MB / 0.4946 GB, free: 8.734 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.013/0.4391, allocations: 3.266 MB / 0.4977 GB, free: 6.496 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02079/0.46, allocations: 5.593 MB / 0.5032 GB, free: 1.852 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008351/0.4683, allocations: 4.353 MB / 0.5075 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004135/0.4725, allocations: 2.319 MB / 0.5097 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00445/0.477, allocations: 2.172 MB / 0.5118 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005161/0.4822, allocations: 2.506 MB / 0.5143 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001227/0.4834, allocations: 288 kB / 0.5146 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01979/0.5032, allocations: 5.171 MB / 0.5196 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00206/0.5053, allocations: 0.8603 MB / 0.5205 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003182/0.5085, allocations: 1.901 MB / 0.5223 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02487/0.5334, allocations: 9.261 MB / 0.5314 GB, free: 7.371 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.5334, allocations: 4 kB / 0.5314 GB, free: 7.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5335, allocations: 0 / 0.5314 GB, free: 7.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001142/0.5336, allocations: 4 kB / 0.5314 GB, free: 7.363 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.01099/0.5446, allocations: 4.762 MB / 0.536 GB, free: 2.535 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.5446, allocations: 8.031 kB / 0.536 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003686/0.5483, allocations: 0.8272 MB / 0.5368 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002488/0.5508, allocations: 1.605 MB / 0.5384 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002353/0.5511, allocations: 298.2 kB / 0.5387 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005138/0.5516, allocations: 324.2 kB / 0.539 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006905/0.5585, allocations: 4.48 MB / 0.5434 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.726e-05/0.5586, allocations: 0 / 0.5434 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003106/0.5589, allocations: 128 kB / 0.5435 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-05/0.559, allocations: 76 kB / 0.5436 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/0.5718, allocations: 6.103 MB / 0.5495 GB, free: 4.555 MB / 414.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.04004/0.6119, allocations: 14.02 MB / 0.5632 GB, free: 6.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/0.6231, allocations: 6.323 MB / 0.5694 GB, free: 15.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003763/0.6269, allocations: 2.239 MB / 0.5716 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02466/0.6516, allocations: 14.8 MB / 0.586 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.622e-05/0.6517, allocations: 68.8 kB / 0.5861 GB, free: 13.16 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001905/0.6536, allocations: 369 kB / 0.5864 GB, free: 12.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=284): time 1.25e-05/0.6536, allocations: 0 / 0.5864 GB, free: 12.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=387): time 0.319/0.9726, allocations: 23.81 MB / 0.6097 GB, free: 128.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.9727, allocations: 98.5 kB / 0.6098 GB, free: 128 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001921/0.9747, allocations: 1.707 MB / 0.6114 GB, free: 127.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005832/0.9752, allocations: 90.2 kB / 0.6115 GB, free: 127.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005766/0.9758, allocations: 1.301 MB / 0.6128 GB, free: 126.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009158/0.9768, allocations: 1.314 MB / 0.6141 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001025/0.9778, allocations: 0.7777 MB / 0.6148 GB, free: 124.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.419e-05/0.9778, allocations: 301.1 kB / 0.6151 GB, free: 124.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/0.9805, allocations: 1.816 MB / 0.6169 GB, free: 123.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003083/0.9836, allocations: 2.827 MB / 0.6197 GB, free: 121.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006497/0.9901, allocations: 4.93 MB / 0.6245 GB, free: 118.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.343e-05/0.9902, allocations: 8.406 kB / 0.6245 GB, free: 118.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.02089/1.011, allocations: 6.823 MB / 0.6312 GB, free: 116.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.826e-05/1.011, allocations: 17.81 kB / 0.6312 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-05/1.011, allocations: 29.72 kB / 0.6312 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01168/1.023, allocations: 2.275 MB / 0.6334 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004372/1.027, allocations: 0.8938 MB / 0.6343 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02538/1.053, allocations: 17 MB / 0.6509 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00417/1.057, allocations: 210.2 kB / 0.6511 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/1.058, allocations: 232.1 kB / 0.6513 GB, free: 102.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (469): * Single equations (assignments): 460 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,26), (1,3), (1,6), (1,2), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.002679/1.061, allocations: 0.6049 MB / 0.6519 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/1.062, allocations: 271.9 kB / 0.6522 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02059/1.083, allocations: 6.578 MB / 0.6586 GB, free: 99.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.131e-05/1.083, allocations: 41.84 kB / 0.6586 GB, free: 99.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.227e-05/1.083, allocations: 9.562 kB / 0.6586 GB, free: 99.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001399/1.083, allocations: 20.53 kB / 0.6587 GB, free: 99.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.025/1.108, allocations: 10.67 MB / 0.6691 GB, free: 95.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.909e-05/1.108, allocations: 4 kB / 0.6691 GB, free: 95.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002997/1.111, allocations: 0.6502 MB / 0.6697 GB, free: 94.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009302/1.12, allocations: 2.07 MB / 0.6717 GB, free: 92.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000744/1.121, allocations: 143.8 kB / 0.6719 GB, free: 92.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01858/1.14, allocations: 15.67 MB / 0.6872 GB, free: 75.83 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.14, allocations: 8 kB / 0.6872 GB, free: 75.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02054/1.16, allocations: 8.467 MB / 0.6955 GB, free: 67.26 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001908/1.162, allocations: 0.6923 MB / 0.6961 GB, free: 66.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007927/1.163, allocations: 80 kB / 0.6962 GB, free: 66.47 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002593/1.166, allocations: 151.8 kB / 0.6964 GB, free: 66.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008477/1.166, allocations: 343.2 kB / 0.6967 GB, free: 66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004409/1.167, allocations: 155.9 kB / 0.6968 GB, free: 65.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001455/1.168, allocations: 1.121 MB / 0.6979 GB, free: 64.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/1.168, allocations: 0 / 0.6979 GB, free: 64.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007024/1.175, allocations: 2.159 MB / 0.7 GB, free: 62.77 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,blood_plasma.mass,HCO3.logn,CO2.logn,H2O.logn,HCO3_E.logn,CO2_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,others_E.logn,others_P.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 (354): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,8), (4,30), (1,3), (1,2), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005831/1.181, allocations: 2.2 MB / 0.7022 GB, free: 61.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01058/1.192, allocations: 5.839 MB / 0.7079 GB, free: 55.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.515e-06/1.192, allocations: 0 / 0.7079 GB, free: 55.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006139/1.198, allocations: 3.533 MB / 0.7113 GB, free: 51.66 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/1.202, allocations: 0.511 MB / 0.7118 GB, free: 51.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/1.214, allocations: 8.178 MB / 0.7198 GB, free: 43.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/1.215, allocations: 1.882 MB / 0.7217 GB, free: 41.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003675/1.219, allocations: 0.6716 MB / 0.7223 GB, free: 40.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/1.22, allocations: 459.1 kB / 0.7228 GB, free: 40.26 MB / 462.1 MB Notification: Performance of SimCode: time 1.813e-06/1.22, allocations: 0 / 0.7228 GB, free: 40.26 MB / 462.1 MB Notification: Performance of Templates: time 0.3452/1.566, allocations: 81.66 MB / 0.8025 GB, free: 129.2 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.makefile (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.sim & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)