Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_blood.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.GasSolubility_blood,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_blood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility_blood,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_blood",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.001134/0.001134, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 198.4 kB / 16.54 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.165/1.165, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1709/0.1709, allocations: 15.32 MB / 305.7 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001278, allocations: 59.91 kB / 370.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0834/0.0847, allocations: 53.61 MB / 424 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.00745/0.09219, allocations: 6.954 MB / 431 MB, free: 7.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.158/0.2502, allocations: 21.76 MB / 452.8 MB, free: 39.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005213/0.2508, allocations: 13.5 kB / 452.8 MB, free: 39.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000779/0.2516, allocations: 450.1 kB / 453.2 MB, free: 38.85 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002554/0.2541, allocations: 1.647 MB / 454.9 MB, free: 37.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004559/0.2587, allocations: 2.793 MB / 457.6 MB, free: 36.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.2599, allocations: 1.82 MB / 459.5 MB, free: 36.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006418/0.2605, allocations: 0.9182 MB / 460.4 MB, free: 36.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004875/0.261, allocations: 0.8463 MB / 461.2 MB, free: 36.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006992/0.2617, allocations: 0.946 MB / 462.2 MB, free: 35.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001585/0.2619, allocations: 152 kB / 462.3 MB, free: 35.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004475/0.2664, allocations: 2.32 MB / 464.6 MB, free: 35.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000212/0.2666, allocations: 365 kB / 465 MB, free: 34.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004648/0.267, allocations: 0.7903 MB / 465.8 MB, free: 34.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004354/0.2714, allocations: 4.109 MB / 469.9 MB, free: 32.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2714, allocations: 0 / 469.9 MB, free: 32.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2714, allocations: 0 / 469.9 MB, free: 32.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.2714, allocations: 0 / 469.9 MB, free: 32.58 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.002525/0.274, allocations: 2.068 MB / 472 MB, free: 31.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.274, allocations: 9.625 kB / 472 MB, free: 31.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.2742, allocations: 188.8 kB / 472.2 MB, free: 31.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/0.2755, allocations: 375.6 kB / 472.5 MB, free: 31.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007608/0.2763, allocations: 0.7335 MB / 473.3 MB, free: 30.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.307e-05/0.2763, allocations: 92.53 kB / 473.4 MB, free: 30.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.2765, allocations: 131.4 kB / 473.5 MB, free: 30.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/0.2786, allocations: 1.758 MB / 475.2 MB, free: 29.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.2786, allocations: 0 / 475.2 MB, free: 29.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.2787, allocations: 50.16 kB / 475.3 MB, free: 29.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.015e-05/0.2787, allocations: 30.22 kB / 475.3 MB, free: 29.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00291/0.2816, allocations: 2.489 MB / 477.8 MB, free: 28.96 MB / 366.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.006274/0.2879, allocations: 5.121 MB / 482.9 MB, free: 26.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002889/0.2908, allocations: 2.245 MB / 485.2 MB, free: 25.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006712/0.2915, allocations: 0.5486 MB / 485.7 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005208/0.2967, allocations: 5.31 MB / 491 MB, free: 20.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.2968, allocations: 47.42 kB / 491.1 MB, free: 20.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 1.883e-06/0.2968, allocations: 0 / 491.1 MB, free: 20.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01253/0.3093, allocations: 3.374 MB / 494.5 MB, free: 19.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.3093, allocations: 65.5 kB / 494.5 MB, free: 19.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.3106, allocations: 1.291 MB / 495.8 MB, free: 18.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.799e-05/0.3107, allocations: 40.67 kB / 495.9 MB, free: 18.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002995/0.311, allocations: 0.6889 MB / 496.5 MB, free: 17.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.3112, allocations: 318.6 kB / 496.9 MB, free: 17.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003417/0.3115, allocations: 287.6 kB / 497.1 MB, free: 17.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.375e-05/0.3116, allocations: 358 kB / 497.5 MB, free: 17.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006664/0.3123, allocations: 0.5123 MB / 498 MB, free: 17.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008432/0.3131, allocations: 1.006 MB / 499 MB, free: 16.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.3146, allocations: 1.425 MB / 0.4887 GB, free: 15.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.368e-05/0.3146, allocations: 9.812 kB / 0.4887 GB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003808/0.3184, allocations: 1.91 MB / 0.4906 GB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3184, allocations: 13.41 kB / 0.4906 GB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.3185, allocations: 13.56 kB / 0.4906 GB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/0.3201, allocations: 247.3 kB / 0.4908 GB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008997/0.3211, allocations: 351.3 kB / 0.4912 GB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004144/0.3252, allocations: 3.864 MB / 0.4949 GB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008388/0.3261, allocations: 52.88 kB / 0.495 GB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.884e-05/0.3262, allocations: 81.77 kB / 0.4951 GB, free: 10.65 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000376/0.3266, allocations: 290.8 kB / 0.4953 GB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.3267, allocations: 114.5 kB / 0.4955 GB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003266/0.33, allocations: 1.247 MB / 0.4967 GB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.33, allocations: 12 kB / 0.4967 GB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.33, allocations: 0 / 0.4967 GB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.33, allocations: 4.312 kB / 0.4967 GB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.3312, allocations: 1.111 MB / 0.4978 GB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3312, allocations: 3.938 kB / 0.4978 GB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005674/0.3318, allocations: 179.8 kB / 0.4979 GB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/0.3335, allocations: 229.6 kB / 0.4982 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.269e-05/0.3335, allocations: 35.92 kB / 0.4982 GB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003552/0.3371, allocations: 3.768 MB / 0.5019 GB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3371, allocations: 5.094 kB / 0.5019 GB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003199/0.3403, allocations: 1.599 MB / 0.5034 GB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.3405, allocations: 171.8 kB / 0.5036 GB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.3406, allocations: 23.98 kB / 0.5036 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.3411, allocations: 20 kB / 0.5037 GB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.3412, allocations: 80.78 kB / 0.5037 GB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.161e-05/0.3413, allocations: 42.11 kB / 0.5038 GB, free: 1.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006747/0.342, allocations: 0.914 MB / 0.5047 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.342, allocations: 0 / 0.5047 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001841/0.3438, allocations: 0.8353 MB / 0.5055 GB, free: 15.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (blood_plasma.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,water.logn,others.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 (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005558/0.3494, allocations: 3.044 MB / 0.5085 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002467/0.3519, allocations: 1.449 MB / 0.5099 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3519, allocations: 0 / 0.5099 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008838/0.3528, allocations: 0.6872 MB / 0.5105 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009606/0.3538, allocations: 228.9 kB / 0.5108 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/0.3693, allocations: 11.06 MB / 0.5216 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005769/0.3699, allocations: 1.077 MB / 0.5226 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009455/0.3709, allocations: 259.6 kB / 0.5229 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006216/0.3715, allocations: 0.5446 MB / 0.5234 GB, free: 12.69 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3715, allocations: 3.938 kB / 0.5234 GB, free: 12.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06843/0.44, allocations: 37.86 MB / 0.5604 GB, free: 7.012 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.37, allocations: 4.062 kB / 0.5604 GB, free: 7.008 MB / 430.1 MB (rm -f Chemical_Chemical.Examples.GasSolubility_blood.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility_blood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility_blood.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility_blood.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_blood_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility_blood.fmu > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)