Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) 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/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: translateModel(Physiolibrary.Thermal.Examples.ThermalBody_QHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP") translateModel(Physiolibrary.Thermal.Examples.ThermalBody_QHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1117/0.1117, allocations: 15.28 MB / 30.91 MB, free: 4.02 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 110.1 kB / 35.92 MB, free: 3.246 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 193.1 kB / 41.02 MB, free: 7.105 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 268.9 MB, free: 6.855 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1386/0.1386, allocations: 23.35 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 112 kB / 478.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2872, allocations: 59.35 MB / 0.5256 GB, free: 8.094 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Thermal.Examples.ThermalBody_QHP): time 0.03107/0.3183, allocations: 23.7 MB / 0.5487 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.3202, allocations: 0.7896 MB / 0.5495 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.3204, allocations: 11.94 kB / 0.5495 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002227/0.3207, allocations: 86.25 kB / 0.5496 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003202/0.321, allocations: 177.7 kB / 0.5497 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.3212, allocations: 94.78 kB / 0.5498 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005183/0.3218, allocations: 0.5553 MB / 0.5504 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002677/0.322, allocations: 169.7 kB / 0.5505 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.3222, allocations: 187.7 kB / 0.5507 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.3225, allocations: 203.7 kB / 0.5509 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.343e-05/0.3226, allocations: 32 kB / 0.5509 GB, free: 9.598 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.598e-05/0.3226, allocations: 36 kB / 0.551 GB, free: 9.562 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.768e-05/0.3227, allocations: 77.19 kB / 0.5511 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.3229, allocations: 228.5 kB / 0.5513 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005004/0.3234, allocations: 464.5 kB / 0.5517 GB, free: 8.957 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.3234, allocations: 8.641 kB / 0.5517 GB, free: 8.949 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3235, allocations: 4 kB / 0.5517 GB, free: 8.945 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.3235, allocations: 0 / 0.5517 GB, free: 8.945 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001019/0.3245, allocations: 0.7457 MB / 0.5525 GB, free: 8.199 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.3245, allocations: 8.031 kB / 0.5525 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.424e-05/0.3246, allocations: 53.41 kB / 0.5525 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00042/0.325, allocations: 342.9 kB / 0.5528 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.3251, allocations: 20.94 kB / 0.5529 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.3251, allocations: 32.98 kB / 0.5529 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004454/0.3256, allocations: 249.8 kB / 0.5531 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.3256, allocations: 3.953 kB / 0.5531 GB, free: 7.539 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.3256, allocations: 16 kB / 0.5531 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.3257, allocations: 4 kB / 0.5532 GB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.326, allocations: 186.7 kB / 0.5533 GB, free: 7.355 MB / 398.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.001682/0.3277, allocations: 1.559 MB / 0.5549 GB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.3281, allocations: 215.3 kB / 0.5551 GB, free: 5.551 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.3283, allocations: 147.2 kB / 0.5552 GB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.3284, allocations: 240 / 0.5552 GB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.3284, allocations: 47.34 kB / 0.5552 GB, free: 5.359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.303e-06/0.3284, allocations: 0 / 0.5552 GB, free: 5.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005944/0.329, allocations: 313 kB / 0.5555 GB, free: 5.066 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.329, allocations: 55.41 kB / 0.5556 GB, free: 5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.3294, allocations: 323.3 kB / 0.5559 GB, free: 4.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.3294, allocations: 33.7 kB / 0.5559 GB, free: 4.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.3295, allocations: 190.3 kB / 0.5561 GB, free: 4.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.56e-05/0.3296, allocations: 104 kB / 0.5562 GB, free: 4.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-05/0.3297, allocations: 45.05 kB / 0.5563 GB, free: 4.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.3298, allocations: 350.4 kB / 0.5566 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.33, allocations: 70.75 kB / 0.5567 GB, free: 3.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.3301, allocations: 70.05 kB / 0.5567 GB, free: 3.891 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.3312, allocations: 390.5 kB / 0.5571 GB, free: 3.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3312, allocations: 4 kB / 0.5571 GB, free: 3.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004004/0.3317, allocations: 264.3 kB / 0.5574 GB, free: 3.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.3317, allocations: 8 kB / 0.5574 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.3317, allocations: 0 / 0.5574 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.3317, allocations: 0.9844 kB / 0.5574 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.332, allocations: 49.98 kB / 0.5574 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.332, allocations: 4 kB / 0.5574 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.3321, allocations: 23.78 kB / 0.5574 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.3322, allocations: 9.078 kB / 0.5574 GB, free: 3.207 MB / 398.1 MB Warning: Assuming fixed start value for the following 4 variables: core.relativeHeat:VARIABLE(flow=false start = core.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real GILumen.relativeHeat:VARIABLE(flow=false start = GILumen.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skeletalMuscle.relativeHeat:VARIABLE(flow=false start = skeletalMuscle.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skin.relativeHeat:VARIABLE(flow=false start = skin.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002082/0.3324, allocations: 168.9 kB / 0.5576 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.3324, allocations: 35.77 kB / 0.5576 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.3325, allocations: 53.41 kB / 0.5577 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3326, allocations: 3.984 kB / 0.5577 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3326, allocations: 0 / 0.5577 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3326, allocations: 5.641 kB / 0.5577 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004843/0.3331, allocations: 409.9 kB / 0.5581 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3331, allocations: 0.7969 kB / 0.5581 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.3334, allocations: 49.84 kB / 0.5581 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.3334, allocations: 0 / 0.5581 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.3334, allocations: 8.703 kB / 0.5582 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3334, allocations: 0 / 0.5582 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3334, allocations: 0 / 0.5582 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006229/0.334, allocations: 471.9 kB / 0.5586 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.3342, allocations: 141.9 kB / 0.5587 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.3342, allocations: 0 / 0.5587 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.3344, allocations: 4.609 kB / 0.5587 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.3344, allocations: 21.33 kB / 0.5588 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.3345, allocations: 4.797 kB / 0.5588 GB, free: 1.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002113/0.3347, allocations: 229.6 kB / 0.559 GB, free: 1.684 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3347, allocations: 4 kB / 0.559 GB, free: 1.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003177/0.335, allocations: 92.69 kB / 0.5591 GB, free: 1.59 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (core.relativeHeat,GILumen.relativeHeat,skeletalMuscle.relativeHeat,skin.relativeHeat) * 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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.643e-05/0.3351, allocations: 99.84 kB / 0.5592 GB, free: 1.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003783/0.3355, allocations: 213.9 kB / 0.5594 GB, free: 1.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3355, allocations: 0 / 0.5594 GB, free: 1.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.3357, allocations: 107.8 kB / 0.5595 GB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005889/0.3363, allocations: 107.8 kB / 0.5596 GB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.3375, allocations: 0.8481 MB / 0.5604 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.3379, allocations: 0.7951 MB / 0.5612 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.338, allocations: 34.62 kB / 0.5612 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.399e-05/0.3381, allocations: 23.44 kB / 0.5612 GB, free: 15.45 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3381, allocations: 0 / 0.5612 GB, free: 15.45 MB / 414.1 MB Notification: Performance of Templates: time 0.007129/0.3453, allocations: 3.864 MB / 0.565 GB, free: 11.71 MB / 414.1 MB make -j1 -f Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.makefile (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.sim & ./Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)