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.0009815/0.0009815, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009864/0.0009865, allocations: 191.2 kB / 16.25 MB, free: 6.629 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.213/1.213, allocations: 222.9 MB / 239.9 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1989/0.1989, allocations: 15.32 MB / 305.4 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 67.84 kB / 369.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09795, allocations: 53.62 MB / 423.6 MB, free: 14.54 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.1996/0.2976, allocations: 35.53 MB / 459.1 MB, free: 36.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04009/0.3377, allocations: 46.81 MB / 0.494 GB, free: 9.207 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002685/0.3404, allocations: 69.47 kB / 0.4941 GB, free: 9.176 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002491/0.3429, allocations: 0.9242 MB / 0.495 GB, free: 8.684 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00925/0.3522, allocations: 3.353 MB / 0.4983 GB, free: 6.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01588/0.3681, allocations: 5.693 MB / 0.5038 GB, free: 1.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006348/0.3745, allocations: 4.521 MB / 0.5083 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003847/0.3784, allocations: 2.652 MB / 0.5108 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004191/0.3826, allocations: 2.337 MB / 0.5131 GB, free: 8.969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005005/0.3876, allocations: 2.612 MB / 0.5157 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001582/0.3892, allocations: 420 kB / 0.5161 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02023/0.4095, allocations: 5.409 MB / 0.5214 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001864/0.4114, allocations: 1 MB / 0.5223 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00263/0.414, allocations: 2.034 MB / 0.5243 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02161/0.4356, allocations: 9.432 MB / 0.5335 GB, free: 5.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.4357, allocations: 4 kB / 0.5335 GB, free: 5.207 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4357, allocations: 4 kB / 0.5335 GB, free: 5.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.125e-05/0.4358, allocations: 0 / 0.5335 GB, free: 5.203 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.009979/0.4458, allocations: 4.76 MB / 0.5382 GB, free: 388 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.4458, allocations: 8.031 kB / 0.5382 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005387/0.4464, allocations: 426.8 kB / 0.5386 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003737/0.4501, allocations: 0.8389 MB / 0.5394 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002722/0.4529, allocations: 1.597 MB / 0.541 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/0.4531, allocations: 294.3 kB / 0.5413 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006571/0.4538, allocations: 332.2 kB / 0.5416 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007003/0.4608, allocations: 4.48 MB / 0.546 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.48e-05/0.4609, allocations: 3.938 kB / 0.546 GB, free: 8.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003161/0.4612, allocations: 124 kB / 0.5461 GB, free: 8.148 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.693e-05/0.4613, allocations: 76 kB / 0.5461 GB, free: 8.074 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008658/0.4699, allocations: 6.103 MB / 0.5521 GB, free: 1.961 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.0238/0.4938, allocations: 14.03 MB / 0.5658 GB, free: 3.523 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008713/0.5025, allocations: 6.316 MB / 0.572 GB, free: 13.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003335/0.5059, allocations: 2.239 MB / 0.5742 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0203/0.5262, allocations: 14.8 MB / 0.5886 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/0.5263, allocations: 56.8 kB / 0.5887 GB, free: 10.57 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001617/0.5279, allocations: 389 kB / 0.589 GB, free: 10.19 MB / 462.1 MB Notification: Performance of pre-optimization done (n=284): time 4.728e-06/0.5279, allocations: 0 / 0.589 GB, free: 10.19 MB / 462.1 MB Notification: Performance of matching and sorting (n=387): time 0.2385/0.7665, allocations: 23.82 MB / 0.6123 GB, free: 127.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.7665, allocations: 93.28 kB / 0.6124 GB, free: 127.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.7681, allocations: 1.707 MB / 0.6141 GB, free: 127 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004521/0.7686, allocations: 87.89 kB / 0.6141 GB, free: 126.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005011/0.7691, allocations: 1.312 MB / 0.6154 GB, free: 125.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009843/0.7701, allocations: 1.306 MB / 0.6167 GB, free: 124.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001016/0.7711, allocations: 0.7766 MB / 0.6175 GB, free: 124.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.78e-05/0.7712, allocations: 305.1 kB / 0.6177 GB, free: 124.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/0.7736, allocations: 1.818 MB / 0.6195 GB, free: 123.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002885/0.7765, allocations: 2.819 MB / 0.6223 GB, free: 121.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007143/0.7836, allocations: 4.938 MB / 0.6271 GB, free: 118.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.655e-05/0.7837, allocations: 7.656 kB / 0.6271 GB, free: 118.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01791/0.8016, allocations: 6.82 MB / 0.6338 GB, free: 116.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.8017, allocations: 18.03 kB / 0.6338 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.579e-05/0.8018, allocations: 28.38 kB / 0.6338 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01056/0.8123, allocations: 2.28 MB / 0.636 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003485/0.8159, allocations: 0.8971 MB / 0.6369 GB, free: 115.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02283/0.8387, allocations: 18.4 MB / 0.6549 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003485/0.8422, allocations: 206.8 kB / 0.6551 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004669/0.8427, allocations: 230 kB / 0.6553 GB, free: 101.5 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.001205/0.8439, allocations: 0.6086 MB / 0.6559 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005889/0.8445, allocations: 267.9 kB / 0.6561 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01593/0.8605, allocations: 6.589 MB / 0.6626 GB, free: 98.45 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.441e-05/0.8605, allocations: 45.66 kB / 0.6626 GB, free: 98.45 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.902e-05/0.8605, allocations: 9.469 kB / 0.6626 GB, free: 98.45 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.9e-05/0.8606, allocations: 17.72 kB / 0.6626 GB, free: 98.45 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/0.8796, allocations: 10.66 MB / 0.6731 GB, free: 91.37 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.8796, allocations: 8.281 kB / 0.6731 GB, free: 91.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002616/0.8822, allocations: 0.6514 MB / 0.6737 GB, free: 90.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008983/0.8912, allocations: 2.018 MB / 0.6757 GB, free: 88.72 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007686/0.8921, allocations: 143.3 kB / 0.6758 GB, free: 88.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01839/0.9104, allocations: 17.02 MB / 0.6924 GB, free: 70.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.9105, allocations: 7.938 kB / 0.6924 GB, free: 70.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01717/0.9277, allocations: 8.474 MB / 0.7007 GB, free: 62.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.929, allocations: 0.7002 MB / 0.7014 GB, free: 61.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004146/0.9294, allocations: 79.98 kB / 0.7015 GB, free: 61.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/0.9314, allocations: 149.1 kB / 0.7016 GB, free: 61.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006601/0.9321, allocations: 337.4 kB / 0.7019 GB, free: 60.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002497/0.9323, allocations: 163.9 kB / 0.7021 GB, free: 60.63 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009788/0.9333, allocations: 1.109 MB / 0.7032 GB, free: 59.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9333, allocations: 0 / 0.7032 GB, free: 59.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004723/0.938, allocations: 2.17 MB / 0.7053 GB, free: 57.55 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.02021/0.9583, allocations: 11.12 MB / 0.7162 GB, free: 46.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01746/0.9758, allocations: 6.475 MB / 0.7225 GB, free: 40.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/0.9758, allocations: 7.938 kB / 0.7225 GB, free: 40.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005458/0.9813, allocations: 3.552 MB / 0.726 GB, free: 36.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.9839, allocations: 0.5449 MB / 0.7265 GB, free: 36.31 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05478/1.039, allocations: 35.74 MB / 0.7614 GB, free: 14.15 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001475/1.04, allocations: 1.877 MB / 0.7632 GB, free: 12.24 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003228/1.043, allocations: 0.6776 MB / 0.7639 GB, free: 11.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002157/1.046, allocations: 1.553 MB / 0.7654 GB, free: 10.06 MB / 478.1 MB Notification: Performance of SimCode: time 7.81e-07/1.046, allocations: 0 / 0.7654 GB, free: 10.06 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3014/1.347, allocations: 109.6 MB / 0.8724 GB, free: 76.95 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000131/1.347, allocations: 225.3 kB / 0.8726 GB, free: 76.69 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.297/6.645, allocations: 0 / 0.8726 GB, free: 76.69 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)