Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility.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,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility",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.001034/0.001033, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005508/0.005508, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.272/1.272, 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.1649/0.1649, allocations: 15.28 MB / 306.7 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003501, allocations: 12 kB / 372.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2374, allocations: 54.62 MB / 426.8 MB, free: 40.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.007132/0.2446, allocations: 11.34 MB / 438.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02358/0.2682, allocations: 32.47 MB / 470.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002273/0.2705, allocations: 44.5 kB / 470.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.2727, allocations: 0.6219 MB / 471.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007423/0.2802, allocations: 2.315 MB / 473.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01014/0.2903, allocations: 3.741 MB / 477.4 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003403/0.2938, allocations: 2.881 MB / 480.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002003/0.2958, allocations: 1.353 MB / 481.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.298, allocations: 1.365 MB / 483 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002667/0.3007, allocations: 1.488 MB / 484.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006106/0.3013, allocations: 143.4 kB / 484.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01011/0.3114, allocations: 3.503 MB / 488.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000525/0.3119, allocations: 496 kB / 488.6 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00202/0.314, allocations: 1.218 MB / 489.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.3254, allocations: 6.117 MB / 495.9 MB, free: 256 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3254, allocations: 0 / 495.9 MB, free: 256 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3255, allocations: 0 / 495.9 MB, free: 256 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001233/0.3256, allocations: 1.688 kB / 495.9 MB, free: 256 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.007432/0.333, allocations: 2.701 MB / 498.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3331, allocations: 12.03 kB / 498.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008497/0.3339, allocations: 291.9 kB / 498.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003028/0.337, allocations: 0.5732 MB / 499.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.339, allocations: 1.056 MB / 0.4888 GB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.3391, allocations: 164.6 kB / 0.489 GB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003602/0.3395, allocations: 220.3 kB / 0.4892 GB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004236/0.3437, allocations: 2.786 MB / 0.4919 GB, free: 8.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.959e-05/0.3438, allocations: 3.984 kB / 0.4919 GB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002169/0.344, allocations: 91.94 kB / 0.492 GB, free: 8.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.771e-05/0.344, allocations: 52 kB / 0.492 GB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005183/0.3492, allocations: 3.78 MB / 0.4957 GB, free: 4.777 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.01203/0.3613, allocations: 8.256 MB / 0.5038 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005341/0.3666, allocations: 3.961 MB / 0.5077 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/0.368, allocations: 1.025 MB / 0.5087 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01054/0.3786, allocations: 9.03 MB / 0.5175 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.3786, allocations: 43.88 kB / 0.5175 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004474/0.3791, allocations: 166.2 kB / 0.5177 GB, free: 12.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=138): time 2.595e-06/0.3791, allocations: 0 / 0.5177 GB, free: 12.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=170): time 0.02956/0.4087, allocations: 6.481 MB / 0.524 GB, free: 6.188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.4087, allocations: 73.39 kB / 0.5241 GB, free: 6.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/0.4106, allocations: 1.663 MB / 0.5257 GB, free: 4.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.4107, allocations: 49.7 kB / 0.5257 GB, free: 4.375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006278/0.4114, allocations: 1.046 MB / 0.5268 GB, free: 3.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000433/0.4118, allocations: 0.5893 MB / 0.5273 GB, free: 2.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.412, allocations: 194.7 kB / 0.5275 GB, free: 2.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.193e-05/0.4121, allocations: 305.1 kB / 0.5278 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.4134, allocations: 0.7936 MB / 0.5286 GB, free: 1.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.4151, allocations: 1.6 MB / 0.5302 GB, free: 15.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002954/0.418, allocations: 2.413 MB / 0.5325 GB, free: 12.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.418, allocations: 8 kB / 0.5325 GB, free: 12.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008071/0.4261, allocations: 3.151 MB / 0.5356 GB, free: 9.496 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.4262, allocations: 16 kB / 0.5356 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/0.4262, allocations: 24 kB / 0.5356 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004158/0.4304, allocations: 0.5069 MB / 0.5361 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/0.4321, allocations: 0.5811 MB / 0.5367 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009898/0.442, allocations: 7.017 MB / 0.5435 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.4437, allocations: 135.8 kB / 0.5437 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/0.4439, allocations: 147.9 kB / 0.5438 GB, free: 0.5352 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * 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 (305): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007033/0.4446, allocations: 417 kB / 0.5442 GB, free: 120 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002515/0.4449, allocations: 169.9 kB / 0.5444 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007685/0.4526, allocations: 2.432 MB / 0.5468 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.4526, allocations: 20 kB / 0.5468 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.4526, allocations: 0 / 0.5468 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.727e-05/0.4526, allocations: 7.969 kB / 0.5468 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002543/0.4552, allocations: 1.869 MB / 0.5486 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.4552, allocations: 4 kB / 0.5486 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.4564, allocations: 343.8 kB / 0.5489 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004062/0.4605, allocations: 494.7 kB / 0.5494 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.4606, allocations: 59.97 kB / 0.5495 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008983/0.4696, allocations: 6.819 MB / 0.5561 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.4696, allocations: 7.969 kB / 0.5561 GB, free: 3.258 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007802/0.4774, allocations: 3.03 MB / 0.5591 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003604/0.4778, allocations: 258.7 kB / 0.5593 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001987/0.478, allocations: 36 kB / 0.5594 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009167/0.4789, allocations: 67.83 kB / 0.5594 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.4792, allocations: 149.8 kB / 0.5596 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/0.4793, allocations: 75.97 kB / 0.5597 GB, free: 15.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.4805, allocations: 1.126 MB / 0.5608 GB, free: 14.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4805, allocations: 8 kB / 0.5608 GB, free: 14.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003649/0.4842, allocations: 1.343 MB / 0.5621 GB, free: 13.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (blood_plasma.temperature,red_cells.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,CO2_unbound_erythrocyte.logn,O2_unbound_erythrocyte_NIST.logn,water_plasma.logn,water.logn,water_plasma1.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 (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01032/0.4945, allocations: 4.976 MB / 0.5669 GB, free: 8.059 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00348/0.498, allocations: 2.493 MB / 0.5694 GB, free: 5.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.498, allocations: 0 / 0.5694 GB, free: 5.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00174/0.4998, allocations: 1.363 MB / 0.5707 GB, free: 4.109 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.5016, allocations: 330.9 kB / 0.571 GB, free: 3.789 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1845/0.6861, allocations: 18.73 MB / 0.5893 GB, free: 136.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000733/0.6869, allocations: 1.383 MB / 0.5907 GB, free: 135.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001966/0.6889, allocations: 429.6 kB / 0.5911 GB, free: 135.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.6899, allocations: 0.9608 MB / 0.592 GB, free: 135.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.573e-06/0.6899, allocations: 3.828 kB / 0.592 GB, free: 135.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9017/1.592, allocations: 59.49 MB / 0.6501 GB, free: 105.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/1.592, allocations: 207.5 kB / 0.6503 GB, free: 105 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.696/5.288, allocations: 0 / 0.6503 GB, free: 105 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.GasSolubility.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility.fmu > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)