Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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.06109/0.06109, allocations: 11.16 MB / 30.25 MB, free: 5.066 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.0008187/0.0008187, allocations: 92.19 kB / 37.83 MB, free: 7.473 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.001094/0.001094, allocations: 156.7 kB / 45.51 MB, free: 10.91 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.8782/0.8782, allocations: 177.1 MB / 230.2 MB, free: 6.566 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.2034/0.2034, allocations: 17.61 MB / 308.7 MB, free: 1.727 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.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.355e-06/2.355e-06, allocations: 0 / 453.1 MB, free: 6.02 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.967e-05/2.202e-05, allocations: 6.281 kB / 453.1 MB, free: 6.012 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707: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:707:7-707: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.Windkessel_4element): time 0.1977/0.1978, allocations: 75.35 MB / 0.5161 GB, free: 10.64 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.2094, allocations: 19.8 MB / 0.5354 GB, free: 10.17 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004406/0.2098, allocations: 23.81 kB / 0.5354 GB, free: 10.14 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006343/0.2105, allocations: 268.7 kB / 0.5357 GB, free: 9.945 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004568/0.215, allocations: 2.563 MB / 0.5382 GB, free: 7.832 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003995/0.219, allocations: 2.169 MB / 0.5403 GB, free: 6.066 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.2203, allocations: 1.366 MB / 0.5416 GB, free: 4.84 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004881/0.2208, allocations: 375.8 kB / 0.542 GB, free: 4.562 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001926/0.2228, allocations: 1.326 MB / 0.5433 GB, free: 3.477 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006801/0.2234, allocations: 0.4903 MB / 0.5438 GB, free: 3.098 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 7.172e-05/0.2235, allocations: 59.94 kB / 0.5438 GB, free: 3.039 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003334/0.2268, allocations: 1.617 MB / 0.5454 GB, free: 1.625 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.227, allocations: 183.9 kB / 0.5456 GB, free: 1.48 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.2272, allocations: 243.4 kB / 0.5458 GB, free: 1.266 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002648/0.2299, allocations: 2.453 MB / 0.5482 GB, free: 15.28 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2299, allocations: 4.703 kB / 0.5482 GB, free: 15.27 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2299, allocations: 0 / 0.5482 GB, free: 15.27 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.2299, allocations: 0 / 0.5482 GB, free: 15.27 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.0014/0.2313, allocations: 1.043 MB / 0.5492 GB, free: 14.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2313, allocations: 12.73 kB / 0.5492 GB, free: 14.28 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.39e-05/0.2314, allocations: 84.95 kB / 0.5493 GB, free: 14.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.75e-05/0.2315, allocations: 59.62 kB / 0.5494 GB, free: 14.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.2319, allocations: 360.9 kB / 0.5497 GB, free: 13.81 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.232, allocations: 37 kB / 0.5498 GB, free: 13.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.232, allocations: 44.78 kB / 0.5498 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006854/0.2327, allocations: 0.5659 MB / 0.5504 GB, free: 13.24 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.2327, allocations: 0.5625 kB / 0.5504 GB, free: 13.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.2328, allocations: 16 kB / 0.5504 GB, free: 13.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.2328, allocations: 12.61 kB / 0.5504 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006506/0.2334, allocations: 0.5025 MB / 0.5509 GB, free: 12.79 MB / 442.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.001899/0.2353, allocations: 1.598 MB / 0.5524 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004971/0.2358, allocations: 394.4 kB / 0.5528 GB, free: 11.01 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.2361, allocations: 249 kB / 0.553 GB, free: 10.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009213/0.2371, allocations: 0.7297 MB / 0.5538 GB, free: 10.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003147/0.2374, allocations: 281.5 kB / 0.554 GB, free: 9.902 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001135/0.2375, allocations: 51.66 kB / 0.5541 GB, free: 9.855 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 1.623e-06/0.2375, allocations: 0 / 0.5541 GB, free: 9.855 MB / 442.7 MB Notification: Performance of matching and sorting (n=41): time 0.001005/0.2385, allocations: 0.6729 MB / 0.5547 GB, free: 9.258 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.2385, allocations: 65.73 kB / 0.5548 GB, free: 9.184 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.2388, allocations: 399.2 kB / 0.5552 GB, free: 8.828 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.2389, allocations: 33.7 kB / 0.5552 GB, free: 8.789 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.239, allocations: 252.5 kB / 0.5555 GB, free: 8.559 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.633e-05/0.239, allocations: 148 kB / 0.5556 GB, free: 8.422 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.514e-05/0.2391, allocations: 97.03 kB / 0.5557 GB, free: 8.336 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.798e-05/0.2392, allocations: 356.9 kB / 0.556 GB, free: 7.992 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.2395, allocations: 177 kB / 0.5562 GB, free: 7.848 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/0.2397, allocations: 275.2 kB / 0.5565 GB, free: 7.578 MB / 442.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) Notification: Performance of analyzeInitialSystem (initialization): time 0.002429/0.2421, allocations: 1.253 MB / 0.5577 GB, free: 6.512 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2421, allocations: 0 / 0.5577 GB, free: 6.512 MB / 442.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007184/0.2429, allocations: 0.6053 MB / 0.5583 GB, free: 5.961 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2429, allocations: 11.88 kB / 0.5583 GB, free: 5.949 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.2429, allocations: 8 kB / 0.5583 GB, free: 5.941 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001431/0.243, allocations: 71.27 kB / 0.5584 GB, free: 5.879 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.2433, allocations: 100.7 kB / 0.5585 GB, free: 5.797 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004626/0.2437, allocations: 1.118 MB / 0.5595 GB, free: 4.648 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.2439, allocations: 23.97 kB / 0.5596 GB, free: 4.629 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.2439, allocations: 27.03 kB / 0.5596 GB, free: 4.605 MB / 442.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.pulses.TD2,$PRE.pulses.HP,$PRE.pulses.T0,pulses.TD2,pulses.HP,pulses.b,pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.2441, allocations: 171.9 kB / 0.5598 GB, free: 4.434 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/0.2441, allocations: 51.67 kB / 0.5598 GB, free: 4.383 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007161/0.2448, allocations: 0.5934 MB / 0.5604 GB, free: 3.859 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.2448, allocations: 8 kB / 0.5604 GB, free: 3.852 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2448, allocations: 0 / 0.5604 GB, free: 3.852 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.2449, allocations: 0 / 0.5604 GB, free: 3.852 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.2459, allocations: 1.048 MB / 0.5614 GB, free: 2.742 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2459, allocations: 0 / 0.5614 GB, free: 2.742 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.2461, allocations: 67.89 kB / 0.5615 GB, free: 2.676 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001053/0.2462, allocations: 73.67 kB / 0.5616 GB, free: 2.598 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.2462, allocations: 11.98 kB / 0.5616 GB, free: 2.586 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003967/0.2466, allocations: 1.116 MB / 0.5627 GB, free: 1.418 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2466, allocations: 0 / 0.5627 GB, free: 1.418 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008238/0.2475, allocations: 0.8088 MB / 0.5634 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.2476, allocations: 87.7 kB / 0.5635 GB, free: 0.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.2476, allocations: 8 kB / 0.5635 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.2478, allocations: 28.06 kB / 0.5636 GB, free: 476 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/0.2478, allocations: 35.94 kB / 0.5636 GB, free: 440 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.2478, allocations: 19.94 kB / 0.5636 GB, free: 420 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001939/0.248, allocations: 283.1 kB / 0.5639 GB, free: 140 kB / 442.7 MB Notification: Performance of sort global known variables: time 6e-08/0.248, allocations: 0 / 0.5639 GB, free: 140 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.00107/0.2491, allocations: 0.5841 MB / 0.5645 GB, free: 15.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.substanceMasses[1],inertia.q_in.m_flow) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001959/0.2511, allocations: 2.19 MB / 0.5666 GB, free: 13.32 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0005965/0.2517, allocations: 442.6 kB / 0.567 GB, free: 12.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2517, allocations: 0 / 0.567 GB, free: 12.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002602/0.2519, allocations: 220.8 kB / 0.5672 GB, free: 12.67 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006114/0.2525, allocations: 227.5 kB / 0.5674 GB, free: 12.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.2569, allocations: 4.627 MB / 0.572 GB, free: 7.652 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.257, allocations: 248.4 kB / 0.5722 GB, free: 7.387 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.000223/0.2573, allocations: 100.3 kB / 0.5723 GB, free: 7.289 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.2574, allocations: 180.3 kB / 0.5725 GB, free: 7.113 MB / 458.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2574, allocations: 4 kB / 0.5725 GB, free: 7.109 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03278/0.2902, allocations: 26.59 MB / 0.5984 GB, free: 12.77 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.518/8.808, allocations: 0 / 0.5984 GB, free: 12.77 MB / 490.7 MB " [Timeout remaining time 651] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.883174365386367] Failed to read output from testmodel.py, exit status != 0: 8.910571526736021 8.919983488 8.687268360000001 Calling exit ...