Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo): time 0.05301/0.05301, allocations: 11.16 MB / 30.34 MB, free: 5.043 MB / 24.77 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009153/0.0009153, allocations: 88.62 kB / 37.93 MB, free: 7.414 MB / 33.03 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000919/0.000919, allocations: 168.5 kB / 45.63 MB, free: 10.83 MB / 44.04 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.864/0.864, allocations: 177.2 MB / 230.4 MB, free: 6.523 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1995/0.1995, allocations: 17.62 MB / 308.8 MB, free: 1.715 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo) Running command: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 3.984 kB / 453.3 MB, free: 5.895 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.599e-05/1.814e-05, allocations: 2.281 kB / 453.3 MB, free: 5.891 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596: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/Fluid.mo:596:7-596: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.Fluid.Examples.MinimalCirculation): time 0.2182/0.2183, allocations: 70.92 MB / 0.512 GB, free: 13.58 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.009194/0.2275, allocations: 13.7 MB / 0.5254 GB, free: 3.574 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005226/0.228, allocations: 35.69 kB / 0.5254 GB, free: 3.539 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005508/0.2285, allocations: 243.6 kB / 0.5256 GB, free: 3.363 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002594/0.2311, allocations: 1.64 MB / 0.5272 GB, free: 2.023 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003517/0.2346, allocations: 2.259 MB / 0.5294 GB, free: 188 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.2357, allocations: 1.527 MB / 0.5309 GB, free: 14.82 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003729/0.236, allocations: 334.7 kB / 0.5312 GB, free: 14.58 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001786/0.2378, allocations: 1.36 MB / 0.5326 GB, free: 13.47 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004924/0.2383, allocations: 0.4969 MB / 0.5331 GB, free: 13.09 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 5.667e-05/0.2384, allocations: 59.94 kB / 0.5331 GB, free: 13.03 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.2404, allocations: 1.298 MB / 0.5344 GB, free: 11.9 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.2406, allocations: 182.9 kB / 0.5346 GB, free: 11.76 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003691/0.2409, allocations: 256.5 kB / 0.5348 GB, free: 11.53 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002191/0.2431, allocations: 2.107 MB / 0.5369 GB, free: 9.828 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2431, allocations: 0 / 0.5369 GB, free: 9.828 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2431, allocations: 0 / 0.5369 GB, free: 9.828 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.2431, allocations: 4 kB / 0.5369 GB, free: 9.824 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.0015/0.2446, allocations: 1.079 MB / 0.5379 GB, free: 8.805 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.2447, allocations: 8.031 kB / 0.5379 GB, free: 8.797 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.75e-05/0.2448, allocations: 88.95 kB / 0.538 GB, free: 8.711 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.872e-05/0.2448, allocations: 68.23 kB / 0.5381 GB, free: 8.645 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005075/0.2454, allocations: 419 kB / 0.5385 GB, free: 8.262 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.2454, allocations: 33.75 kB / 0.5385 GB, free: 8.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.282e-05/0.2454, allocations: 44 kB / 0.5385 GB, free: 8.188 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007065/0.2461, allocations: 0.6024 MB / 0.5391 GB, free: 7.648 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.2462, allocations: 8.656 kB / 0.5391 GB, free: 7.641 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.2462, allocations: 16 kB / 0.5392 GB, free: 7.625 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.2462, allocations: 12.64 kB / 0.5392 GB, free: 7.613 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006603/0.2469, allocations: 499.7 kB / 0.5396 GB, free: 7.203 MB / 426.7 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.0018/0.2487, allocations: 1.793 MB / 0.5414 GB, free: 5.562 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005839/0.2492, allocations: 428.5 kB / 0.5418 GB, free: 5.203 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003507/0.2496, allocations: 247.1 kB / 0.542 GB, free: 4.996 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001018/0.2506, allocations: 0.7713 MB / 0.5428 GB, free: 4.316 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005482/0.2512, allocations: 329.8 kB / 0.5431 GB, free: 4.027 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 1.804e-06/0.2512, allocations: 0 / 0.5431 GB, free: 4.027 MB / 426.7 MB Notification: Performance of matching and sorting (n=38): time 0.001022/0.2522, allocations: 0.6499 MB / 0.5437 GB, free: 3.457 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.2522, allocations: 56.02 kB / 0.5438 GB, free: 3.391 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004032/0.2526, allocations: 484.2 kB / 0.5443 GB, free: 2.965 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.2526, allocations: 33.7 kB / 0.5443 GB, free: 2.926 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.2528, allocations: 290.2 kB / 0.5446 GB, free: 2.656 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.947e-05/0.2529, allocations: 142 kB / 0.5447 GB, free: 2.527 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.253, allocations: 107.9 kB / 0.5448 GB, free: 2.426 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.2531, allocations: 358.9 kB / 0.5451 GB, free: 2.082 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003092/0.2534, allocations: 242.9 kB / 0.5454 GB, free: 1.875 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.2538, allocations: 368.3 kB / 0.5457 GB, free: 1.5 MB / 426.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: arteries.mass = arteries.tm_start (arteries.m_start[1] + arteries.massOffset = arteries.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: veins.mass = veins.tm_start (veins.m_start[1] + veins.massOffset = veins.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002308/0.2561, allocations: 1.627 MB / 0.5473 GB, free: 28 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2561, allocations: 0 / 0.5473 GB, free: 28 kB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008851/0.257, allocations: 0.737 MB / 0.548 GB, free: 15.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.257, allocations: 31.06 kB / 0.5481 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.257, allocations: 4 kB / 0.5481 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001109/0.2571, allocations: 48.2 kB / 0.5481 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.2574, allocations: 115 kB / 0.5482 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000273/0.2577, allocations: 0.5574 MB / 0.5488 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.2579, allocations: 69.56 kB / 0.5488 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-05/0.2579, allocations: 26.47 kB / 0.5489 GB, free: 14.52 MB / 442.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.2581, allocations: 192.3 kB / 0.549 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.827e-05/0.2581, allocations: 52.28 kB / 0.5491 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007199/0.2589, allocations: 0.5444 MB / 0.5496 GB, free: 13.81 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.2589, allocations: 4.656 kB / 0.5496 GB, free: 13.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2589, allocations: 7.766 kB / 0.5496 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.2589, allocations: 6.25 kB / 0.5496 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000366/0.2593, allocations: 444.5 kB / 0.5501 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.2593, allocations: 0 / 0.5501 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.2594, allocations: 69.48 kB / 0.5501 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.233e-05/0.2595, allocations: 39.28 kB / 0.5502 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.2595, allocations: 7.375 kB / 0.5502 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003441/0.2599, allocations: 0.5605 MB / 0.5507 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2599, allocations: 0 / 0.5507 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008799/0.2608, allocations: 0.7688 MB / 0.5515 GB, free: 12.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.2609, allocations: 106.3 kB / 0.5516 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.013e-05/0.2609, allocations: 4.797 kB / 0.5516 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.2611, allocations: 26.98 kB / 0.5516 GB, free: 11.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.038e-05/0.2612, allocations: 37.58 kB / 0.5516 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.2612, allocations: 18.2 kB / 0.5517 GB, free: 11.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00024/0.2614, allocations: 324.4 kB / 0.552 GB, free: 11.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2614, allocations: 0 / 0.552 GB, free: 11.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009956/0.2624, allocations: 0.5044 MB / 0.5525 GB, free: 11.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001893/0.2643, allocations: 1.978 MB / 0.5544 GB, free: 9.285 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007006/0.265, allocations: 0.5606 MB / 0.5549 GB, free: 8.781 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.265, allocations: 1 kB / 0.5549 GB, free: 8.781 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002706/0.2653, allocations: 224.5 kB / 0.5552 GB, free: 8.598 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000608/0.2659, allocations: 242.9 kB / 0.5554 GB, free: 8.414 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004727/0.2706, allocations: 5.054 MB / 0.5603 GB, free: 3.629 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001686/0.2708, allocations: 266.3 kB / 0.5606 GB, free: 3.34 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002727/0.2711, allocations: 124.4 kB / 0.5607 GB, free: 3.219 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.2713, allocations: 204.4 kB / 0.5609 GB, free: 3.02 MB / 442.7 MB Notification: Performance of SimCode: time 5.31e-07/0.2713, allocations: 0 / 0.5609 GB, free: 3.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0312/0.3025, allocations: 24.72 MB / 0.585 GB, free: 10.55 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.341/8.643, allocations: 11.06 kB / 0.585 GB, free: 10.54 MB / 474.7 MB " [Timeout remaining time 651] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.645722635090351] Failed to read output from testmodel.py, exit status != 0: 8.739302037283778 8.752954367 8.507270238 Calling exit ...