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.09225/0.09225, allocations: 15.28 MB / 31.58 MB, free: 4.223 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.001024/0.001024, allocations: 106.1 kB / 36.58 MB, free: 3.137 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.001252/0.001252, allocations: 193.1 kB / 41.69 MB, free: 7.148 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.429/1.429, allocations: 222.9 MB / 269.5 MB, free: 6.867 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1409/0.1409, allocations: 23.35 MB / 347.2 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 115.8 kB / 479.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3573, allocations: 59.36 MB / 0.5262 GB, free: 8.07 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.0351/0.3924, allocations: 23.59 MB / 0.5493 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002147/0.3946, allocations: 0.7739 MB / 0.55 GB, free: 11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000477/0.3951, allocations: 11.94 kB / 0.5501 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000336/0.3954, allocations: 85.64 kB / 0.5501 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005417/0.396, allocations: 185.4 kB / 0.5503 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003244/0.3963, allocations: 92.75 kB / 0.5504 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007751/0.3971, allocations: 0.5622 MB / 0.5509 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.3974, allocations: 169.8 kB / 0.5511 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002908/0.3977, allocations: 188.2 kB / 0.5513 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003382/0.3981, allocations: 200.1 kB / 0.5515 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.8e-05/0.3982, allocations: 32 kB / 0.5515 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.3983, allocations: 36 kB / 0.5515 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.3984, allocations: 72.88 kB / 0.5516 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.3986, allocations: 237.8 kB / 0.5518 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005454/0.3992, allocations: 473.4 kB / 0.5523 GB, free: 9.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.3992, allocations: 0 / 0.5523 GB, free: 9.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3992, allocations: 0 / 0.5523 GB, free: 9.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.3992, allocations: 0 / 0.5523 GB, free: 9.016 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.001074/0.4003, allocations: 0.7226 MB / 0.553 GB, free: 8.293 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.4003, allocations: 8.031 kB / 0.553 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.696e-05/0.4004, allocations: 49.31 kB / 0.5531 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004608/0.4009, allocations: 350.8 kB / 0.5534 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.4009, allocations: 16.94 kB / 0.5534 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.141e-05/0.401, allocations: 32.28 kB / 0.5534 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004733/0.4014, allocations: 253.9 kB / 0.5537 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.4015, allocations: 3.984 kB / 0.5537 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.4015, allocations: 12.52 kB / 0.5537 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.4015, allocations: 12 kB / 0.5537 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003591/0.4019, allocations: 190.4 kB / 0.5539 GB, free: 7.438 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.001813/0.4037, allocations: 1.547 MB / 0.5554 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.4041, allocations: 214.6 kB / 0.5556 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.4043, allocations: 151.9 kB / 0.5557 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.4043, allocations: 4.234 kB / 0.5557 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.4044, allocations: 31.55 kB / 0.5558 GB, free: 5.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.453e-06/0.4044, allocations: 0 / 0.5558 GB, free: 5.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006024/0.405, allocations: 316 kB / 0.5561 GB, free: 5.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.405, allocations: 56.06 kB / 0.5561 GB, free: 5.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/0.4054, allocations: 322.5 kB / 0.5564 GB, free: 4.809 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.4054, allocations: 29.7 kB / 0.5565 GB, free: 4.773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.4056, allocations: 195.2 kB / 0.5567 GB, free: 4.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.484e-05/0.4056, allocations: 94.33 kB / 0.5567 GB, free: 4.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.685e-05/0.4057, allocations: 49.73 kB / 0.5568 GB, free: 4.457 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.4059, allocations: 350.1 kB / 0.5571 GB, free: 4.117 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.406, allocations: 74.33 kB / 0.5572 GB, free: 4.051 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.4062, allocations: 65.81 kB / 0.5573 GB, free: 3.992 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.4073, allocations: 399 kB / 0.5576 GB, free: 3.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.4073, allocations: 0 / 0.5576 GB, free: 3.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000408/0.4078, allocations: 260.3 kB / 0.5579 GB, free: 3.395 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.4078, allocations: 7.438 kB / 0.5579 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4078, allocations: 0 / 0.5579 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.4078, allocations: 0 / 0.5579 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002762/0.4081, allocations: 54.69 kB / 0.5579 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.4081, allocations: 4 kB / 0.558 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.4083, allocations: 24.62 kB / 0.558 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.4083, allocations: 8 kB / 0.558 GB, free: 3.309 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.0002147/0.4085, allocations: 165.6 kB / 0.5581 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.956e-05/0.4086, allocations: 31.62 kB / 0.5582 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.4087, allocations: 52.91 kB / 0.5582 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.4087, allocations: 4 kB / 0.5582 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.4087, allocations: 7.938 kB / 0.5582 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.4087, allocations: 1.5 kB / 0.5582 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004758/0.4092, allocations: 406.7 kB / 0.5586 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4092, allocations: 0 / 0.5586 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.4095, allocations: 45.94 kB / 0.5587 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.4095, allocations: 0 / 0.5587 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.905e-05/0.4096, allocations: 8.609 kB / 0.5587 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4096, allocations: 0 / 0.5587 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4096, allocations: 0.75 kB / 0.5587 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006386/0.4102, allocations: 479.1 kB / 0.5591 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.4104, allocations: 133.2 kB / 0.5593 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.5e-05/0.4104, allocations: 8.562 kB / 0.5593 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.4106, allocations: 8 kB / 0.5593 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.4107, allocations: 9.719 kB / 0.5593 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.4107, allocations: 12.7 kB / 0.5593 GB, free: 1.988 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.4109, allocations: 229.8 kB / 0.5595 GB, free: 1.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4109, allocations: 0 / 0.5595 GB, free: 1.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003415/0.4113, allocations: 95.84 kB / 0.5596 GB, free: 1.695 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 0.0001064/0.4114, allocations: 104.1 kB / 0.5597 GB, free: 1.582 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004057/0.4118, allocations: 206.9 kB / 0.5599 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4118, allocations: 0 / 0.5599 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.412, allocations: 108.1 kB / 0.56 GB, free: 1.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006408/0.4126, allocations: 106.7 kB / 0.5601 GB, free: 1.215 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.414, allocations: 0.8586 MB / 0.5609 GB, free: 380 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.4145, allocations: 0.7991 MB / 0.5617 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.4146, allocations: 27.44 kB / 0.5618 GB, free: 15.56 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4146, allocations: 0 / 0.5618 GB, free: 15.56 MB / 414.1 MB Notification: Performance of Templates: time 0.007329/0.4219, allocations: 4.41 MB / 0.5661 GB, free: 11.24 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)