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.001098/0.001098, allocations: 104 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.001063/0.001063, allocations: 191.2 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.297/1.297, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07808/0.07808, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 61.94 kB / 371.7 MB, free: 50.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.08699, allocations: 53.61 MB / 425.3 MB, free: 13.33 MB / 302.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.03887/0.1259, allocations: 33.59 MB / 458.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04814/0.1741, allocations: 47.4 MB / 0.4945 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.1763, allocations: 35.81 kB / 0.4945 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002931/0.1792, allocations: 1.02 MB / 0.4955 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01066/0.1899, allocations: 3.701 MB / 0.4991 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01671/0.2067, allocations: 6.368 MB / 0.5053 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2058/0.4125, allocations: 4.537 MB / 0.5098 GB, free: 20.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003185/0.4157, allocations: 2.659 MB / 0.5124 GB, free: 19.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00299/0.4187, allocations: 2.232 MB / 0.5145 GB, free: 19.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004497/0.4232, allocations: 2.563 MB / 0.517 GB, free: 19.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009086/0.4241, allocations: 416.9 kB / 0.5174 GB, free: 19.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01684/0.441, allocations: 5.285 MB / 0.5226 GB, free: 19.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001719/0.4427, allocations: 0.9821 MB / 0.5236 GB, free: 19.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003926/0.4467, allocations: 2.016 MB / 0.5255 GB, free: 19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02154/0.4682, allocations: 9.866 MB / 0.5352 GB, free: 18.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4683, allocations: 2.656 kB / 0.5352 GB, free: 18.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4683, allocations: 0 / 0.5352 GB, free: 18.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.986e-05/0.4684, allocations: 3.938 kB / 0.5352 GB, free: 18.16 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: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.009383/0.4778, allocations: 4.76 MB / 0.5398 GB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.4778, allocations: 9.844 kB / 0.5398 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003524/0.4814, allocations: 0.8322 MB / 0.5406 GB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.4842, allocations: 1.655 MB / 0.5423 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.4844, allocations: 299 kB / 0.5425 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004982/0.4849, allocations: 334.7 kB / 0.5429 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005884/0.4908, allocations: 4.481 MB / 0.5472 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.047e-05/0.4908, allocations: 0 / 0.5472 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002951/0.4911, allocations: 132 kB / 0.5474 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/0.4912, allocations: 79.94 kB / 0.5474 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007452/0.4986, allocations: 6.104 MB / 0.5534 GB, free: 3.793 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.02432/0.523, allocations: 13.97 MB / 0.567 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009468/0.5325, allocations: 6.323 MB / 0.5732 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003342/0.5358, allocations: 2.235 MB / 0.5754 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02317/0.559, allocations: 14.78 MB / 0.5898 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.063e-05/0.5591, allocations: 64.8 kB / 0.5899 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00198/0.5611, allocations: 372.6 kB / 0.5903 GB, free: 12.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=284): time 1.79e-05/0.5612, allocations: 0 / 0.5903 GB, free: 12.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=387): time 0.09307/0.6542, allocations: 23.82 MB / 0.6135 GB, free: 4.984 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.6543, allocations: 94.44 kB / 0.6136 GB, free: 4.879 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002333/0.6567, allocations: 1.708 MB / 0.6153 GB, free: 3.125 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007096/0.6574, allocations: 85.7 kB / 0.6154 GB, free: 3.035 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.6586, allocations: 1.313 MB / 0.6166 GB, free: 1.719 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001727/0.6603, allocations: 1.306 MB / 0.6179 GB, free: 432 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001707/0.662, allocations: 0.7826 MB / 0.6187 GB, free: 15.63 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.6621, allocations: 301.1 kB / 0.619 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003229/0.6654, allocations: 1.816 MB / 0.6207 GB, free: 13.51 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004186/0.6696, allocations: 2.82 MB / 0.6235 GB, free: 10.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008823/0.6784, allocations: 4.947 MB / 0.6283 GB, free: 5.109 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.423e-05/0.6785, allocations: 8 kB / 0.6283 GB, free: 5.102 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.02096/0.6995, allocations: 6.807 MB / 0.635 GB, free: 14.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.981e-05/0.6996, allocations: 18.69 kB / 0.635 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.956e-05/0.6996, allocations: 28 kB / 0.635 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01107/0.7107, allocations: 2.281 MB / 0.6372 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003789/0.7145, allocations: 0.8924 MB / 0.6381 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02588/0.7404, allocations: 18.38 MB / 0.6561 GB, free: 8.125 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003549/0.744, allocations: 138.6 kB / 0.6562 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008336/0.7448, allocations: 235.2 kB / 0.6564 GB, free: 7.766 MB / 494.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.002122/0.747, allocations: 0.6058 MB / 0.657 GB, free: 7.207 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/0.748, allocations: 276.5 kB / 0.6573 GB, free: 6.934 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01825/0.7663, allocations: 6.586 MB / 0.6637 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.176e-05/0.7663, allocations: 47.94 kB / 0.6638 GB, free: 340 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.089e-05/0.7664, allocations: 4 kB / 0.6638 GB, free: 336 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.89e-05/0.7664, allocations: 19.92 kB / 0.6638 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02459/0.791, allocations: 10.64 MB / 0.6742 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/0.7911, allocations: 4 kB / 0.6742 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002729/0.7938, allocations: 0.659 MB / 0.6748 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009256/0.8031, allocations: 2.024 MB / 0.6768 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004599/0.8036, allocations: 135.9 kB / 0.6769 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02315/0.8267, allocations: 17 MB / 0.6935 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/0.8268, allocations: 7.375 kB / 0.6935 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2222/1.049, allocations: 8.476 MB / 0.7018 GB, free: 196.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001628/1.051, allocations: 0.6926 MB / 0.7025 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004321/1.051, allocations: 84.42 kB / 0.7026 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001871/1.053, allocations: 99.42 kB / 0.7027 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000788/1.054, allocations: 340.5 kB / 0.703 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003323/1.054, allocations: 156.5 kB / 0.7031 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001432/1.056, allocations: 1.12 MB / 0.7042 GB, free: 196.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.3e-07/1.056, allocations: 0 / 0.7042 GB, free: 196.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006843/1.062, allocations: 2.173 MB / 0.7064 GB, free: 196.1 MB / 0.5137 GB 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.005631/1.068, allocations: 2.201 MB / 0.7085 GB, free: 195.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.079, allocations: 5.851 MB / 0.7142 GB, free: 193.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/1.079, allocations: 2.75 kB / 0.7142 GB, free: 193.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00564/1.085, allocations: 3.547 MB / 0.7177 GB, free: 191.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002738/1.088, allocations: 0.5524 MB / 0.7182 GB, free: 191.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009252/1.097, allocations: 6.636 MB / 0.7247 GB, free: 188.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/1.098, allocations: 1.884 MB / 0.7265 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002337/1.1, allocations: 0.6623 MB / 0.7272 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/1.101, allocations: 453.9 kB / 0.7276 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of SimCode: time 7.92e-07/1.102, allocations: 0 / 0.7276 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.1012/1.203, allocations: 85.13 MB / 0.8108 GB, free: 108.4 MB / 0.5137 GB 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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)