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.001001/0.001001, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00106/0.00106, allocations: 199.5 kB / 16.26 MB, free: 6.617 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.251/1.251, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1788/0.1788, allocations: 15.31 MB / 305.4 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 59.91 kB / 369.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08612, allocations: 53.61 MB / 423.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.01011/0.09627, allocations: 11.85 MB / 435.4 MB, free: 2.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1829/0.2792, allocations: 32.5 MB / 467.9 MB, free: 29.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.281, allocations: 44.72 kB / 467.9 MB, free: 29.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.2827, allocations: 0.6187 MB / 468.6 MB, free: 29.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006329/0.2891, allocations: 2.375 MB / 470.9 MB, free: 27.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009356/0.2985, allocations: 3.827 MB / 474.8 MB, free: 25.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002938/0.3014, allocations: 3.016 MB / 477.8 MB, free: 23.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001438/0.3029, allocations: 1.641 MB / 479.4 MB, free: 23.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.3043, allocations: 1.536 MB / 480.9 MB, free: 22.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001647/0.306, allocations: 1.637 MB / 482.6 MB, free: 21.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003552/0.3063, allocations: 263.5 kB / 482.8 MB, free: 21.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01011/0.3164, allocations: 3.698 MB / 486.5 MB, free: 21.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007587/0.3172, allocations: 0.6168 MB / 487.2 MB, free: 20.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001547/0.3188, allocations: 1.339 MB / 488.5 MB, free: 19.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.3313, allocations: 6.297 MB / 494.8 MB, free: 17.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3313, allocations: 4 kB / 494.8 MB, free: 17.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3313, allocations: 1.156 kB / 494.8 MB, free: 17.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.855e-05/0.3314, allocations: 0 / 494.8 MB, free: 17.19 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.006582/0.338, allocations: 3.233 MB / 498 MB, free: 15.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.338, allocations: 10.38 kB / 498 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003433/0.3384, allocations: 294.6 kB / 498.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002651/0.341, allocations: 0.5688 MB / 498.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/0.3428, allocations: 1.099 MB / 500 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.3429, allocations: 157.9 kB / 0.4884 GB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000336/0.3432, allocations: 223.2 kB / 0.4886 GB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00424/0.3475, allocations: 2.785 MB / 0.4914 GB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.856e-05/0.3475, allocations: 3.938 kB / 0.4914 GB, free: 13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/0.3477, allocations: 85.75 kB / 0.4914 GB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.504e-05/0.3478, allocations: 51.62 kB / 0.4915 GB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00486/0.3526, allocations: 3.784 MB / 0.4952 GB, free: 11.77 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.01115/0.3638, allocations: 8.348 MB / 0.5033 GB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004658/0.3685, allocations: 3.96 MB / 0.5072 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.3699, allocations: 1.017 MB / 0.5082 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01208/0.382, allocations: 9.244 MB / 0.5172 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.3821, allocations: 47.81 kB / 0.5173 GB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008652/0.3829, allocations: 166.2 kB / 0.5174 GB, free: 4.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=138): time 4.298e-06/0.3829, allocations: 4 kB / 0.5174 GB, free: 4.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=170): time 0.03121/0.4142, allocations: 6.38 MB / 0.5237 GB, free: 13.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.4143, allocations: 77.39 kB / 0.5237 GB, free: 13.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.4162, allocations: 1.663 MB / 0.5254 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001855/0.4164, allocations: 57.7 kB / 0.5254 GB, free: 11.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005833/0.417, allocations: 1.035 MB / 0.5264 GB, free: 10.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004631/0.4174, allocations: 0.5892 MB / 0.527 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006037/0.4181, allocations: 476.7 kB / 0.5275 GB, free: 9.586 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.614e-05/0.4181, allocations: 305.1 kB / 0.5278 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.4193, allocations: 0.8053 MB / 0.5285 GB, free: 8.477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.4211, allocations: 1.589 MB / 0.5301 GB, free: 6.516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/0.424, allocations: 2.424 MB / 0.5325 GB, free: 3.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.424, allocations: 8 kB / 0.5325 GB, free: 3.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008207/0.4322, allocations: 3.123 MB / 0.5355 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.4323, allocations: 16 kB / 0.5355 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-05/0.4323, allocations: 32.16 kB / 0.5356 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00399/0.4363, allocations: 482.9 kB / 0.536 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/0.4382, allocations: 0.5889 MB / 0.5366 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.4483, allocations: 7.73 MB / 0.5441 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002152/0.4505, allocations: 131.9 kB / 0.5443 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002185/0.4508, allocations: 140 kB / 0.5444 GB, free: 6.918 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.0008297/0.4516, allocations: 424.9 kB / 0.5448 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003648/0.452, allocations: 165.9 kB / 0.545 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007724/0.4597, allocations: 2.401 MB / 0.5473 GB, free: 3.914 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.4597, allocations: 20 kB / 0.5473 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4597, allocations: 0 / 0.5473 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.4598, allocations: 7.969 kB / 0.5473 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/0.4623, allocations: 1.872 MB / 0.5492 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.4623, allocations: 4 kB / 0.5492 GB, free: 1.926 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/0.4636, allocations: 339.8 kB / 0.5495 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004131/0.4677, allocations: 470.8 kB / 0.5499 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/0.4679, allocations: 63.97 kB / 0.55 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009445/0.4773, allocations: 7.523 MB / 0.5574 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4774, allocations: 0 / 0.5574 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007997/0.4854, allocations: 3.011 MB / 0.5603 GB, free: 5.918 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005201/0.4859, allocations: 234.9 kB / 0.5605 GB, free: 5.668 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002588/0.4862, allocations: 36 kB / 0.5606 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.4872, allocations: 67.88 kB / 0.5606 GB, free: 5.566 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/0.4875, allocations: 145.8 kB / 0.5608 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.4877, allocations: 71.97 kB / 0.5608 GB, free: 5.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001326/0.489, allocations: 1.137 MB / 0.5619 GB, free: 4.219 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.489, allocations: 0 / 0.5619 GB, free: 4.219 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004052/0.4931, allocations: 1.354 MB / 0.5633 GB, free: 2.863 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.01274/0.5058, allocations: 4.936 MB / 0.5681 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006488/0.5124, allocations: 2.584 MB / 0.5706 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.5124, allocations: 0 / 0.5706 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002022/0.5144, allocations: 1.356 MB / 0.5719 GB, free: 9.828 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002183/0.5166, allocations: 376.2 kB / 0.5723 GB, free: 9.473 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03373/0.5504, allocations: 18.59 MB / 0.5904 GB, free: 5.289 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/0.5516, allocations: 1.382 MB / 0.5918 GB, free: 3.875 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002041/0.5536, allocations: 441.5 kB / 0.5922 GB, free: 3.441 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/0.555, allocations: 0.9592 MB / 0.5932 GB, free: 2.484 MB / 462.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5551, allocations: 0 / 0.5932 GB, free: 2.484 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2498/0.8049, allocations: 61.3 MB / 0.653 GB, free: 111.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.8051, allocations: 205.4 kB / 0.6532 GB, free: 111.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.53/4.335, allocations: 2.344 kB / 0.6532 GB, free: 111.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)