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: "" <> buildModelFMU(Physiolibrary.Thermal.Examples.ThermalBody_QHP,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.ThermalBody_QHP,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09058/0.09058, allocations: 15.28 MB / 30.91 MB, free: 4.148 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.001101/0.001101, allocations: 104.9 kB / 35.91 MB, free: 3.199 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.001264/0.001264, allocations: 195.4 kB / 41.02 MB, free: 7.141 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.402/1.402, allocations: 222.9 MB / 268.9 MB, free: 6.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1348/0.1348, allocations: 23.36 MB / 346.6 MB, free: 0.625 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 115.8 kB / 478.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.293, allocations: 59.35 MB / 0.5251 GB, free: 7.777 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.0319/0.3249, allocations: 23.6 MB / 0.5481 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.327, allocations: 0.7781 MB / 0.5489 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005364/0.3275, allocations: 11.94 kB / 0.5489 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003386/0.3279, allocations: 89.5 kB / 0.549 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006406/0.3285, allocations: 178 kB / 0.5492 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000324/0.3289, allocations: 96.22 kB / 0.5493 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006665/0.3296, allocations: 0.5588 MB / 0.5498 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002839/0.3298, allocations: 162.3 kB / 0.55 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.3301, allocations: 183.9 kB / 0.5501 GB, free: 9.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000265/0.3304, allocations: 204.1 kB / 0.5503 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.242e-05/0.3304, allocations: 32 kB / 0.5504 GB, free: 9.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.328e-05/0.3305, allocations: 39.94 kB / 0.5504 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-05/0.3306, allocations: 85.69 kB / 0.5505 GB, free: 9.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.3308, allocations: 232 kB / 0.5507 GB, free: 9.336 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005967/0.3314, allocations: 464.7 kB / 0.5511 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3315, allocations: 0 / 0.5511 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.3315, allocations: 4 kB / 0.5511 GB, free: 9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.3315, allocations: 0 / 0.5511 GB, free: 9 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.001185/0.3327, allocations: 0.7229 MB / 0.5519 GB, free: 8.277 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.3327, allocations: 12.03 kB / 0.5519 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.538e-05/0.3328, allocations: 66.06 kB / 0.5519 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.108e-05/0.3329, allocations: 48.47 kB / 0.552 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.3334, allocations: 346.6 kB / 0.5523 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.3335, allocations: 16.94 kB / 0.5523 GB, free: 7.797 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.3335, allocations: 33.03 kB / 0.5524 GB, free: 7.766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/0.334, allocations: 253.2 kB / 0.5526 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.334, allocations: 0.6094 kB / 0.5526 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.334, allocations: 16 kB / 0.5526 GB, free: 7.535 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.3341, allocations: 8 kB / 0.5526 GB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.3344, allocations: 186.4 kB / 0.5528 GB, free: 7.363 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.00193/0.3364, allocations: 1.551 MB / 0.5543 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004146/0.3368, allocations: 225.6 kB / 0.5545 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.337, allocations: 144 kB / 0.5547 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.3371, allocations: 4.234 kB / 0.5547 GB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.3371, allocations: 35.59 kB / 0.5547 GB, free: 5.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.523e-06/0.3371, allocations: 0 / 0.5547 GB, free: 5.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006212/0.3377, allocations: 316.4 kB / 0.555 GB, free: 5.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.3378, allocations: 59.41 kB / 0.5551 GB, free: 5.016 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004092/0.3382, allocations: 326.8 kB / 0.5554 GB, free: 4.723 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.3383, allocations: 29.7 kB / 0.5554 GB, free: 4.688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.3384, allocations: 191 kB / 0.5556 GB, free: 4.512 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.3385, allocations: 98.48 kB / 0.5557 GB, free: 4.422 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.3387, allocations: 45.42 kB / 0.5557 GB, free: 4.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3388, allocations: 347.1 kB / 0.556 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.339, allocations: 69.95 kB / 0.5561 GB, free: 3.977 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.3391, allocations: 74.23 kB / 0.5562 GB, free: 3.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.3404, allocations: 394.3 kB / 0.5566 GB, free: 3.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3404, allocations: 0 / 0.5566 GB, free: 3.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004983/0.3409, allocations: 259.9 kB / 0.5568 GB, free: 3.316 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.3409, allocations: 4.75 kB / 0.5568 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.3409, allocations: 4 kB / 0.5568 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.341, allocations: 4 kB / 0.5568 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.3413, allocations: 50.27 kB / 0.5569 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3413, allocations: 4.75 kB / 0.5569 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3415, allocations: 27.62 kB / 0.5569 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.3415, allocations: 8 kB / 0.5569 GB, free: 3.223 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.0002712/0.3418, allocations: 163.9 kB / 0.5571 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.159e-05/0.3418, allocations: 39.47 kB / 0.5571 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.342, allocations: 49.28 kB / 0.5571 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.342, allocations: 3.984 kB / 0.5572 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.342, allocations: 4.75 kB / 0.5572 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.342, allocations: 0.7969 kB / 0.5572 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005516/0.3425, allocations: 398.7 kB / 0.5575 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.3426, allocations: 0 / 0.5575 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.3428, allocations: 49.98 kB / 0.5576 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.3429, allocations: 0 / 0.5576 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.3429, allocations: 12.7 kB / 0.5576 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3429, allocations: 0 / 0.5576 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3429, allocations: 0.7969 kB / 0.5576 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006471/0.3436, allocations: 471.2 kB / 0.558 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.3437, allocations: 132.9 kB / 0.5582 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.379e-05/0.3438, allocations: 4.984 kB / 0.5582 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.3439, allocations: 4 kB / 0.5582 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.129e-05/0.344, allocations: 13.81 kB / 0.5582 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.344, allocations: 16 kB / 0.5582 GB, free: 1.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002413/0.3443, allocations: 230.7 kB / 0.5584 GB, free: 1.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.713e-06/0.3443, allocations: 0 / 0.5584 GB, free: 1.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.3446, allocations: 99.78 kB / 0.5585 GB, free: 1.613 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.000973/0.3456, allocations: 0.9989 MB / 0.5595 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004181/0.3461, allocations: 215.1 kB / 0.5597 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3461, allocations: 0 / 0.5597 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.3462, allocations: 111.3 kB / 0.5598 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000595/0.3468, allocations: 100.4 kB / 0.5599 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003973/0.3508, allocations: 3.156 MB / 0.563 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.3512, allocations: 0.7994 MB / 0.5638 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001721/0.3514, allocations: 34.72 kB / 0.5638 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.3516, allocations: 121.8 kB / 0.5639 GB, free: 12.29 MB / 414.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3516, allocations: 3.938 kB / 0.5639 GB, free: 12.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02704/0.3786, allocations: 7.607 MB / 0.5714 GB, free: 4.754 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.849/8.228, allocations: 11.95 kB / 0.5714 GB, free: 4.746 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)