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.09054/0.09054, allocations: 15.28 MB / 30.91 MB, free: 4.125 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.001037/0.001037, allocations: 110.3 kB / 35.92 MB, free: 3.191 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.001244/0.001244, allocations: 193.1 kB / 41.02 MB, free: 7.125 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.341/1.341, allocations: 222.9 MB / 268.9 MB, free: 6.891 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1266/0.1266, allocations: 23.36 MB / 346.6 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 112.5 kB / 478.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3307, allocations: 59.35 MB / 0.5256 GB, free: 8.105 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.03012/0.3608, allocations: 23.66 MB / 0.5487 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.3626, allocations: 0.7818 MB / 0.5494 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001828/0.3627, allocations: 11.94 kB / 0.5495 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.363, allocations: 85.88 kB / 0.5495 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002928/0.3633, allocations: 189.4 kB / 0.5497 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.3635, allocations: 87.34 kB / 0.5498 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004713/0.3639, allocations: 0.5589 MB / 0.5504 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.3642, allocations: 169.8 kB / 0.5505 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.3644, allocations: 188 kB / 0.5507 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.3646, allocations: 208.2 kB / 0.5509 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.721e-05/0.3647, allocations: 32 kB / 0.5509 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.581e-05/0.3647, allocations: 35.94 kB / 0.551 GB, free: 9.602 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.599e-05/0.3648, allocations: 80.81 kB / 0.551 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.365, allocations: 230.6 kB / 0.5513 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004072/0.3654, allocations: 464.6 kB / 0.5517 GB, free: 8.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3654, allocations: 0 / 0.5517 GB, free: 8.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3654, allocations: 4 kB / 0.5517 GB, free: 8.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.3654, allocations: 0 / 0.5517 GB, free: 8.988 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.000917/0.3664, allocations: 0.7268 MB / 0.5524 GB, free: 8.262 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3664, allocations: 12.03 kB / 0.5524 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.776e-05/0.3665, allocations: 53.17 kB / 0.5525 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003721/0.3669, allocations: 343 kB / 0.5528 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.3669, allocations: 20.94 kB / 0.5528 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.643e-05/0.3669, allocations: 32.28 kB / 0.5528 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.3674, allocations: 253.5 kB / 0.5531 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3674, allocations: 4.797 kB / 0.5531 GB, free: 7.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.3674, allocations: 8 kB / 0.5531 GB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.3674, allocations: 8 kB / 0.5531 GB, free: 7.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003316/0.3678, allocations: 190.5 kB / 0.5533 GB, free: 7.41 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.001586/0.3693, allocations: 1.547 MB / 0.5548 GB, free: 5.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.3697, allocations: 218.9 kB / 0.555 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.3699, allocations: 147.6 kB / 0.5552 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.3699, allocations: 4.797 kB / 0.5552 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.37, allocations: 38.8 kB / 0.5552 GB, free: 5.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.343e-06/0.37, allocations: 0 / 0.5552 GB, free: 5.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005354/0.3705, allocations: 316.7 kB / 0.5555 GB, free: 5.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.3705, allocations: 52.2 kB / 0.5555 GB, free: 5.066 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.3709, allocations: 326.4 kB / 0.5559 GB, free: 4.773 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.3709, allocations: 29.7 kB / 0.5559 GB, free: 4.738 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.371, allocations: 194.6 kB / 0.5561 GB, free: 4.559 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.602e-05/0.3711, allocations: 99.28 kB / 0.5562 GB, free: 4.469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.057e-05/0.3711, allocations: 45.05 kB / 0.5562 GB, free: 4.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.3713, allocations: 354.5 kB / 0.5565 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.3714, allocations: 61.91 kB / 0.5566 GB, free: 4.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.3715, allocations: 70.56 kB / 0.5567 GB, free: 3.961 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3726, allocations: 402.7 kB / 0.5571 GB, free: 3.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3726, allocations: 0 / 0.5571 GB, free: 3.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000366/0.373, allocations: 263.9 kB / 0.5573 GB, free: 3.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.373, allocations: 4 kB / 0.5573 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.373, allocations: 0 / 0.5573 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.373, allocations: 4.75 kB / 0.5573 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.3733, allocations: 49.89 kB / 0.5574 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.3733, allocations: 4.594 kB / 0.5574 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.3734, allocations: 19.75 kB / 0.5574 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.3735, allocations: 12 kB / 0.5574 GB, free: 3.27 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.0001865/0.3736, allocations: 162 kB / 0.5576 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.466e-05/0.3737, allocations: 35.62 kB / 0.5576 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.023e-05/0.3738, allocations: 48.89 kB / 0.5576 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.3738, allocations: 4 kB / 0.5576 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3738, allocations: 5.219 kB / 0.5576 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3738, allocations: 0.8438 kB / 0.5576 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.3743, allocations: 409.8 kB / 0.558 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3743, allocations: 4 kB / 0.558 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.3745, allocations: 46.73 kB / 0.5581 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.3745, allocations: 4 kB / 0.5581 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.3746, allocations: 4 kB / 0.5581 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.3746, allocations: 0.6562 kB / 0.5581 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3746, allocations: 4 kB / 0.5581 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005775/0.3752, allocations: 467.3 kB / 0.5585 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.3753, allocations: 133.2 kB / 0.5587 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.3753, allocations: 12.75 kB / 0.5587 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.3755, allocations: 4 kB / 0.5587 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.3756, allocations: 14.33 kB / 0.5587 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.3756, allocations: 4 kB / 0.5587 GB, free: 1.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.3758, allocations: 230.2 kB / 0.5589 GB, free: 1.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3758, allocations: 0 / 0.5589 GB, free: 1.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003138/0.3761, allocations: 95.84 kB / 0.559 GB, free: 1.668 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 7.794e-05/0.3762, allocations: 103.8 kB / 0.5591 GB, free: 1.555 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000359/0.3766, allocations: 210.5 kB / 0.5593 GB, free: 1.363 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3766, allocations: 4 kB / 0.5593 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.3767, allocations: 112.1 kB / 0.5594 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005788/0.3773, allocations: 107.4 kB / 0.5595 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.3784, allocations: 0.8359 MB / 0.5603 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.3788, allocations: 0.7957 MB / 0.5611 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.3789, allocations: 30.64 kB / 0.5611 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.953e-05/0.379, allocations: 24 kB / 0.5612 GB, free: 15.54 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.379, allocations: 0 / 0.5612 GB, free: 15.54 MB / 414.1 MB Notification: Performance of Templates: time 0.006725/0.3857, allocations: 3.858 MB / 0.5649 GB, free: 11.8 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)