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.001149/0.001149, 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.001086/0.001086, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.157/1.157, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1595/0.1595, allocations: 15.32 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 59.91 kB / 370.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07678/0.07789, allocations: 53.61 MB / 424 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.009041/0.08696, allocations: 10.31 MB / 434.3 MB, free: 3.836 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1528/0.2398, allocations: 32.88 MB / 467.2 MB, free: 29.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008463/0.2406, allocations: 27.09 kB / 467.3 MB, free: 29.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.2418, allocations: 0.6956 MB / 467.9 MB, free: 29.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004057/0.2459, allocations: 2.613 MB / 470.6 MB, free: 27.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00706/0.253, allocations: 4.282 MB / 474.8 MB, free: 25.4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001785/0.2548, allocations: 2.999 MB / 477.8 MB, free: 23.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.2559, allocations: 1.655 MB / 479.5 MB, free: 23.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008395/0.2567, allocations: 1.448 MB / 480.9 MB, free: 22.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001377/0.2581, allocations: 1.602 MB / 482.5 MB, free: 21.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000351/0.2585, allocations: 262.5 kB / 482.8 MB, free: 21.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008115/0.2666, allocations: 3.619 MB / 486.4 MB, free: 21.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004303/0.267, allocations: 0.6054 MB / 487 MB, free: 20.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009647/0.268, allocations: 1.324 MB / 488.4 MB, free: 19.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00876/0.2768, allocations: 6.578 MB / 494.9 MB, free: 16.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2768, allocations: 0 / 494.9 MB, free: 16.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2768, allocations: 0 / 494.9 MB, free: 16.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.543e-05/0.2768, allocations: 1.984 kB / 494.9 MB, free: 16.98 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.005035/0.2819, allocations: 3.232 MB / 498.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.2819, allocations: 13.38 kB / 498.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002947/0.2822, allocations: 295.4 kB / 498.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002087/0.2843, allocations: 0.5645 MB / 499 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.2857, allocations: 1.095 MB / 0.4884 GB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.731e-05/0.2858, allocations: 159.3 kB / 0.4886 GB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002918/0.2861, allocations: 222.1 kB / 0.4888 GB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003439/0.2895, allocations: 2.797 MB / 0.4915 GB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.308e-05/0.2896, allocations: 1.375 kB / 0.4915 GB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001849/0.2898, allocations: 84.44 kB / 0.4916 GB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.007e-05/0.2898, allocations: 52.25 kB / 0.4916 GB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00424/0.294, allocations: 3.787 MB / 0.4953 GB, free: 11.54 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.009297/0.3034, allocations: 8.372 MB / 0.5035 GB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004335/0.3077, allocations: 3.965 MB / 0.5074 GB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001327/0.309, allocations: 1.013 MB / 0.5084 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.3195, allocations: 9.224 MB / 0.5174 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.3196, allocations: 43.88 kB / 0.5174 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003832/0.32, allocations: 166.2 kB / 0.5176 GB, free: 3.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=138): time 3.747e-06/0.32, allocations: 0 / 0.5176 GB, free: 3.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=170): time 0.0251/0.3451, allocations: 6.391 MB / 0.5238 GB, free: 13.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3451, allocations: 69.41 kB / 0.5239 GB, free: 13.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.3467, allocations: 1.667 MB / 0.5255 GB, free: 11.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.008e-05/0.3468, allocations: 57.7 kB / 0.5256 GB, free: 11.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005605/0.3474, allocations: 1.035 MB / 0.5266 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003932/0.3478, allocations: 0.6009 MB / 0.5272 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005757/0.3484, allocations: 476.6 kB / 0.5276 GB, free: 9.555 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.944e-05/0.3485, allocations: 301.1 kB / 0.5279 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.3496, allocations: 0.7936 MB / 0.5287 GB, free: 8.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001622/0.3513, allocations: 1.597 MB / 0.5302 GB, free: 6.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002787/0.3541, allocations: 2.413 MB / 0.5326 GB, free: 3.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.3541, allocations: 8 kB / 0.5326 GB, free: 3.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.007119/0.3612, allocations: 3.127 MB / 0.5357 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.3612, allocations: 19.94 kB / 0.5357 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.325e-05/0.3613, allocations: 28 kB / 0.5357 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003397/0.3647, allocations: 491.1 kB / 0.5362 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.3663, allocations: 0.5851 MB / 0.5367 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009202/0.3756, allocations: 7.712 MB / 0.5443 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.3769, allocations: 87.98 kB / 0.5444 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.377, allocations: 140 kB / 0.5445 GB, free: 6.953 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.0005975/0.3777, allocations: 421 kB / 0.5449 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002732/0.3779, allocations: 165.8 kB / 0.545 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006864/0.3848, allocations: 2.402 MB / 0.5474 GB, free: 3.957 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.3848, allocations: 16.09 kB / 0.5474 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3848, allocations: 0 / 0.5474 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.775e-05/0.3849, allocations: 15.95 kB / 0.5474 GB, free: 3.926 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.387, allocations: 1.869 MB / 0.5492 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.387, allocations: 3.938 kB / 0.5493 GB, free: 1.973 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.3881, allocations: 351.8 kB / 0.5496 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003358/0.3915, allocations: 458.9 kB / 0.55 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.3916, allocations: 63.91 kB / 0.5501 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008537/0.4002, allocations: 7.531 MB / 0.5574 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4002, allocations: 4.031 kB / 0.5574 GB, free: 9.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006893/0.4071, allocations: 3.007 MB / 0.5604 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.4074, allocations: 234.8 kB / 0.5606 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002107/0.4076, allocations: 40 kB / 0.5606 GB, free: 5.668 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008083/0.4084, allocations: 40 kB / 0.5607 GB, free: 5.629 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.4086, allocations: 149.8 kB / 0.5608 GB, free: 5.484 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.4088, allocations: 75.97 kB / 0.5609 GB, free: 5.41 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.4099, allocations: 1.126 MB / 0.562 GB, free: 4.285 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4099, allocations: 0 / 0.562 GB, free: 4.285 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003385/0.4133, allocations: 1.362 MB / 0.5633 GB, free: 2.922 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.009525/0.4228, allocations: 4.948 MB / 0.5682 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005273/0.4281, allocations: 2.578 MB / 0.5707 GB, free: 11.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4281, allocations: 4.125 kB / 0.5707 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.4298, allocations: 1.358 MB / 0.572 GB, free: 9.875 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.4312, allocations: 373 kB / 0.5724 GB, free: 9.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02562/0.4568, allocations: 17.71 MB / 0.5897 GB, free: 6.227 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000831/0.4577, allocations: 1.382 MB / 0.591 GB, free: 4.812 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001638/0.4593, allocations: 430.5 kB / 0.5914 GB, free: 4.387 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/0.4604, allocations: 0.9569 MB / 0.5923 GB, free: 3.434 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4604, allocations: 0 / 0.5923 GB, free: 3.434 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2047/0.6651, allocations: 61.46 MB / 0.6524 GB, free: 111.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12.21, allocations: 7.609 kB / 0.6524 GB, free: 111.7 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)