Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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.06802/0.06802, allocations: 11.16 MB / 30.25 MB, free: 5.082 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.00139/0.00139, allocations: 79.73 kB / 37.82 MB, free: 7.492 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.001115/0.001115, allocations: 168.6 kB / 45.51 MB, free: 10.93 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.913/0.913, allocations: 177.1 MB / 230.2 MB, free: 6.578 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.1978/0.1978, allocations: 17.62 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.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.535e-06/2.535e-06, allocations: 0 / 453.1 MB, free: 6.043 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.386e-05/2.639e-05, allocations: 2.281 kB / 453.1 MB, free: 6.039 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_2element): time 0.2075/0.2075, allocations: 64.29 MB / 0.5053 GB, free: 18.04 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.008665/0.2162, allocations: 13.82 MB / 0.5188 GB, free: 8.699 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003831/0.2166, allocations: 15.66 kB / 0.5188 GB, free: 8.691 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005399/0.2171, allocations: 213.6 kB / 0.519 GB, free: 8.562 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00396/0.2211, allocations: 2.33 MB / 0.5213 GB, free: 7.203 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001892/0.223, allocations: 1.204 MB / 0.5224 GB, free: 6.48 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005811/0.2235, allocations: 1.088 MB / 0.5235 GB, free: 5.504 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002697/0.2238, allocations: 256.5 kB / 0.5237 GB, free: 5.312 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0012/0.225, allocations: 1.171 MB / 0.5249 GB, free: 4.352 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003048/0.2253, allocations: 376.6 kB / 0.5252 GB, free: 4.066 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.088e-05/0.2254, allocations: 39.94 kB / 0.5253 GB, free: 4.027 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.227, allocations: 1.408 MB / 0.5267 GB, free: 2.789 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.746e-05/0.2271, allocations: 134.9 kB / 0.5268 GB, free: 2.684 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.2272, allocations: 184.5 kB / 0.527 GB, free: 2.52 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.2287, allocations: 2.067 MB / 0.529 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2287, allocations: 0 / 0.529 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2287, allocations: 0 / 0.529 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.2287, allocations: 0 / 0.529 GB, free: 0.8125 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001067/0.2298, allocations: 0.9157 MB / 0.5299 GB, free: 15.94 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.2298, allocations: 12.03 kB / 0.5299 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.667e-05/0.2299, allocations: 66.67 kB / 0.53 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.717e-05/0.23, allocations: 51.66 kB / 0.53 GB, free: 15.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004211/0.2304, allocations: 322.7 kB / 0.5303 GB, free: 15.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.2304, allocations: 28.59 kB / 0.5303 GB, free: 15.49 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.2305, allocations: 32.66 kB / 0.5304 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005096/0.231, allocations: 428.9 kB / 0.5308 GB, free: 15.08 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.231, allocations: 0 / 0.5308 GB, free: 15.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.231, allocations: 12.7 kB / 0.5308 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.231, allocations: 8 kB / 0.5308 GB, free: 15.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004526/0.2315, allocations: 334 kB / 0.5311 GB, free: 14.79 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.001605/0.2331, allocations: 1.327 MB / 0.5324 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.2335, allocations: 298.3 kB / 0.5327 GB, free: 13.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.2337, allocations: 145.7 kB / 0.5328 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000663/0.2344, allocations: 0.5881 MB / 0.5334 GB, free: 12.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.2346, allocations: 220.3 kB / 0.5336 GB, free: 12.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.2346, allocations: 0 / 0.5336 GB, free: 12.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008015/0.2354, allocations: 484.7 kB / 0.5341 GB, free: 12.03 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.2355, allocations: 60.19 kB / 0.5341 GB, free: 11.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004505/0.2359, allocations: 384.5 kB / 0.5345 GB, free: 11.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.236, allocations: 33.7 kB / 0.5345 GB, free: 11.58 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.2361, allocations: 220.4 kB / 0.5347 GB, free: 11.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.233e-05/0.2361, allocations: 110.9 kB / 0.5349 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.955e-05/0.2362, allocations: 80.06 kB / 0.5349 GB, free: 11.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.547e-05/0.2363, allocations: 351 kB / 0.5353 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.2365, allocations: 134.4 kB / 0.5354 GB, free: 10.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.2368, allocations: 224.8 kB / 0.5356 GB, free: 10.52 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) Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.238, allocations: 0.8155 MB / 0.5364 GB, free: 9.789 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.238, allocations: 0 / 0.5364 GB, free: 9.789 MB / 426.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005916/0.2386, allocations: 470.8 kB / 0.5369 GB, free: 9.367 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2387, allocations: 12.25 kB / 0.5369 GB, free: 9.355 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.2387, allocations: 4 kB / 0.5369 GB, free: 9.352 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001088/0.2388, allocations: 38.06 kB / 0.5369 GB, free: 9.316 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.239, allocations: 75.59 kB / 0.537 GB, free: 9.254 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002757/0.2393, allocations: 0.5502 MB / 0.5375 GB, free: 8.688 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.2394, allocations: 47.09 kB / 0.5376 GB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.2394, allocations: 13.88 kB / 0.5376 GB, free: 8.633 MB / 426.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 (47): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * 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.0001391/0.2396, allocations: 173.5 kB / 0.5377 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.144e-05/0.2396, allocations: 44.75 kB / 0.5378 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005716/0.2402, allocations: 415.6 kB / 0.5382 GB, free: 8.059 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.2402, allocations: 4.828 kB / 0.5382 GB, free: 8.055 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2402, allocations: 4 kB / 0.5382 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2402, allocations: 1.406 kB / 0.5382 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.2413, allocations: 0.8129 MB / 0.539 GB, free: 7.289 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2414, allocations: 0 / 0.539 GB, free: 7.289 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.2415, allocations: 47.98 kB / 0.539 GB, free: 7.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.931e-05/0.2416, allocations: 34.3 kB / 0.5391 GB, free: 7.219 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.2416, allocations: 9.734 kB / 0.5391 GB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002328/0.2418, allocations: 0.5424 MB / 0.5396 GB, free: 6.652 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.2418, allocations: 4.031 kB / 0.5396 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000684/0.2425, allocations: 0.5953 MB / 0.5402 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.2426, allocations: 64.36 kB / 0.5402 GB, free: 6.039 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.822e-05/0.2426, allocations: 9.5 kB / 0.5403 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/0.2428, allocations: 12.03 kB / 0.5403 GB, free: 6.023 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.956e-05/0.2429, allocations: 31.06 kB / 0.5403 GB, free: 6.004 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.2429, allocations: 14.72 kB / 0.5403 GB, free: 5.992 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000218/0.2431, allocations: 276 kB / 0.5406 GB, free: 5.758 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2431, allocations: 0 / 0.5406 GB, free: 5.758 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006714/0.2438, allocations: 497.1 kB / 0.541 GB, free: 5.285 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.substanceMasses[1]) * 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 (28): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * 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.001757/0.2455, allocations: 1.853 MB / 0.5429 GB, free: 3.543 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005078/0.246, allocations: 332.1 kB / 0.5432 GB, free: 3.262 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.246, allocations: 4.625 kB / 0.5432 GB, free: 3.258 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002031/0.2462, allocations: 144.7 kB / 0.5433 GB, free: 3.137 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005889/0.2468, allocations: 200.6 kB / 0.5435 GB, free: 2.988 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004141/0.251, allocations: 3.953 MB / 0.5474 GB, free: 15.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001572/0.2511, allocations: 212.9 kB / 0.5476 GB, free: 15.04 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002094/0.2513, allocations: 82.64 kB / 0.5476 GB, free: 14.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.2515, allocations: 140.7 kB / 0.5478 GB, free: 14.86 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2515, allocations: 0 / 0.5478 GB, free: 14.86 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0313/0.2828, allocations: 22.76 MB / 0.57 GB, free: 10.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.199/8.482, allocations: 15.16 kB / 0.57 GB, free: 10.05 MB / 458.7 MB " [Timeout remaining time 651] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element_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_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.570300447754562] Failed to read output from testmodel.py, exit status != 0: 8.579700745642185 8.591461646 8.360061189 Calling exit ...