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.1056/0.1056, allocations: 15.27 MB / 30.91 MB, free: 4.262 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.001088/0.001088, allocations: 113.7 kB / 35.92 MB, free: 3.16 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.001353/0.001353, allocations: 193.1 kB / 41.02 MB, free: 7.164 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.444/1.444, allocations: 222.9 MB / 268.9 MB, free: 6.832 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1412/0.1412, allocations: 23.35 MB / 346.6 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 108 kB / 478.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3649, allocations: 59.36 MB / 0.5251 GB, free: 7.793 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.03302/0.398, allocations: 21.73 MB / 0.5463 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.3992, allocations: 445.1 kB / 0.5467 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.3994, allocations: 4 kB / 0.5467 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.3995, allocations: 16.5 kB / 0.5468 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.3997, allocations: 49.89 kB / 0.5468 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.731e-05/0.3997, allocations: 7.141 kB / 0.5468 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001878/0.3999, allocations: 115.3 kB / 0.5469 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.4001, allocations: 30.39 kB / 0.547 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.76e-05/0.4001, allocations: 42.86 kB / 0.547 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.29e-05/0.4002, allocations: 36.34 kB / 0.547 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.4002, allocations: 8 kB / 0.547 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.595e-05/0.4003, allocations: 4 kB / 0.547 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.152e-05/0.4003, allocations: 17.38 kB / 0.5471 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.902e-05/0.4004, allocations: 49.3 kB / 0.5471 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001711/0.4005, allocations: 94.27 kB / 0.5472 GB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.4006, allocations: 0 / 0.5472 GB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4006, allocations: 0 / 0.5472 GB, free: 12.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.4006, allocations: 0 / 0.5472 GB, free: 12.62 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.000498/0.4011, allocations: 403.2 kB / 0.5476 GB, free: 12.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.4011, allocations: 12.03 kB / 0.5476 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.4012, allocations: 32.25 kB / 0.5476 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.4012, allocations: 20.84 kB / 0.5476 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.4015, allocations: 223.3 kB / 0.5479 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.4015, allocations: 384 / 0.5479 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.4016, allocations: 8.375 kB / 0.5479 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.4017, allocations: 54.52 kB / 0.5479 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.4017, allocations: 0 / 0.5479 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.4017, allocations: 11.94 kB / 0.5479 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.4017, allocations: 4 kB / 0.5479 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.917e-05/0.4018, allocations: 23.09 kB / 0.5479 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005066/0.4023, allocations: 478.6 kB / 0.5484 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.104e-05/0.4024, allocations: 174 kB / 0.5486 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.155e-05/0.4024, allocations: 84.14 kB / 0.5487 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.4025, allocations: 75.28 kB / 0.5487 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.896e-05/0.4025, allocations: 110.6 kB / 0.5488 GB, free: 10.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.333e-06/0.4025, allocations: 0 / 0.5488 GB, free: 10.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.13e-05/0.4026, allocations: 45.55 kB / 0.5489 GB, free: 10.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.4027, allocations: 131.2 kB / 0.549 GB, free: 10.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.4029, allocations: 183.2 kB / 0.5492 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.4029, allocations: 29.7 kB / 0.5492 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.707e-05/0.403, allocations: 108.4 kB / 0.5493 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-06/0.403, allocations: 0 / 0.5493 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/0.403, allocations: 14.42 kB / 0.5493 GB, free: 10.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.4031, allocations: 322.1 kB / 0.5496 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.469e-05/0.4031, allocations: 8.75 kB / 0.5496 GB, free: 9.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.252e-06/0.4032, allocations: 0 / 0.5496 GB, free: 9.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.772e-05/0.4032, allocations: 12.92 kB / 0.5496 GB, free: 9.957 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4032, allocations: 0.7969 kB / 0.5496 GB, free: 9.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001062/0.4033, allocations: 46.11 kB / 0.5497 GB, free: 9.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.4033, allocations: 8.938 kB / 0.5497 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.4033, allocations: 3.938 kB / 0.5497 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.4034, allocations: 3.938 kB / 0.5497 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.721e-05/0.4034, allocations: 0.7031 kB / 0.5497 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.4034, allocations: 0 / 0.5497 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.957e-05/0.4035, allocations: 7.953 kB / 0.5497 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.4035, allocations: 112 / 0.5497 GB, free: 9.883 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 9.594e-05/0.4036, allocations: 197.7 kB / 0.5499 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.4037, allocations: 110.2 kB / 0.55 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.4037, allocations: 119.7 kB / 0.5501 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.989e-05/0.4038, allocations: 192.9 kB / 0.5503 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.34e-05/0.4038, allocations: 177 kB / 0.5505 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.84e-05/0.4039, allocations: 185.4 kB / 0.5507 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.4042, allocations: 437.4 kB / 0.5511 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-05/0.4042, allocations: 105.4 kB / 0.5512 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.867e-05/0.4043, allocations: 102.5 kB / 0.5513 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.324e-05/0.4043, allocations: 176.3 kB / 0.5514 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.183e-05/0.4044, allocations: 189 kB / 0.5516 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.446e-05/0.4045, allocations: 180.9 kB / 0.5518 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.855e-05/0.4045, allocations: 180.9 kB / 0.552 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.4047, allocations: 317.6 kB / 0.5523 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.94e-05/0.4048, allocations: 188 kB / 0.5524 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.471e-05/0.4049, allocations: 185.8 kB / 0.5526 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.405, allocations: 112.9 kB / 0.5527 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.191e-05/0.4051, allocations: 181 kB / 0.5529 GB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.4051, allocations: 109.8 kB / 0.553 GB, free: 6.316 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001168/0.4052, allocations: 135.7 kB / 0.5531 GB, free: 6.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4052, allocations: 0 / 0.5531 GB, free: 6.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002318/0.4055, allocations: 15.94 kB / 0.5531 GB, free: 6.18 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.0003839/0.4059, allocations: 0.8152 MB / 0.5539 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.442e-05/0.4059, allocations: 8.75 kB / 0.554 GB, free: 5.328 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4059, allocations: 3.938 kB / 0.554 GB, free: 5.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.563e-06/0.4059, allocations: 0 / 0.554 GB, free: 5.324 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005903/0.4065, allocations: 0.5034 MB / 0.5544 GB, free: 4.828 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.408, allocations: 1.645 MB / 0.5561 GB, free: 3.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.4083, allocations: 0.6993 MB / 0.5567 GB, free: 2.445 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.905e-05/0.4083, allocations: 7 kB / 0.5567 GB, free: 2.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.185e-05/0.4084, allocations: 30.3 kB / 0.5568 GB, free: 2.414 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4084, allocations: 0 / 0.5568 GB, free: 2.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.4286, allocations: 3.062 MB / 0.5598 GB, free: 0.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.479/7.908, allocations: 6.438 kB / 0.5598 GB, free: 0.4961 MB / 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)