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.001263/0.001263, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001421/0.001421, allocations: 197.8 kB / 16.14 MB, free: 6.688 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.266/1.266, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1811/0.1811, allocations: 15.3 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 59.91 kB / 369.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08806/0.08926, allocations: 53.61 MB / 423.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.01208/0.1014, allocations: 11.85 MB / 435.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1785/0.2799, allocations: 32.84 MB / 468 MB, free: 28.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001791/0.2817, allocations: 49.03 kB / 468.1 MB, free: 28.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.2836, allocations: 0.6258 MB / 468.7 MB, free: 28.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005941/0.2896, allocations: 2.302 MB / 471 MB, free: 27.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008864/0.2985, allocations: 3.757 MB / 474.8 MB, free: 25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002518/0.301, allocations: 2.871 MB / 477.7 MB, free: 23.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.3025, allocations: 1.421 MB / 479.1 MB, free: 23.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001476/0.3039, allocations: 1.421 MB / 480.5 MB, free: 22.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.3054, allocations: 1.572 MB / 482.1 MB, free: 21.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003297/0.3057, allocations: 171.8 kB / 482.2 MB, free: 21.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009294/0.315, allocations: 3.532 MB / 485.8 MB, free: 21.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000682/0.3157, allocations: 0.5276 MB / 486.3 MB, free: 20.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.3172, allocations: 1.256 MB / 487.5 MB, free: 20.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.3295, allocations: 6.193 MB / 493.7 MB, free: 17.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3296, allocations: 0 / 493.7 MB, free: 17.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3296, allocations: 0 / 493.7 MB, free: 17.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.586e-05/0.3296, allocations: 1.094 kB / 493.7 MB, free: 17.45 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: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.006085/0.3357, allocations: 3.232 MB / 497 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.3358, allocations: 9.531 kB / 497 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003233/0.3361, allocations: 292.4 kB / 497.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00248/0.3386, allocations: 0.5684 MB / 497.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.3403, allocations: 1.095 MB / 498.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.3404, allocations: 159 kB / 499.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003259/0.3407, allocations: 223.2 kB / 499.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004099/0.3448, allocations: 2.793 MB / 0.4903 GB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/0.3449, allocations: 0 / 0.4903 GB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002103/0.3451, allocations: 86.67 kB / 0.4904 GB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.182e-05/0.3451, allocations: 50.88 kB / 0.4905 GB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004948/0.3501, allocations: 3.784 MB / 0.4942 GB, free: 12.04 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.01116/0.3613, allocations: 8.344 MB / 0.5023 GB, free: 4.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004651/0.3659, allocations: 3.956 MB / 0.5062 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.3672, allocations: 1.029 MB / 0.5072 GB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0115/0.3787, allocations: 9.249 MB / 0.5162 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3788, allocations: 51.86 kB / 0.5163 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005497/0.3793, allocations: 158.2 kB / 0.5164 GB, free: 5.086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=138): time 2.484e-06/0.3793, allocations: 0 / 0.5164 GB, free: 5.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=170): time 0.0295/0.4088, allocations: 6.38 MB / 0.5226 GB, free: 14.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.4089, allocations: 69.41 kB / 0.5227 GB, free: 14.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.4108, allocations: 1.667 MB / 0.5243 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.4109, allocations: 57.7 kB / 0.5244 GB, free: 12.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005648/0.4115, allocations: 1.035 MB / 0.5254 GB, free: 11.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004488/0.4119, allocations: 0.5892 MB / 0.526 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006021/0.4126, allocations: 476.6 kB / 0.5264 GB, free: 10.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.71e-05/0.4126, allocations: 305.1 kB / 0.5267 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.4139, allocations: 0.7936 MB / 0.5275 GB, free: 9.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/0.4156, allocations: 1.593 MB / 0.529 GB, free: 7.609 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002943/0.4185, allocations: 2.417 MB / 0.5314 GB, free: 4.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.4185, allocations: 8 kB / 0.5314 GB, free: 4.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008212/0.4268, allocations: 3.135 MB / 0.5345 GB, free: 1.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.4268, allocations: 16 kB / 0.5345 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.475e-05/0.4269, allocations: 31.44 kB / 0.5345 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003995/0.4309, allocations: 486.9 kB / 0.535 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.4328, allocations: 0.5928 MB / 0.5356 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009766/0.4425, allocations: 6.957 MB / 0.5424 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/0.4446, allocations: 135.8 kB / 0.5425 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002588/0.4449, allocations: 140 kB / 0.5426 GB, free: 8.789 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.0008183/0.4457, allocations: 425.1 kB / 0.543 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.4462, allocations: 173.8 kB / 0.5432 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007617/0.4538, allocations: 2.401 MB / 0.5455 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/0.4538, allocations: 16 kB / 0.5456 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.4538, allocations: 4 kB / 0.5456 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.4539, allocations: 7.969 kB / 0.5456 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002776/0.4566, allocations: 1.872 MB / 0.5474 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.4567, allocations: 0 / 0.5474 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/0.458, allocations: 355.8 kB / 0.5477 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003905/0.4619, allocations: 450.9 kB / 0.5482 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.462, allocations: 59.97 kB / 0.5482 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008848/0.4709, allocations: 6.779 MB / 0.5548 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.4709, allocations: 7.938 kB / 0.5548 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008086/0.479, allocations: 2.995 MB / 0.5578 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005967/0.4796, allocations: 238.8 kB / 0.558 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002483/0.4799, allocations: 36 kB / 0.558 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009694/0.4809, allocations: 63.88 kB / 0.5581 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/0.4812, allocations: 153.8 kB / 0.5582 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.4814, allocations: 79.97 kB / 0.5583 GB, free: 7.984 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.4826, allocations: 1.129 MB / 0.5594 GB, free: 6.855 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4827, allocations: 0 / 0.5594 GB, free: 6.855 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004359/0.487, allocations: 1.354 MB / 0.5607 GB, free: 5.5 MB / 430.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.01152/0.4986, allocations: 4.959 MB / 0.5656 GB, free: 484 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004029/0.5026, allocations: 2.492 MB / 0.568 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.5027, allocations: 0 / 0.568 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.5046, allocations: 1.346 MB / 0.5693 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00197/0.5065, allocations: 336 kB / 0.5697 GB, free: 12.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03055/0.5371, allocations: 18.59 MB / 0.5878 GB, free: 8.039 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008206/0.538, allocations: 1.39 MB / 0.5892 GB, free: 6.617 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001802/0.5398, allocations: 433.2 kB / 0.5896 GB, free: 6.191 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001142/0.5409, allocations: 0.9562 MB / 0.5905 GB, free: 5.234 MB / 462.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5409, allocations: 0 / 0.5905 GB, free: 5.234 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4059/0.9468, allocations: 59.8 MB / 0.6489 GB, free: 113.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001271/0.947, allocations: 197.3 kB / 0.6491 GB, free: 113.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.389/4.336, allocations: 0 / 0.6491 GB, free: 113.1 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)