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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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: "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008012/0.0008012, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009087/0.0009087, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1752/0.1752, allocations: 15.25 MB / 306.3 MB, free: 15.8 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003292/0.0003294, allocations: 8 kB / 371.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2503, allocations: 54.61 MB / 426.2 MB, free: 40.21 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.01094/0.2612, allocations: 14.7 MB / 440.9 MB, free: 32.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03364/0.2949, allocations: 43.23 MB / 484.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002496/0.2974, allocations: 72.78 kB / 484.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002404/0.2999, allocations: 0.916 MB / 485.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009408/0.3093, allocations: 3.255 MB / 488.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01561/0.3249, allocations: 5.185 MB / 493.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006687/0.3316, allocations: 4.129 MB / 497.7 MB, free: 9.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004294/0.3359, allocations: 2.137 MB / 499.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004096/0.3401, allocations: 1.793 MB / 0.4898 GB, free: 8.375 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004901/0.345, allocations: 2.299 MB / 0.4921 GB, free: 7.164 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001391/0.3464, allocations: 228.2 kB / 0.4923 GB, free: 7.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01667/0.3631, allocations: 4.828 MB / 0.497 GB, free: 3.164 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00165/0.3647, allocations: 0.7631 MB / 0.4978 GB, free: 2.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001788/0.3666, allocations: 0.6289 MB / 0.4984 GB, free: 1.762 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.3782, allocations: 7.321 MB / 0.5055 GB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3782, allocations: 0 / 0.5055 GB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3782, allocations: 0 / 0.5055 GB, free: 10.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001465/0.3784, allocations: 0 / 0.5055 GB, free: 10.41 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.008657/0.3871, allocations: 3.945 MB / 0.5094 GB, free: 6.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3871, allocations: 12.03 kB / 0.5094 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006997/0.3878, allocations: 426.5 kB / 0.5098 GB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003294/0.3911, allocations: 0.8276 MB / 0.5106 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/0.3936, allocations: 1.503 MB / 0.5121 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/0.3939, allocations: 297.6 kB / 0.5124 GB, free: 3.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005161/0.3944, allocations: 327.8 kB / 0.5127 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006879/0.4013, allocations: 4.461 MB / 0.517 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.871e-05/0.4014, allocations: 4 kB / 0.517 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003053/0.4017, allocations: 124 kB / 0.5172 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.285e-05/0.4017, allocations: 76 kB / 0.5172 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008847/0.4106, allocations: 6.087 MB / 0.5232 GB, free: 8.113 MB / 398.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.02145/0.4321, allocations: 13.89 MB / 0.5367 GB, free: 9.812 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008727/0.4408, allocations: 6.296 MB / 0.5429 GB, free: 3.344 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003261/0.4441, allocations: 2.231 MB / 0.5451 GB, free: 1.109 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02183/0.4659, allocations: 14.52 MB / 0.5592 GB, free: 1.246 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.812e-05/0.466, allocations: 64.73 kB / 0.5593 GB, free: 1.172 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0016/0.4676, allocations: 373 kB / 0.5597 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of pre-optimization done (n=284): time 7.905e-06/0.4677, allocations: 0 / 0.5597 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of matching and sorting (n=387): time 0.2589/0.7265, allocations: 24.08 MB / 0.5832 GB, free: 117.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.7266, allocations: 94.95 kB / 0.5833 GB, free: 117.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001671/0.7283, allocations: 1.694 MB / 0.5849 GB, free: 117.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003037/0.7286, allocations: 90.61 kB / 0.585 GB, free: 117 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005484/0.7292, allocations: 1.3 MB / 0.5863 GB, free: 116 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007388/0.7299, allocations: 1.31 MB / 0.5876 GB, free: 115 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002197/0.7301, allocations: 84.06 kB / 0.5876 GB, free: 114.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.7303, allocations: 465.7 kB / 0.5881 GB, free: 114.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002347/0.7326, allocations: 1.807 MB / 0.5898 GB, free: 113.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002693/0.7353, allocations: 2.806 MB / 0.5926 GB, free: 111.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002858/0.7382, allocations: 2.139 MB / 0.5947 GB, free: 110.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/0.7382, allocations: 9.188 kB / 0.5947 GB, free: 110.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01599/0.7542, allocations: 6.804 MB / 0.6013 GB, free: 108.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.965e-05/0.7543, allocations: 17.38 kB / 0.6013 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-05/0.7544, allocations: 29.5 kB / 0.6014 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/0.7648, allocations: 2.317 MB / 0.6036 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003598/0.7685, allocations: 0.8939 MB / 0.6045 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02227/0.7908, allocations: 17.09 MB / 0.6212 GB, free: 94.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003276/0.7941, allocations: 212.5 kB / 0.6214 GB, free: 94.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004764/0.7946, allocations: 234.3 kB / 0.6216 GB, free: 94.51 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 16,(1,100.0%) 3,(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 5 {3 26,1 3,1 6,1 2,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00129/0.7959, allocations: 0.5978 MB / 0.6222 GB, free: 94.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004803/0.7964, allocations: 272.9 kB / 0.6225 GB, free: 93.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01711/0.8135, allocations: 6.615 MB / 0.6289 GB, free: 91.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-05/0.8136, allocations: 45.84 kB / 0.629 GB, free: 91.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.248e-05/0.8136, allocations: 9.125 kB / 0.629 GB, free: 91.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001175/0.8137, allocations: 20.58 kB / 0.629 GB, free: 91.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02206/0.8358, allocations: 10.63 MB / 0.6394 GB, free: 86.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.8358, allocations: 7.656 kB / 0.6394 GB, free: 86.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/0.8384, allocations: 0.6569 MB / 0.64 GB, free: 86.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008592/0.847, allocations: 2.098 MB / 0.6421 GB, free: 86.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004521/0.8474, allocations: 135 kB / 0.6422 GB, free: 85.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01706/0.8645, allocations: 15.7 MB / 0.6575 GB, free: 69.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.8646, allocations: 4 kB / 0.6575 GB, free: 69.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01781/0.8824, allocations: 8.47 MB / 0.6658 GB, free: 60.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/0.8842, allocations: 0.6845 MB / 0.6665 GB, free: 60.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008299/0.8851, allocations: 88.27 kB / 0.6666 GB, free: 60.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/0.8874, allocations: 151.8 kB / 0.6667 GB, free: 60.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007589/0.8882, allocations: 338.6 kB / 0.667 GB, free: 59.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004235/0.8886, allocations: 167.8 kB / 0.6672 GB, free: 59.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.89, allocations: 1.101 MB / 0.6683 GB, free: 58.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.89, allocations: 0 / 0.6683 GB, free: 58.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006177/0.8962, allocations: 2.128 MB / 0.6703 GB, free: 56.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 16,(1,100.0%) 3,(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 5 {2 8,4 30,1 3,1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.02093/0.9171, allocations: 11.07 MB / 0.6811 GB, free: 45.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00956/0.9267, allocations: 5.849 MB / 0.6869 GB, free: 39.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.9268, allocations: 0 / 0.6869 GB, free: 39.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005343/0.9321, allocations: 3.527 MB / 0.6903 GB, free: 36.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/0.9351, allocations: 0.5203 MB / 0.6908 GB, free: 35.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04338/0.9785, allocations: 24.6 MB / 0.7148 GB, free: 9.746 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001926/0.9805, allocations: 1.881 MB / 0.7167 GB, free: 7.832 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003722/0.9843, allocations: 0.67 MB / 0.7173 GB, free: 7.164 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002285/0.9866, allocations: 1.542 MB / 0.7188 GB, free: 5.621 MB / 446.1 MB Notification: Performance of SimCode: time 1.292e-06/0.9866, allocations: 0 / 0.7188 GB, free: 5.621 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3286/1.315, allocations: 103.7 MB / 0.8201 GB, free: 108.4 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001457/1.315, allocations: 211.2 kB / 0.8203 GB, free: 108.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.394/6.709, allocations: 0 / 0.8203 GB, free: 108.2 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1) Environment - environmentSimulation: