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: "" <> 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.001301/0.001301, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001305/0.001305, allocations: 191.7 kB / 16.13 MB, free: 6.668 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.217/1.217, allocations: 222.9 MB / 239.8 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1792/0.1792, allocations: 15.32 MB / 305.3 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 59.91 kB / 369.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08135/0.08247, allocations: 53.61 MB / 423.4 MB, free: 14.66 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.1833/0.2658, allocations: 35.51 MB / 458.9 MB, free: 36.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03828/0.3041, allocations: 47.31 MB / 0.4943 GB, free: 8.902 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00241/0.3065, allocations: 70.56 kB / 0.4944 GB, free: 8.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002632/0.3092, allocations: 0.9167 MB / 0.4953 GB, free: 8.367 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008698/0.3179, allocations: 3.271 MB / 0.4985 GB, free: 5.633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01656/0.3345, allocations: 5.577 MB / 0.5039 GB, free: 1.004 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006285/0.3408, allocations: 4.374 MB / 0.5082 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00323/0.3441, allocations: 2.31 MB / 0.5105 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00288/0.3469, allocations: 2.172 MB / 0.5126 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003103/0.3501, allocations: 2.51 MB / 0.515 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005672/0.3506, allocations: 280 kB / 0.5153 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01583/0.3665, allocations: 5.18 MB / 0.5204 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.3677, allocations: 0.8571 MB / 0.5212 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002142/0.3698, allocations: 1.914 MB / 0.5231 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01983/0.3897, allocations: 9.253 MB / 0.5321 GB, free: 6.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3897, allocations: 0 / 0.5321 GB, free: 6.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3897, allocations: 0 / 0.5321 GB, free: 6.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.734e-05/0.3898, allocations: 0 / 0.5321 GB, free: 6.613 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.009385/0.3992, allocations: 4.758 MB / 0.5367 GB, free: 1.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3992, allocations: 8.031 kB / 0.5367 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004712/0.3997, allocations: 426.7 kB / 0.5372 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003532/0.4033, allocations: 0.835 MB / 0.538 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.4055, allocations: 1.601 MB / 0.5395 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/0.4058, allocations: 294.3 kB / 0.5398 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004778/0.4062, allocations: 328.2 kB / 0.5401 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006231/0.4125, allocations: 4.476 MB / 0.5445 GB, free: 9.691 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.558e-05/0.4125, allocations: 3.938 kB / 0.5445 GB, free: 9.688 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003005/0.4128, allocations: 128 kB / 0.5446 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.574e-05/0.4129, allocations: 76 kB / 0.5447 GB, free: 9.488 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008038/0.4209, allocations: 6.107 MB / 0.5507 GB, free: 3.371 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.0209/0.4418, allocations: 14.02 MB / 0.5644 GB, free: 4.938 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009087/0.4509, allocations: 6.308 MB / 0.5705 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003385/0.4544, allocations: 2.251 MB / 0.5727 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01872/0.4731, allocations: 14.79 MB / 0.5872 GB, free: 12.06 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.4732, allocations: 64.78 kB / 0.5872 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001537/0.4747, allocations: 373 kB / 0.5876 GB, free: 11.62 MB / 462.1 MB Notification: Performance of pre-optimization done (n=284): time 5.951e-06/0.4747, allocations: 3.938 kB / 0.5876 GB, free: 11.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=387): time 0.2398/0.7145, allocations: 23.81 MB / 0.6108 GB, free: 127.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.7146, allocations: 89.55 kB / 0.6109 GB, free: 127.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.7164, allocations: 1.707 MB / 0.6126 GB, free: 127.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006887/0.7172, allocations: 96.36 kB / 0.6127 GB, free: 127.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006071/0.7178, allocations: 1.3 MB / 0.6139 GB, free: 126 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/0.719, allocations: 1.309 MB / 0.6152 GB, free: 125 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001085/0.7201, allocations: 0.7768 MB / 0.616 GB, free: 124.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.584e-05/0.7201, allocations: 301.1 kB / 0.6163 GB, free: 124.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002495/0.7226, allocations: 1.819 MB / 0.618 GB, free: 123.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002909/0.7256, allocations: 2.823 MB / 0.6208 GB, free: 121.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006127/0.7317, allocations: 4.933 MB / 0.6256 GB, free: 118.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.327e-05/0.7317, allocations: 8.375 kB / 0.6256 GB, free: 118.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.0181/0.7498, allocations: 6.818 MB / 0.6323 GB, free: 116.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.246e-05/0.7499, allocations: 20.42 kB / 0.6323 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.995e-05/0.75, allocations: 29.34 kB / 0.6323 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01107/0.7611, allocations: 2.282 MB / 0.6346 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003596/0.7647, allocations: 0.897 MB / 0.6354 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02224/0.787, allocations: 17 MB / 0.652 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003516/0.7905, allocations: 211.5 kB / 0.6522 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005705/0.7911, allocations: 227.5 kB / 0.6525 GB, free: 102.8 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.001349/0.7925, allocations: 0.6084 MB / 0.6531 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006678/0.7932, allocations: 272.3 kB / 0.6533 GB, free: 102.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01707/0.8102, allocations: 6.58 MB / 0.6597 GB, free: 99.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.554e-05/0.8103, allocations: 40.31 kB / 0.6598 GB, free: 99.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-05/0.8103, allocations: 9.719 kB / 0.6598 GB, free: 99.79 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001113/0.8105, allocations: 21.38 kB / 0.6598 GB, free: 99.79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02045/0.8309, allocations: 10.66 MB / 0.6702 GB, free: 94.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.436e-05/0.831, allocations: 10.69 kB / 0.6702 GB, free: 94.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002657/0.8336, allocations: 0.654 MB / 0.6709 GB, free: 93.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009006/0.8427, allocations: 2.061 MB / 0.6729 GB, free: 91.37 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005762/0.8433, allocations: 139.8 kB / 0.673 GB, free: 91.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01683/0.8601, allocations: 15.68 MB / 0.6883 GB, free: 74.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.8601, allocations: 7.938 kB / 0.6883 GB, free: 74.63 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01648/0.8766, allocations: 8.475 MB / 0.6966 GB, free: 66.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/0.8779, allocations: 0.6923 MB / 0.6973 GB, free: 65.35 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004022/0.8783, allocations: 86.69 kB / 0.6974 GB, free: 65.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/0.8803, allocations: 145.1 kB / 0.6975 GB, free: 65.13 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006208/0.8809, allocations: 341.3 kB / 0.6978 GB, free: 64.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002485/0.8811, allocations: 155.9 kB / 0.698 GB, free: 64.65 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001024/0.8822, allocations: 1.117 MB / 0.6991 GB, free: 63.51 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8822, allocations: 0 / 0.6991 GB, free: 63.51 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004855/0.887, allocations: 2.159 MB / 0.7012 GB, free: 61.57 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.01989/0.907, allocations: 11.13 MB / 0.7121 GB, free: 50.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008512/0.9155, allocations: 5.832 MB / 0.7177 GB, free: 45.05 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.9155, allocations: 4 kB / 0.7178 GB, free: 45.05 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004787/0.9203, allocations: 3.532 MB / 0.7212 GB, free: 41.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/0.9227, allocations: 0.5122 MB / 0.7217 GB, free: 40.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05696/0.9797, allocations: 35.74 MB / 0.7566 GB, free: 2.895 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000963/0.9807, allocations: 1.881 MB / 0.7584 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00281/0.9835, allocations: 0.6734 MB / 0.7591 GB, free: 368 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001972/0.9855, allocations: 1.555 MB / 0.7606 GB, free: 14.82 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.9855, allocations: 0 / 0.7606 GB, free: 14.82 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2731/1.259, allocations: 106.3 MB / 0.8644 GB, free: 80.45 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000126/1.259, allocations: 239.4 kB / 0.8647 GB, free: 80.18 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.139/6.398, allocations: 3 kB / 0.8647 GB, free: 80.18 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/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)