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.005842/0.005842, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001545/0.001546, allocations: 194.9 kB / 16.68 MB, free: 5.969 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08357/0.08357, allocations: 15.3 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 67.83 kB / 424.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09817/0.1001, allocations: 53.6 MB / 478.3 MB, free: 6.27 MB / 350.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.04908/0.1492, allocations: 34.39 MB / 0.5007 GB, free: 3.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2435/0.3927, allocations: 47.39 MB / 0.547 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002349/0.3951, allocations: 39.59 kB / 0.547 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003197/0.3983, allocations: 1.017 MB / 0.548 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0112/0.4095, allocations: 3.704 MB / 0.5516 GB, free: 8.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0182/0.4277, allocations: 6.377 MB / 0.5578 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006309/0.4341, allocations: 4.541 MB / 0.5623 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003891/0.438, allocations: 2.656 MB / 0.5649 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003771/0.4418, allocations: 2.241 MB / 0.5671 GB, free: 12.08 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004799/0.4466, allocations: 2.557 MB / 0.5696 GB, free: 9.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001092/0.4477, allocations: 420 kB / 0.57 GB, free: 9.109 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01751/0.4652, allocations: 5.281 MB / 0.5751 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.4667, allocations: 0.9893 MB / 0.5761 GB, free: 2.828 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002848/0.4696, allocations: 2.023 MB / 0.5781 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02441/0.494, allocations: 9.926 MB / 0.5877 GB, free: 6.832 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.587e-06/0.494, allocations: 6.641 kB / 0.5878 GB, free: 6.828 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4941, allocations: 0 / 0.5878 GB, free: 6.828 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001317/0.4942, allocations: 0 / 0.5878 GB, free: 6.828 MB / 430.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.01066/0.5049, allocations: 4.881 MB / 0.5925 GB, free: 1.906 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.5049, allocations: 12.03 kB / 0.5925 GB, free: 1.895 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005276/0.5055, allocations: 422.7 kB / 0.5929 GB, free: 1.469 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003752/0.5092, allocations: 0.8552 MB / 0.5938 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002748/0.512, allocations: 1.665 MB / 0.5954 GB, free: 14.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000259/0.5123, allocations: 294.3 kB / 0.5957 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005572/0.5128, allocations: 335.1 kB / 0.596 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007677/0.5205, allocations: 4.475 MB / 0.6004 GB, free: 9.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-05/0.5206, allocations: 3.938 kB / 0.6004 GB, free: 9.727 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003532/0.521, allocations: 124 kB / 0.6005 GB, free: 9.605 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.564e-05/0.521, allocations: 76 kB / 0.6006 GB, free: 9.531 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009906/0.5309, allocations: 6.109 MB / 0.6065 GB, free: 3.414 MB / 446.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.02482/0.5558, allocations: 14 MB / 0.6202 GB, free: 5.043 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/0.5659, allocations: 6.315 MB / 0.6264 GB, free: 14.56 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003702/0.5697, allocations: 2.239 MB / 0.6286 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0231/0.5928, allocations: 14.78 MB / 0.643 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/0.5929, allocations: 64.8 kB / 0.6431 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001509/0.5944, allocations: 387.1 kB / 0.6434 GB, free: 11.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=284): time 6.012e-06/0.5944, allocations: 7.875 kB / 0.6434 GB, free: 11.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=387): time 0.09061/0.685, allocations: 23.91 MB / 0.6668 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.454e-05/0.6851, allocations: 94.39 kB / 0.6669 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002494/0.6876, allocations: 1.712 MB / 0.6685 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005707/0.6882, allocations: 85.7 kB / 0.6686 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001078/0.6893, allocations: 1.344 MB / 0.6699 GB, free: 484 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001585/0.6909, allocations: 1.375 MB / 0.6713 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001306/0.6922, allocations: 0.7759 MB / 0.672 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.6924, allocations: 308.9 kB / 0.6723 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003291/0.6957, allocations: 1.824 MB / 0.6741 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004344/0.7, allocations: 2.823 MB / 0.6769 GB, free: 8.906 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008218/0.7083, allocations: 4.932 MB / 0.6817 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.949e-05/0.7083, allocations: 8 kB / 0.6817 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01958/0.7279, allocations: 6.822 MB / 0.6883 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/0.728, allocations: 20 kB / 0.6884 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.248e-05/0.728, allocations: 28.25 kB / 0.6884 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01151/0.7395, allocations: 2.284 MB / 0.6906 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004137/0.7437, allocations: 0.8893 MB / 0.6915 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02879/0.7725, allocations: 18.41 MB / 0.7095 GB, free: 5.984 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/0.7759, allocations: 144 kB / 0.7096 GB, free: 5.844 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008147/0.7767, allocations: 231.8 kB / 0.7098 GB, free: 5.617 MB / 0.545 GB 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.001798/0.7785, allocations: 0.6008 MB / 0.7104 GB, free: 5.008 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000928/0.7795, allocations: 290.1 kB / 0.7107 GB, free: 4.723 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1992/0.9787, allocations: 6.573 MB / 0.7171 GB, free: 183.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.222e-05/0.9787, allocations: 41.72 kB / 0.7172 GB, free: 183.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.696e-05/0.9788, allocations: 5.5 kB / 0.7172 GB, free: 183.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-05/0.9789, allocations: 21 kB / 0.7172 GB, free: 183.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02333/1.002, allocations: 10.65 MB / 0.7276 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.889e-05/1.002, allocations: 3.875 kB / 0.7276 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/1.005, allocations: 0.6513 MB / 0.7282 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009527/1.015, allocations: 2.019 MB / 0.7302 GB, free: 180.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007255/1.016, allocations: 135.5 kB / 0.7303 GB, free: 180.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01848/1.034, allocations: 17.02 MB / 0.7469 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/1.034, allocations: 5.5 kB / 0.747 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01769/1.052, allocations: 8.495 MB / 0.7552 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/1.053, allocations: 0.7155 MB / 0.7559 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004332/1.054, allocations: 78.31 kB / 0.756 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001998/1.056, allocations: 96.44 kB / 0.7561 GB, free: 163.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008697/1.057, allocations: 344.1 kB / 0.7564 GB, free: 163.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003245/1.057, allocations: 157 kB / 0.7566 GB, free: 163.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001244/1.058, allocations: 1.116 MB / 0.7577 GB, free: 162.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.31e-07/1.058, allocations: 0 / 0.7577 GB, free: 162.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005302/1.064, allocations: 2.207 MB / 0.7598 GB, free: 162.4 MB / 0.545 GB 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.02018/1.084, allocations: 11.18 MB / 0.7708 GB, free: 155.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009235/1.093, allocations: 5.853 MB / 0.7765 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/1.093, allocations: 3.938 kB / 0.7765 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005435/1.099, allocations: 3.561 MB / 0.78 GB, free: 145.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/1.101, allocations: 0.5578 MB / 0.7805 GB, free: 145.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05283/1.154, allocations: 31.2 MB / 0.811 GB, free: 113.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/1.155, allocations: 1.875 MB / 0.8128 GB, free: 111.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002375/1.157, allocations: 0.6699 MB / 0.8135 GB, free: 110.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/1.159, allocations: 1.557 MB / 0.815 GB, free: 109.2 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/1.159, allocations: 0 / 0.815 GB, free: 109.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3783/1.537, allocations: 110.9 MB / 0.9233 GB, free: 172.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 47.65/49.19, allocations: 11.69 kB / 0.9233 GB, free: 172.7 MB / 0.545 GB (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)