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.000989/0.0009888, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001243/0.001243, allocations: 177.3 kB / 15.95 MB, free: 216 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.279/1.279, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.187/0.187, allocations: 15.26 MB / 306.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002998/0.0003, allocations: 8 kB / 371.5 MB, free: 3.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.299, allocations: 54.61 MB / 426.1 MB, free: 40.03 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.01007/0.3091, allocations: 13.11 MB / 439.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03338/0.3425, allocations: 39.92 MB / 479.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002873/0.3454, allocations: 67.5 kB / 479.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002333/0.3478, allocations: 0.9464 MB / 480.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009914/0.3577, allocations: 3.733 MB / 483.8 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01537/0.3731, allocations: 5.696 MB / 489.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007052/0.3802, allocations: 2.969 MB / 492.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004086/0.3843, allocations: 2.116 MB / 494.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004289/0.3886, allocations: 1.657 MB / 496.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005611/0.3942, allocations: 2.23 MB / 498.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001919/0.3962, allocations: 231.8 kB / 498.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02376/0.4199, allocations: 5.78 MB / 0.4927 GB, free: 7.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002397/0.4224, allocations: 0.7709 MB / 0.4934 GB, free: 6.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001918/0.4243, allocations: 0.6328 MB / 0.4941 GB, free: 6.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01304/0.4374, allocations: 5.862 MB / 0.4998 GB, free: 308 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.4374, allocations: 0 / 0.4998 GB, free: 308 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4374, allocations: 0 / 0.4998 GB, free: 308 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001613/0.4376, allocations: 0 / 0.4998 GB, free: 308 kB / 366.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.009266/0.4469, allocations: 3.945 MB / 0.5036 GB, free: 12.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.4469, allocations: 11.97 kB / 0.5037 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001114/0.4481, allocations: 426.5 kB / 0.5041 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003986/0.4521, allocations: 0.8276 MB / 0.5049 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00302/0.4551, allocations: 1.445 MB / 0.5063 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002945/0.4554, allocations: 297.7 kB / 0.5066 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008826/0.4563, allocations: 331.8 kB / 0.5069 GB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009492/0.4658, allocations: 4.426 MB / 0.5112 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.515e-05/0.4659, allocations: 11.92 kB / 0.5112 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006208/0.4666, allocations: 127.9 kB / 0.5113 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.522e-05/0.4667, allocations: 76 kB / 0.5114 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/0.4771, allocations: 6.087 MB / 0.5174 GB, free: 14.08 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.02797/0.5051, allocations: 13.77 MB / 0.5308 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009506/0.5146, allocations: 6.297 MB / 0.5369 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02225/0.5369, allocations: 14.39 MB / 0.551 GB, free: 9.691 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.537, allocations: 60.8 kB / 0.5511 GB, free: 9.621 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001692/0.5387, allocations: 373 kB / 0.5514 GB, free: 9.254 MB / 430.1 MB Notification: Performance of pre-optimization done (n=284): time 9.257e-06/0.5387, allocations: 0 / 0.5514 GB, free: 9.254 MB / 430.1 MB Notification: Performance of matching and sorting (n=387): time 0.09003/0.6287, allocations: 24.08 MB / 0.5749 GB, free: 0.832 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.6288, allocations: 90.45 kB / 0.575 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1836/0.8125, allocations: 1.688 MB / 0.5767 GB, free: 119.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006273/0.8132, allocations: 90.2 kB / 0.5768 GB, free: 119 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006026/0.8138, allocations: 1.307 MB / 0.578 GB, free: 118.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001075/0.8149, allocations: 1.303 MB / 0.5793 GB, free: 117.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.8151, allocations: 88.94 kB / 0.5794 GB, free: 117.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.8152, allocations: 464.2 kB / 0.5798 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/0.8179, allocations: 1.802 MB / 0.5816 GB, free: 117.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002908/0.8209, allocations: 2.795 MB / 0.5843 GB, free: 116.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002844/0.8237, allocations: 2.148 MB / 0.5864 GB, free: 115.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.537e-05/0.8237, allocations: 13.06 kB / 0.5864 GB, free: 115.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01599/0.8397, allocations: 6.789 MB / 0.5931 GB, free: 113 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.613e-05/0.8398, allocations: 16.94 kB / 0.5931 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-05/0.8399, allocations: 31.78 kB / 0.5931 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/0.8501, allocations: 2.317 MB / 0.5954 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003343/0.8534, allocations: 0.9016 MB / 0.5963 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02195/0.8754, allocations: 17.34 MB / 0.6132 GB, free: 99.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003684/0.8791, allocations: 208.1 kB / 0.6134 GB, free: 99.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005171/0.8797, allocations: 231.6 kB / 0.6136 GB, free: 99.05 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.001391/0.8811, allocations: 0.6028 MB / 0.6142 GB, free: 98.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007145/0.8818, allocations: 273.3 kB / 0.6145 GB, free: 98.47 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01765/0.8994, allocations: 6.61 MB / 0.6209 GB, free: 95.94 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.157e-05/0.8995, allocations: 41.19 kB / 0.6209 GB, free: 95.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-05/0.8996, allocations: 4.938 kB / 0.621 GB, free: 95.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001092/0.8997, allocations: 21.3 kB / 0.621 GB, free: 95.94 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02463/0.9243, allocations: 10.6 MB / 0.6313 GB, free: 91.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.077e-05/0.9244, allocations: 5.875 kB / 0.6313 GB, free: 91.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/0.9274, allocations: 0.662 MB / 0.632 GB, free: 91.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009336/0.9367, allocations: 2.103 MB / 0.634 GB, free: 91.03 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009177/0.9377, allocations: 131.8 kB / 0.6342 GB, free: 90.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01813/0.9558, allocations: 15.93 MB / 0.6497 GB, free: 77.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.9559, allocations: 4 kB / 0.6497 GB, free: 77.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/0.9725, allocations: 8.751 MB / 0.6583 GB, free: 68.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/0.9743, allocations: 0.6728 MB / 0.6589 GB, free: 67.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004739/0.9748, allocations: 83.95 kB / 0.659 GB, free: 67.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001984/0.9768, allocations: 155.8 kB / 0.6591 GB, free: 67.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005738/0.9774, allocations: 342.6 kB / 0.6595 GB, free: 67.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002528/0.9777, allocations: 155.9 kB / 0.6596 GB, free: 66.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001203/0.9789, allocations: 1.101 MB / 0.6607 GB, free: 65.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.9789, allocations: 0 / 0.6607 GB, free: 65.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006038/0.9849, allocations: 2.111 MB / 0.6628 GB, free: 63.97 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.01975/1.005, allocations: 12.44 MB / 0.6749 GB, free: 51.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009106/1.014, allocations: 5.844 MB / 0.6806 GB, free: 45.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/1.014, allocations: 448 / 0.6806 GB, free: 45.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005105/1.019, allocations: 3.523 MB / 0.6841 GB, free: 42.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/1.021, allocations: 459.2 kB / 0.6845 GB, free: 41.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01654/1.038, allocations: 32.35 MB / 0.7161 GB, free: 8.004 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/1.039, allocations: 1.952 MB / 0.718 GB, free: 6.016 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002958/1.042, allocations: 0.6743 MB / 0.7187 GB, free: 5.344 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001702/1.044, allocations: 1.549 MB / 0.7202 GB, free: 3.793 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/1.044, allocations: 0 / 0.7202 GB, free: 3.793 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3137/1.357, allocations: 102.8 MB / 0.8206 GB, free: 107.5 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000119/1.357, allocations: 203.9 kB / 0.8208 GB, free: 107.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.297/6.655, allocations: 0 / 0.8208 GB, free: 107.3 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: