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.0008093/0.000809, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000922/0.0009222, allocations: 180 kB / 16.92 MB, free: 6.652 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.319/1.319, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1878/0.1878, allocations: 15.27 MB / 307.4 MB, free: 15.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003164/0.0003165, allocations: 12 kB / 372.7 MB, free: 3.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2508, allocations: 54.62 MB / 427.4 MB, free: 40.12 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.03197/0.2828, allocations: 34.94 MB / 462.3 MB, free: 25.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04191/0.3248, allocations: 46.79 MB / 0.4972 GB, free: 1.746 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002991/0.3278, allocations: 63.5 kB / 0.4972 GB, free: 1.684 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002917/0.3307, allocations: 0.9127 MB / 0.4981 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01167/0.3424, allocations: 3.264 MB / 0.5013 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01943/0.3619, allocations: 5.586 MB / 0.5068 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007875/0.3698, allocations: 4.357 MB / 0.511 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00411/0.374, allocations: 2.199 MB / 0.5132 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004074/0.3781, allocations: 2.072 MB / 0.5152 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004564/0.3827, allocations: 2.379 MB / 0.5175 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.3841, allocations: 228 kB / 0.5177 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0186/0.4027, allocations: 5.123 MB / 0.5227 GB, free: 9.914 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001573/0.4043, allocations: 0.7863 MB / 0.5235 GB, free: 9.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003256/0.4076, allocations: 1.841 MB / 0.5253 GB, free: 7.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.4197, allocations: 7.162 MB / 0.5323 GB, free: 84 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4198, allocations: 0 / 0.5323 GB, free: 84 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4198, allocations: 4 kB / 0.5323 GB, free: 80 kB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001991/0.42, allocations: 4 kB / 0.5323 GB, free: 76 kB / 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.009813/0.4298, allocations: 3.946 MB / 0.5361 GB, free: 12.07 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.4299, allocations: 8.031 kB / 0.5362 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004055/0.434, allocations: 0.8324 MB / 0.537 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003066/0.437, allocations: 1.554 MB / 0.5385 GB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000255/0.4373, allocations: 298.2 kB / 0.5388 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007655/0.4381, allocations: 328.2 kB / 0.5391 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008135/0.4462, allocations: 4.48 MB / 0.5435 GB, free: 4.438 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.859e-05/0.4463, allocations: 3.938 kB / 0.5435 GB, free: 4.434 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003578/0.4467, allocations: 128 kB / 0.5436 GB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.046e-05/0.4468, allocations: 83.98 kB / 0.5437 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01026/0.457, allocations: 6.107 MB / 0.5496 GB, free: 14.11 MB / 430.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.02566/0.4827, allocations: 13.89 MB / 0.5632 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009464/0.4922, allocations: 6.323 MB / 0.5694 GB, free: 9.305 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003717/0.496, allocations: 2.243 MB / 0.5716 GB, free: 7.059 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1955/0.6915, allocations: 14.51 MB / 0.5857 GB, free: 114.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.6915, allocations: 61.3 kB / 0.5858 GB, free: 114.4 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001555/0.6931, allocations: 376.4 kB / 0.5861 GB, free: 114.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=284): time 6.713e-06/0.6931, allocations: 0 / 0.5861 GB, free: 114.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=387): time 0.08564/0.7788, allocations: 24.13 MB / 0.6097 GB, free: 106.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.7789, allocations: 92.33 kB / 0.6098 GB, free: 106.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002193/0.7811, allocations: 1.71 MB / 0.6115 GB, free: 105.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006274/0.7817, allocations: 88.86 kB / 0.6116 GB, free: 105.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007454/0.7825, allocations: 1.303 MB / 0.6128 GB, free: 104.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001178/0.7836, allocations: 1.309 MB / 0.6141 GB, free: 103.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004757/0.7841, allocations: 326.1 kB / 0.6144 GB, free: 103.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.716e-05/0.7842, allocations: 302.1 kB / 0.6147 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002957/0.7871, allocations: 1.823 MB / 0.6165 GB, free: 102.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003434/0.7906, allocations: 2.82 MB / 0.6192 GB, free: 100.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006712/0.7973, allocations: 4.944 MB / 0.6241 GB, free: 97.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.922e-05/0.7974, allocations: 11.81 kB / 0.6241 GB, free: 97.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01839/0.8158, allocations: 6.834 MB / 0.6308 GB, free: 94.81 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.403e-05/0.8158, allocations: 24.02 kB / 0.6308 GB, free: 94.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.044e-05/0.8159, allocations: 37.03 kB / 0.6308 GB, free: 94.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01115/0.827, allocations: 2.316 MB / 0.6331 GB, free: 93.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003574/0.8306, allocations: 0.8914 MB / 0.6339 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02217/0.8528, allocations: 17.07 MB / 0.6506 GB, free: 75.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003651/0.8565, allocations: 211.7 kB / 0.6508 GB, free: 75.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000575/0.8571, allocations: 231.9 kB / 0.651 GB, free: 75.13 MB / 446.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.001319/0.8584, allocations: 0.597 MB / 0.6516 GB, free: 74.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004919/0.8589, allocations: 276.6 kB / 0.6519 GB, free: 74.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01663/0.8756, allocations: 6.613 MB / 0.6583 GB, free: 67.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-05/0.8756, allocations: 40 kB / 0.6584 GB, free: 67.69 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/0.8757, allocations: 6.625 kB / 0.6584 GB, free: 67.69 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.72e-05/0.8758, allocations: 27.86 kB / 0.6584 GB, free: 67.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02181/0.8976, allocations: 10.65 MB / 0.6688 GB, free: 57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.446e-05/0.8976, allocations: 4 kB / 0.6688 GB, free: 56.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002832/0.9005, allocations: 0.658 MB / 0.6695 GB, free: 56.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009712/0.9102, allocations: 2.101 MB / 0.6715 GB, free: 54.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006424/0.9109, allocations: 138.5 kB / 0.6716 GB, free: 54.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01827/0.9291, allocations: 15.72 MB / 0.687 GB, free: 37.49 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.9292, allocations: 7.938 kB / 0.687 GB, free: 37.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01845/0.9476, allocations: 8.509 MB / 0.6953 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/0.9492, allocations: 0.6923 MB / 0.696 GB, free: 28.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004696/0.9497, allocations: 82.69 kB / 0.6961 GB, free: 28.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/0.9518, allocations: 148.8 kB / 0.6962 GB, free: 27.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006592/0.9525, allocations: 337.8 kB / 0.6965 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002832/0.9528, allocations: 159.9 kB / 0.6967 GB, free: 27.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001218/0.954, allocations: 1.119 MB / 0.6978 GB, free: 26.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.954, allocations: 0 / 0.6978 GB, free: 26.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006274/0.9603, allocations: 2.156 MB / 0.6999 GB, free: 24.4 MB / 446.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.00374/0.9641, allocations: 2.192 MB / 0.702 GB, free: 22.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009519/0.9736, allocations: 5.839 MB / 0.7077 GB, free: 16.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.936e-06/0.9736, allocations: 0 / 0.7077 GB, free: 16.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005833/0.9795, allocations: 3.537 MB / 0.7112 GB, free: 13.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003799/0.9833, allocations: 0.5149 MB / 0.7117 GB, free: 12.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.994, allocations: 8.381 MB / 0.7199 GB, free: 4.371 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.9951, allocations: 1.881 MB / 0.7217 GB, free: 2.457 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/0.9968, allocations: 0.5518 MB / 0.7222 GB, free: 1.906 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.9968, allocations: 0 / 0.7222 GB, free: 1.906 MB / 446.1 MB Notification: Performance of Templates: time 0.3393/1.336, allocations: 167.7 MB / 0.886 GB, free: 36.38 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)