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.0008811/0.0008811, allocations: 94.28 kB / 15.37 MB, free: 0.7266 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.001009/0.001009, allocations: 176.8 kB / 16.27 MB, free: 6.672 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.257/1.257, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1747/0.1747, allocations: 15.27 MB / 306.7 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002945, allocations: 8 kB / 372.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2352, allocations: 54.63 MB / 426.8 MB, free: 40.23 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.03039/0.2656, allocations: 34.93 MB / 461.8 MB, free: 25.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03928/0.3049, allocations: 46.78 MB / 0.4966 GB, free: 1.742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002438/0.3074, allocations: 63.5 kB / 0.4967 GB, free: 1.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.3099, allocations: 0.9166 MB / 0.4976 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009782/0.3197, allocations: 3.264 MB / 0.5008 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01632/0.3361, allocations: 5.59 MB / 0.5062 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006106/0.3422, allocations: 4.35 MB / 0.5105 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003207/0.3454, allocations: 2.193 MB / 0.5126 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002318/0.3477, allocations: 2.076 MB / 0.5146 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002506/0.3503, allocations: 2.375 MB / 0.517 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003963/0.3507, allocations: 228 kB / 0.5172 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01431/0.365, allocations: 5.127 MB / 0.5222 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008047/0.3658, allocations: 0.7901 MB / 0.523 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002167/0.368, allocations: 1.837 MB / 0.5247 GB, free: 7.289 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01686/0.3849, allocations: 9.147 MB / 0.5337 GB, free: 14.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3849, allocations: 0 / 0.5337 GB, free: 14.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3849, allocations: 0 / 0.5337 GB, free: 14.11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001241/0.385, allocations: 0 / 0.5337 GB, free: 14.11 MB / 414.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.00833/0.3934, allocations: 3.935 MB / 0.5375 GB, free: 10.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.3934, allocations: 11.97 kB / 0.5375 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007066/0.3941, allocations: 426.7 kB / 0.5379 GB, free: 9.668 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003416/0.3975, allocations: 0.8285 MB / 0.5388 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.4, allocations: 1.566 MB / 0.5403 GB, free: 7.215 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002345/0.4002, allocations: 294.3 kB / 0.5406 GB, free: 6.914 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006205/0.4008, allocations: 324.2 kB / 0.5409 GB, free: 6.598 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006598/0.4074, allocations: 4.48 MB / 0.5452 GB, free: 2.047 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.024e-05/0.4075, allocations: 4 kB / 0.5452 GB, free: 2.043 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003245/0.4078, allocations: 124 kB / 0.5454 GB, free: 1.922 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.678e-05/0.4079, allocations: 76 kB / 0.5454 GB, free: 1.848 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008226/0.4161, allocations: 6.115 MB / 0.5514 GB, free: 11.72 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.02029/0.4364, allocations: 13.89 MB / 0.565 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008499/0.4449, allocations: 6.323 MB / 0.5712 GB, free: 6.918 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002913/0.4479, allocations: 2.247 MB / 0.5733 GB, free: 4.668 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.182/0.6299, allocations: 14.52 MB / 0.5875 GB, free: 112.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.6299, allocations: 64.33 kB / 0.5876 GB, free: 112.8 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001391/0.6313, allocations: 374 kB / 0.5879 GB, free: 112.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=284): time 4.448e-06/0.6313, allocations: 0 / 0.5879 GB, free: 112.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=387): time 0.08342/0.7148, allocations: 24.12 MB / 0.6115 GB, free: 104.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.7149, allocations: 94.92 kB / 0.6116 GB, free: 104.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002349/0.7172, allocations: 1.706 MB / 0.6133 GB, free: 103.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005359/0.7178, allocations: 96.2 kB / 0.6133 GB, free: 103.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006433/0.7184, allocations: 1.297 MB / 0.6146 GB, free: 102.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001023/0.7195, allocations: 1.309 MB / 0.6159 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004546/0.7199, allocations: 326 kB / 0.6162 GB, free: 101.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.547e-05/0.72, allocations: 305.9 kB / 0.6165 GB, free: 101.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00293/0.7229, allocations: 1.82 MB / 0.6183 GB, free: 100.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003234/0.7262, allocations: 2.82 MB / 0.621 GB, free: 98.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006116/0.7323, allocations: 4.945 MB / 0.6259 GB, free: 95.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.67e-05/0.7323, allocations: 7.844 kB / 0.6259 GB, free: 95.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.0173/0.7496, allocations: 6.848 MB / 0.6325 GB, free: 93.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.217e-05/0.7497, allocations: 20.44 kB / 0.6326 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.936e-05/0.7498, allocations: 34.75 kB / 0.6326 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01068/0.7605, allocations: 2.318 MB / 0.6349 GB, free: 91.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/0.7638, allocations: 0.8979 MB / 0.6357 GB, free: 90.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02096/0.7848, allocations: 17.05 MB / 0.6524 GB, free: 73.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003212/0.788, allocations: 211.7 kB / 0.6526 GB, free: 72.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003303/0.7883, allocations: 231.9 kB / 0.6528 GB, free: 72.68 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.001142/0.7895, allocations: 0.6092 MB / 0.6534 GB, free: 72.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004092/0.7899, allocations: 279.2 kB / 0.6537 GB, free: 71.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01573/0.8056, allocations: 6.605 MB / 0.6601 GB, free: 65.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-05/0.8057, allocations: 45.44 kB / 0.6602 GB, free: 65.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.8057, allocations: 8 kB / 0.6602 GB, free: 65.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-05/0.8057, allocations: 23.86 kB / 0.6602 GB, free: 65.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01953/0.8253, allocations: 10.65 MB / 0.6706 GB, free: 54.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.8253, allocations: 4 kB / 0.6706 GB, free: 54.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002453/0.8278, allocations: 0.6579 MB / 0.6713 GB, free: 53.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00957/0.8373, allocations: 2.091 MB / 0.6733 GB, free: 51.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002512/0.8376, allocations: 135.9 kB / 0.6734 GB, free: 51.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01752/0.8551, allocations: 15.74 MB / 0.6888 GB, free: 35.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.8552, allocations: 7.938 kB / 0.6888 GB, free: 35.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0171/0.8723, allocations: 8.502 MB / 0.6971 GB, free: 26.42 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.8734, allocations: 0.6884 MB / 0.6978 GB, free: 25.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003676/0.8738, allocations: 82.25 kB / 0.6979 GB, free: 25.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00196/0.8758, allocations: 152.8 kB / 0.698 GB, free: 25.49 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006096/0.8764, allocations: 337.4 kB / 0.6983 GB, free: 25.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/0.8767, allocations: 163.9 kB / 0.6985 GB, free: 25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001037/0.8777, allocations: 1.112 MB / 0.6996 GB, free: 23.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8777, allocations: 0 / 0.6996 GB, free: 23.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00467/0.8824, allocations: 2.166 MB / 0.7017 GB, free: 21.93 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.02041/0.9028, allocations: 11.15 MB / 0.7126 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009128/0.912, allocations: 5.841 MB / 0.7183 GB, free: 5.355 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.912, allocations: 2 kB / 0.7183 GB, free: 5.355 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004971/0.917, allocations: 3.546 MB / 0.7217 GB, free: 1.727 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00338/0.9204, allocations: 0.5097 MB / 0.7222 GB, free: 1.227 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2295/1.15, allocations: 35.91 MB / 0.7573 GB, free: 132.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/1.151, allocations: 1.882 MB / 0.7591 GB, free: 131.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003081/1.154, allocations: 0.6747 MB / 0.7598 GB, free: 131.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001882/1.156, allocations: 1.551 MB / 0.7613 GB, free: 131.6 MB / 478.1 MB Notification: Performance of SimCode: time 2.054e-06/1.156, allocations: 0 / 0.7613 GB, free: 131.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1225/1.279, allocations: 105.3 MB / 0.8642 GB, free: 60.51 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001262/1.279, allocations: 228.5 kB / 0.8644 GB, free: 60.25 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.203/6.482, allocations: 4 kB / 0.8644 GB, free: 60.24 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)