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.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.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.0007721/0.0007723, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.0008927/0.0008929, allocations: 172.7 kB / 15.95 MB, free: 208 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.272/1.272, allocations: 223.3 MB / 240 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1851/0.1851, allocations: 15.26 MB / 306.3 MB, free: 15.78 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002956, allocations: 12 kB / 371.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2708, allocations: 54.62 MB / 426.2 MB, free: 40.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.006598/0.2774, allocations: 7.056 MB / 433.2 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01617/0.2936, allocations: 19.86 MB / 453.1 MB, free: 24.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001227/0.2949, allocations: 32.5 kB / 453.1 MB, free: 23.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.2961, allocations: 410.2 kB / 453.5 MB, free: 23.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004013/0.3001, allocations: 1.474 MB / 455 MB, free: 22.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006078/0.3062, allocations: 2.283 MB / 457.3 MB, free: 21.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00214/0.3084, allocations: 1.658 MB / 458.9 MB, free: 20.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.3095, allocations: 0.7199 MB / 459.7 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.3106, allocations: 0.6871 MB / 460.3 MB, free: 20.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.3119, allocations: 0.8438 MB / 461.2 MB, free: 19.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000352/0.3123, allocations: 80.34 kB / 461.3 MB, free: 19.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006318/0.3186, allocations: 2.128 MB / 463.4 MB, free: 19.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004626/0.3191, allocations: 282.5 kB / 463.7 MB, free: 19.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006006/0.3197, allocations: 277.2 kB / 463.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004751/0.3245, allocations: 3.073 MB / 467 MB, free: 17.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3245, allocations: 1.344 kB / 467 MB, free: 17.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3245, allocations: 0 / 467 MB, free: 17.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.019e-05/0.3246, allocations: 4 kB / 467 MB, free: 17.89 MB / 350.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.004347/0.329, allocations: 1.764 MB / 468.8 MB, free: 16.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.329, allocations: 10.42 kB / 468.8 MB, free: 16.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004585/0.3295, allocations: 179 kB / 469 MB, free: 16.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001889/0.3314, allocations: 385.8 kB / 469.3 MB, free: 16.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.3329, allocations: 0.6798 MB / 470 MB, free: 16.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.214e-05/0.333, allocations: 93.25 kB / 470.1 MB, free: 16.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003594/0.3334, allocations: 126.7 kB / 470.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003441/0.3368, allocations: 1.749 MB / 472 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.3369, allocations: 0.6562 kB / 472 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.337, allocations: 58.7 kB / 472 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-05/0.3371, allocations: 33.97 kB / 472.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004074/0.3411, allocations: 2.474 MB / 474.6 MB, free: 14.45 MB / 350.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.009164/0.3503, allocations: 5.047 MB / 479.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003481/0.3538, allocations: 2.234 MB / 481.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000868/0.3547, allocations: 0.549 MB / 482.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007034/0.3618, allocations: 5.202 MB / 487.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.3618, allocations: 39.3 kB / 487.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.775e-06/0.3618, allocations: 0 / 487.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.0144/0.3762, allocations: 3.403 MB / 491 MB, free: 4.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.3763, allocations: 60.41 kB / 491.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.3777, allocations: 1.292 MB / 492.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.298e-05/0.3778, allocations: 45.64 kB / 492.4 MB, free: 2.648 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002877/0.3781, allocations: 0.6804 MB / 493.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.3783, allocations: 327.5 kB / 493.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.285e-05/0.3784, allocations: 28 kB / 493.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3785, allocations: 414.7 kB / 493.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006768/0.3792, allocations: 0.5037 MB / 494.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000901/0.3801, allocations: 0.9885 MB / 495.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009859/0.3811, allocations: 0.6393 MB / 496 MB, free: 14.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.3811, allocations: 8 kB / 496 MB, free: 14.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.0045/0.3856, allocations: 1.896 MB / 497.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.3856, allocations: 17.39 kB / 497.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.3857, allocations: 16 kB / 497.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/0.3876, allocations: 265.5 kB / 498.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.3887, allocations: 355.5 kB / 498.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/0.3938, allocations: 3.508 MB / 0.4903 GB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.395, allocations: 75.97 kB / 0.4903 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.3952, allocations: 83.97 kB / 0.4904 GB, free: 8.348 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000538/0.3957, allocations: 285.3 kB / 0.4907 GB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002287/0.396, allocations: 110.6 kB / 0.4908 GB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003931/0.3999, allocations: 1.268 MB / 0.492 GB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.3999, allocations: 8 kB / 0.492 GB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.3999, allocations: 4 kB / 0.4921 GB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.4, allocations: 3.984 kB / 0.4921 GB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/0.4018, allocations: 1.109 MB / 0.4931 GB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.4018, allocations: 4 kB / 0.4931 GB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006507/0.4025, allocations: 179.7 kB / 0.4933 GB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0019/0.4044, allocations: 249.5 kB / 0.4936 GB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.65e-05/0.4045, allocations: 35.98 kB / 0.4936 GB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004532/0.409, allocations: 3.406 MB / 0.4969 GB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4091, allocations: 3.953 kB / 0.4969 GB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.413, allocations: 1.603 MB / 0.4985 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004318/0.4135, allocations: 195.7 kB / 0.4987 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002712/0.4137, allocations: 20 kB / 0.4987 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006866/0.4144, allocations: 27.98 kB / 0.4987 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.4146, allocations: 80.84 kB / 0.4988 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.726e-05/0.4147, allocations: 39.98 kB / 0.4988 GB, free: 15.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.4158, allocations: 0.8984 MB / 0.4997 GB, free: 14.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4158, allocations: 0 / 0.4997 GB, free: 14.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002754/0.4186, allocations: 0.8275 MB / 0.5005 GB, free: 13.58 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.006204/0.4248, allocations: 3.026 MB / 0.5035 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00223/0.427, allocations: 1.404 MB / 0.5048 GB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.4271, allocations: 1.938 kB / 0.5048 GB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009563/0.428, allocations: 0.6943 MB / 0.5055 GB, free: 8.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.4293, allocations: 211.4 kB / 0.5057 GB, free: 8.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/0.4416, allocations: 7.876 MB / 0.5134 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005992/0.4423, allocations: 1.081 MB / 0.5145 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001088/0.4434, allocations: 264.4 kB / 0.5147 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006994/0.4441, allocations: 0.5417 MB / 0.5153 GB, free: 13.87 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4441, allocations: 4 kB / 0.5153 GB, free: 13.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05223/0.4963, allocations: 36.12 MB / 0.5505 GB, free: 9.98 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/0.4965, allocations: 201.1 kB / 0.5507 GB, free: 9.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.793/3.29, allocations: 0 / 0.5507 GB, free: 9.73 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/linux/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) Environment - environmentSimulation: