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.06351/0.06351, allocations: 11.15 MB / 30.25 MB, free: 5.078 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.0007973/0.0007973, allocations: 87.3 kB / 37.83 MB, free: 7.645 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.001098/0.001098, allocations: 164.6 kB / 45.51 MB, free: 52 kB / 33.03 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.9217/0.9217, allocations: 177.1 MB / 230.2 MB, free: 6.582 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.2255/0.2255, allocations: 17.61 MB / 308.7 MB, free: 1.746 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 1.974e-06/1.974e-06, allocations: 0 / 453.1 MB, free: 6.035 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.477e-05/2.674e-05, allocations: 2.281 kB / 453.1 MB, free: 6.031 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.2291/0.2292, allocations: 70.88 MB / 0.5117 GB, free: 13.64 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.2395, allocations: 13.7 MB / 0.5251 GB, free: 3.734 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008857/0.2404, allocations: 23.81 kB / 0.5251 GB, free: 3.711 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000642/0.2411, allocations: 256.6 kB / 0.5254 GB, free: 3.523 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003678/0.2447, allocations: 1.631 MB / 0.527 GB, free: 2.191 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004554/0.2493, allocations: 2.259 MB / 0.5292 GB, free: 360 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001469/0.2508, allocations: 1.521 MB / 0.5306 GB, free: 14.99 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004199/0.2512, allocations: 339.1 kB / 0.531 GB, free: 14.74 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002063/0.2533, allocations: 1.368 MB / 0.5323 GB, free: 13.63 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000609/0.2539, allocations: 0.4973 MB / 0.5328 GB, free: 13.25 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 5.633e-05/0.2539, allocations: 56 kB / 0.5328 GB, free: 13.2 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.2565, allocations: 1.303 MB / 0.5341 GB, free: 12.06 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001778/0.2566, allocations: 186.8 kB / 0.5343 GB, free: 11.91 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.2569, allocations: 253.1 kB / 0.5345 GB, free: 11.69 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003227/0.2601, allocations: 2.099 MB / 0.5366 GB, free: 9.996 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2601, allocations: 4 kB / 0.5366 GB, free: 9.992 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2601, allocations: 0 / 0.5366 GB, free: 9.992 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2601, allocations: 0 / 0.5366 GB, free: 9.992 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.001611/0.2617, allocations: 1.086 MB / 0.5376 GB, free: 8.969 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.2618, allocations: 12.03 kB / 0.5377 GB, free: 8.957 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.74e-05/0.2618, allocations: 85.05 kB / 0.5377 GB, free: 8.875 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.725e-05/0.2619, allocations: 71.58 kB / 0.5378 GB, free: 8.805 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005339/0.2625, allocations: 417.4 kB / 0.5382 GB, free: 8.426 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.2625, allocations: 29.8 kB / 0.5382 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.306e-05/0.2626, allocations: 48 kB / 0.5383 GB, free: 8.352 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007508/0.2633, allocations: 0.6067 MB / 0.5389 GB, free: 7.809 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.2633, allocations: 0 / 0.5389 GB, free: 7.809 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.2634, allocations: 16.56 kB / 0.5389 GB, free: 7.793 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.2634, allocations: 12.7 kB / 0.5389 GB, free: 7.781 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006565/0.264, allocations: 0.4951 MB / 0.5394 GB, free: 7.363 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.001878/0.2659, allocations: 1.793 MB / 0.5411 GB, free: 5.723 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005897/0.2665, allocations: 434.9 kB / 0.5416 GB, free: 5.355 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003456/0.2668, allocations: 242.8 kB / 0.5418 GB, free: 5.152 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001102/0.2679, allocations: 0.7754 MB / 0.5425 GB, free: 4.469 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004356/0.2684, allocations: 317.7 kB / 0.5428 GB, free: 4.191 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 1.944e-06/0.2684, allocations: 0 / 0.5428 GB, free: 4.191 MB / 426.7 MB Notification: Performance of matching and sorting (n=38): time 0.001074/0.2694, allocations: 0.6533 MB / 0.5435 GB, free: 3.621 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.2695, allocations: 60.2 kB / 0.5435 GB, free: 3.551 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004392/0.2699, allocations: 480.2 kB / 0.544 GB, free: 3.129 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.27, allocations: 37.7 kB / 0.544 GB, free: 3.086 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000505/0.2705, allocations: 286.1 kB / 0.5443 GB, free: 2.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.361e-05/0.2706, allocations: 145.5 kB / 0.5444 GB, free: 2.688 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.2707, allocations: 104.5 kB / 0.5445 GB, free: 2.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.2708, allocations: 358.9 kB / 0.5449 GB, free: 2.246 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.2711, allocations: 242.7 kB / 0.5451 GB, free: 2.039 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/0.2715, allocations: 376.1 kB / 0.5455 GB, free: 1.656 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.002571/0.2741, allocations: 1.62 MB / 0.5471 GB, free: 196 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.2741, allocations: 0 / 0.5471 GB, free: 196 kB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001013/0.2751, allocations: 0.7312 MB / 0.5478 GB, free: 15.51 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.2751, allocations: 34.88 kB / 0.5478 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.2751, allocations: 4.609 kB / 0.5478 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001309/0.2753, allocations: 43.42 kB / 0.5479 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.2755, allocations: 114.7 kB / 0.548 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003/0.2758, allocations: 0.5574 MB / 0.5485 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002985/0.2761, allocations: 65.66 kB / 0.5486 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.43e-05/0.2762, allocations: 30.75 kB / 0.5486 GB, free: 14.68 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.0002212/0.2764, allocations: 184.2 kB / 0.5488 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.601e-05/0.2765, allocations: 48.23 kB / 0.5488 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008058/0.2773, allocations: 0.5527 MB / 0.5494 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.2773, allocations: 8.453 kB / 0.5494 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2773, allocations: 3.938 kB / 0.5494 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.2773, allocations: 2.719 kB / 0.5494 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004276/0.2777, allocations: 444 kB / 0.5498 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2777, allocations: 0 / 0.5498 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.2779, allocations: 73.25 kB / 0.5499 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.637e-05/0.278, allocations: 39.73 kB / 0.5499 GB, free: 13.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.278, allocations: 11.05 kB / 0.5499 GB, free: 13.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002436/0.2783, allocations: 0.5568 MB / 0.5505 GB, free: 12.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2783, allocations: 4 kB / 0.5505 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009425/0.2792, allocations: 0.7728 MB / 0.5512 GB, free: 12.19 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.2794, allocations: 102.3 kB / 0.5513 GB, free: 12.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.2794, allocations: 8.703 kB / 0.5513 GB, free: 12.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.2796, allocations: 22.56 kB / 0.5513 GB, free: 12.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.41e-05/0.2797, allocations: 37.39 kB / 0.5514 GB, free: 12.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.2797, allocations: 14.67 kB / 0.5514 GB, free: 12.05 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002577/0.2799, allocations: 324.8 kB / 0.5517 GB, free: 11.78 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2799, allocations: 0 / 0.5517 GB, free: 11.78 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001277/0.2812, allocations: 0.5155 MB / 0.5522 GB, free: 11.27 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.002162/0.2834, allocations: 1.966 MB / 0.5541 GB, free: 9.453 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007662/0.2842, allocations: 0.5637 MB / 0.5547 GB, free: 8.945 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2842, allocations: 0 / 0.5547 GB, free: 8.945 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002957/0.2844, allocations: 220.4 kB / 0.5549 GB, free: 8.766 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006208/0.2851, allocations: 238.5 kB / 0.5551 GB, free: 8.586 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005103/0.2902, allocations: 5.067 MB / 0.5601 GB, free: 3.793 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001669/0.2903, allocations: 269.2 kB / 0.5603 GB, free: 3.52 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000295/0.2906, allocations: 116.4 kB / 0.5604 GB, free: 3.406 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.2908, allocations: 208.4 kB / 0.5606 GB, free: 3.199 MB / 442.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2908, allocations: 0 / 0.5606 GB, free: 3.199 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04001/0.3309, allocations: 24.86 MB / 0.5849 GB, free: 10.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/8.465, allocations: 7.922 kB / 0.5849 GB, free: 10.59 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.636786503717303] Failed to read output from testmodel.py, exit status != 0: 8.567201646976173 8.584673534 8.32105034 Calling exit ...