Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.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.SkinHeatTransferOnBloodFlow,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_SkinHeatTransferOnBloodFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_SkinHeatTransferOnBloodFlow",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.09659/0.09659, allocations: 15.27 MB / 30.91 MB, free: 4.152 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.001184/0.001184, allocations: 106.4 kB / 35.92 MB, free: 3.172 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.001472/0.001471, allocations: 193.1 kB / 41.02 MB, free: 7.113 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.544/1.544, allocations: 222.9 MB / 268.9 MB, free: 6.863 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1505/0.1505, allocations: 23.36 MB / 346.6 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00318/0.00318, allocations: 115.8 kB / 478.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3168, allocations: 59.35 MB / 0.5251 GB, free: 7.805 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.SkinHeatTransferOnBloodFlow): time 0.03392/0.3508, allocations: 22.2 MB / 0.5468 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.3519, allocations: 440.5 kB / 0.5472 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.352, allocations: 4 kB / 0.5472 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.3522, allocations: 21.06 kB / 0.5472 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.3523, allocations: 41.14 kB / 0.5473 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.506e-05/0.3524, allocations: 8.266 kB / 0.5473 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.3526, allocations: 110 kB / 0.5474 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.3527, allocations: 43.61 kB / 0.5474 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.401e-05/0.3527, allocations: 30.22 kB / 0.5474 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.426e-05/0.3528, allocations: 35.61 kB / 0.5475 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.3529, allocations: 12 kB / 0.5475 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.677e-05/0.3529, allocations: 4 kB / 0.5475 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.432e-05/0.3529, allocations: 13.89 kB / 0.5475 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.281e-05/0.353, allocations: 53.09 kB / 0.5475 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.3532, allocations: 91.02 kB / 0.5476 GB, free: 12.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3532, allocations: 0 / 0.5476 GB, free: 12.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3532, allocations: 0 / 0.5476 GB, free: 12.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.3532, allocations: 0 / 0.5476 GB, free: 12.16 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005312/0.3537, allocations: 403.2 kB / 0.548 GB, free: 11.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3538, allocations: 12.03 kB / 0.548 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.438e-05/0.3538, allocations: 44.09 kB / 0.5481 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.274e-05/0.3539, allocations: 13.36 kB / 0.5481 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.3542, allocations: 218.4 kB / 0.5483 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.3542, allocations: 4.375 kB / 0.5483 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.3542, allocations: 4.375 kB / 0.5483 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.3543, allocations: 58.52 kB / 0.5484 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3543, allocations: 4 kB / 0.5484 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.3544, allocations: 4.609 kB / 0.5484 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.3544, allocations: 0 / 0.5484 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.531e-05/0.3544, allocations: 30.08 kB / 0.5484 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005508/0.355, allocations: 491.4 kB / 0.5489 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.3551, allocations: 177.8 kB / 0.549 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.053e-05/0.3552, allocations: 80.14 kB / 0.5491 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.374e-05/0.3552, allocations: 75.28 kB / 0.5492 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.453e-05/0.3553, allocations: 106.5 kB / 0.5493 GB, free: 10.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.193e-06/0.3553, allocations: 0 / 0.5493 GB, free: 10.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.8e-05/0.3554, allocations: 50.19 kB / 0.5493 GB, free: 10.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.3555, allocations: 135.2 kB / 0.5495 GB, free: 10.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.3557, allocations: 178.9 kB / 0.5496 GB, free: 9.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.3557, allocations: 30.22 kB / 0.5497 GB, free: 9.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.24e-05/0.3558, allocations: 108 kB / 0.5498 GB, free: 9.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-06/0.3558, allocations: 0 / 0.5498 GB, free: 9.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.3559, allocations: 14.38 kB / 0.5498 GB, free: 9.824 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.356, allocations: 318.5 kB / 0.5501 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.583e-05/0.3561, allocations: 8 kB / 0.5501 GB, free: 9.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.706e-06/0.3561, allocations: 4.75 kB / 0.5501 GB, free: 9.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.276e-05/0.3561, allocations: 8.859 kB / 0.5501 GB, free: 9.484 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3561, allocations: 0 / 0.5501 GB, free: 9.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001086/0.3562, allocations: 46.95 kB / 0.5501 GB, free: 9.434 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3563, allocations: 10.97 kB / 0.5502 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3563, allocations: 0.5156 kB / 0.5502 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.3563, allocations: 3.938 kB / 0.5502 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.666e-05/0.3563, allocations: 0.75 kB / 0.5502 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.3563, allocations: 0 / 0.5502 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.032e-05/0.3564, allocations: 12.05 kB / 0.5502 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.3564, allocations: 0 / 0.5502 GB, free: 9.41 MB / 398.1 MB 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 (1): * Single equations (assignments): 1 * 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.0001237/0.3565, allocations: 190.4 kB / 0.5504 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.537e-05/0.3566, allocations: 109.7 kB / 0.5505 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.681e-05/0.3567, allocations: 123.6 kB / 0.5506 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.061e-05/0.3568, allocations: 189.5 kB / 0.5508 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-05/0.3569, allocations: 185 kB / 0.5509 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.427e-05/0.357, allocations: 176.9 kB / 0.5511 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003235/0.3573, allocations: 437.6 kB / 0.5515 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.328e-05/0.3574, allocations: 101.6 kB / 0.5516 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.475e-05/0.3574, allocations: 101.6 kB / 0.5517 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.66e-05/0.3575, allocations: 188.8 kB / 0.5519 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.893e-05/0.3576, allocations: 184.9 kB / 0.5521 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.745e-05/0.3577, allocations: 189.2 kB / 0.5523 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.277e-05/0.3578, allocations: 180.9 kB / 0.5524 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.358, allocations: 317.6 kB / 0.5527 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.3581, allocations: 196.5 kB / 0.5529 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.71e-05/0.3582, allocations: 180.2 kB / 0.5531 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.3583, allocations: 105.7 kB / 0.5532 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.855e-05/0.3584, allocations: 189 kB / 0.5534 GB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.733e-05/0.3585, allocations: 105.7 kB / 0.5535 GB, free: 5.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000135/0.3586, allocations: 135.6 kB / 0.5536 GB, free: 5.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3586, allocations: 4 kB / 0.5536 GB, free: 5.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002332/0.3588, allocations: 12 kB / 0.5536 GB, free: 5.703 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.0004802/0.3593, allocations: 0.8118 MB / 0.5544 GB, free: 4.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.208e-05/0.3594, allocations: 3.938 kB / 0.5544 GB, free: 4.859 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3594, allocations: 8.062 kB / 0.5544 GB, free: 4.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.814e-06/0.3594, allocations: 0 / 0.5544 GB, free: 4.852 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006759/0.3601, allocations: 0.4919 MB / 0.5549 GB, free: 4.367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/0.3618, allocations: 1.645 MB / 0.5565 GB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.3621, allocations: 0.6998 MB / 0.5572 GB, free: 1.984 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.752e-05/0.3622, allocations: 6.719 kB / 0.5572 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.3623, allocations: 25.88 kB / 0.5572 GB, free: 1.957 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3623, allocations: 4 kB / 0.5572 GB, free: 1.953 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.3884, allocations: 3.064 MB / 0.5602 GB, free: 40 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.023/8.411, allocations: 7.781 kB / 0.5602 GB, free: 32 kB / 398.1 MB (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 Physiolibrary_Physiolibrary_Thermal_Examples_SkinHeatTransferOnBloodFlow.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.pipe 2>&1)