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.06527/0.06527, allocations: 11.15 MB / 30.25 MB, free: 5.074 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.0008634/0.0008634, allocations: 91.61 kB / 37.83 MB, free: 7.469 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.001092/0.001092, allocations: 160.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.9/0.9, allocations: 177.2 MB / 230.2 MB, free: 6.562 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.2059/0.2059, allocations: 17.62 MB / 308.7 MB, free: 1.75 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 1.724e-06/1.724e-06, allocations: 0 / 453.1 MB, free: 6.039 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.401e-05/2.573e-05, allocations: 2.281 kB / 453.1 MB, free: 6.035 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.2234/0.2234, allocations: 64.29 MB / 0.5053 GB, free: 18.11 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.008942/0.2324, allocations: 13.83 MB / 0.5188 GB, free: 8.773 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004126/0.2328, allocations: 17.16 kB / 0.5188 GB, free: 8.766 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005174/0.2333, allocations: 213.2 kB / 0.519 GB, free: 8.637 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003548/0.2368, allocations: 2.327 MB / 0.5213 GB, free: 7.277 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001925/0.2388, allocations: 1.202 MB / 0.5224 GB, free: 6.551 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006345/0.2394, allocations: 1.092 MB / 0.5235 GB, free: 5.57 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.2397, allocations: 257.7 kB / 0.5238 GB, free: 5.375 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.2409, allocations: 1.168 MB / 0.5249 GB, free: 4.418 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.2413, allocations: 373.8 kB / 0.5253 GB, free: 4.137 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.862e-05/0.2413, allocations: 40 kB / 0.5253 GB, free: 4.098 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001746/0.2431, allocations: 1.409 MB / 0.5267 GB, free: 2.859 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.972e-05/0.2432, allocations: 131.2 kB / 0.5268 GB, free: 2.758 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.2433, allocations: 185 kB / 0.527 GB, free: 2.594 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001649/0.2449, allocations: 2.06 MB / 0.529 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2449, allocations: 4 kB / 0.529 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2449, allocations: 0 / 0.529 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2449, allocations: 0 / 0.529 GB, free: 0.8867 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.001021/0.246, allocations: 0.9145 MB / 0.5299 GB, free: 16 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.246, allocations: 16.03 kB / 0.5299 GB, free: 0 / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.921e-05/0.2461, allocations: 66.67 kB / 0.53 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.674e-05/0.2461, allocations: 51.66 kB / 0.53 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.2466, allocations: 330.5 kB / 0.5303 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.2466, allocations: 33.27 kB / 0.5304 GB, free: 15.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.2466, allocations: 28.7 kB / 0.5304 GB, free: 15.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005378/0.2472, allocations: 428.8 kB / 0.5308 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2472, allocations: 0 / 0.5308 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.2472, allocations: 12.7 kB / 0.5308 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2472, allocations: 11.94 kB / 0.5308 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004485/0.2477, allocations: 334.2 kB / 0.5311 GB, free: 14.84 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.001558/0.2492, allocations: 1.326 MB / 0.5324 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003977/0.2496, allocations: 298.5 kB / 0.5327 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/0.2498, allocations: 141.8 kB / 0.5328 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006736/0.2505, allocations: 0.5847 MB / 0.5334 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002497/0.2507, allocations: 220 kB / 0.5336 GB, free: 12.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 1.512e-06/0.2507, allocations: 0 / 0.5336 GB, free: 12.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007722/0.2515, allocations: 484.1 kB / 0.5341 GB, free: 12.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.2515, allocations: 56.2 kB / 0.5341 GB, free: 12.03 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.2519, allocations: 384.9 kB / 0.5345 GB, free: 11.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.2519, allocations: 38.5 kB / 0.5345 GB, free: 11.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.252, allocations: 223.6 kB / 0.5348 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.556e-05/0.2521, allocations: 107.4 kB / 0.5349 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.13e-05/0.2522, allocations: 79.69 kB / 0.5349 GB, free: 11.26 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.2523, allocations: 347.1 kB / 0.5353 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/0.2524, allocations: 133.7 kB / 0.5354 GB, free: 10.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.2527, allocations: 225.5 kB / 0.5356 GB, free: 10.59 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.001254/0.2539, allocations: 0.819 MB / 0.5364 GB, free: 9.852 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2539, allocations: 0 / 0.5364 GB, free: 9.852 MB / 426.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005865/0.2545, allocations: 471.5 kB / 0.5369 GB, free: 9.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2545, allocations: 11.94 kB / 0.5369 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2545, allocations: 0 / 0.5369 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001047/0.2546, allocations: 41.67 kB / 0.5369 GB, free: 9.379 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.2548, allocations: 75.56 kB / 0.537 GB, free: 9.316 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002895/0.2551, allocations: 0.5473 MB / 0.5375 GB, free: 8.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.2553, allocations: 46.48 kB / 0.5376 GB, free: 8.711 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.2553, allocations: 14.16 kB / 0.5376 GB, free: 8.699 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.0001522/0.2555, allocations: 172 kB / 0.5377 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.242e-05/0.2555, allocations: 48.89 kB / 0.5378 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006196/0.2561, allocations: 415.5 kB / 0.5382 GB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2561, allocations: 4.641 kB / 0.5382 GB, free: 8.117 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2561, allocations: 4 kB / 0.5382 GB, free: 8.113 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2561, allocations: 1.312 kB / 0.5382 GB, free: 8.113 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009958/0.2571, allocations: 0.8127 MB / 0.539 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2571, allocations: 0.6562 kB / 0.539 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001349/0.2573, allocations: 43.77 kB / 0.539 GB, free: 7.316 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.17e-05/0.2573, allocations: 34.11 kB / 0.5391 GB, free: 7.285 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.2574, allocations: 14.44 kB / 0.5391 GB, free: 7.273 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002073/0.2576, allocations: 0.5379 MB / 0.5396 GB, free: 6.719 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2576, allocations: 4.031 kB / 0.5396 GB, free: 6.715 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006255/0.2582, allocations: 0.5998 MB / 0.5402 GB, free: 6.152 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.459e-05/0.2583, allocations: 68.88 kB / 0.5403 GB, free: 6.098 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.2583, allocations: 4 kB / 0.5403 GB, free: 6.094 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.2585, allocations: 12.73 kB / 0.5403 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.221e-05/0.2585, allocations: 30.81 kB / 0.5403 GB, free: 6.066 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.2585, allocations: 11.09 kB / 0.5403 GB, free: 6.059 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001965/0.2587, allocations: 276 kB / 0.5406 GB, free: 5.824 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2587, allocations: 4 kB / 0.5406 GB, free: 5.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009244/0.2597, allocations: 497.8 kB / 0.5411 GB, free: 5.348 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.001739/0.2614, allocations: 1.852 MB / 0.5429 GB, free: 3.605 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004972/0.2619, allocations: 331.2 kB / 0.5432 GB, free: 3.324 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.2619, allocations: 4 kB / 0.5432 GB, free: 3.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.2621, allocations: 145.6 kB / 0.5433 GB, free: 3.199 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005877/0.2627, allocations: 201.5 kB / 0.5435 GB, free: 3.047 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004072/0.2668, allocations: 3.953 MB / 0.5474 GB, free: 15.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/0.2669, allocations: 212.6 kB / 0.5476 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000213/0.2671, allocations: 82.97 kB / 0.5477 GB, free: 15.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.2673, allocations: 140.7 kB / 0.5478 GB, free: 14.93 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2673, allocations: 0 / 0.5478 GB, free: 14.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03256/0.2998, allocations: 22.76 MB / 0.57 GB, free: 10.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.313/8.613, allocations: 18.55 kB / 0.57 GB, free: 10.03 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 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.604576447047293] Failed to read output from testmodel.py, exit status != 0: 8.712677926756442 8.72220015 8.474400153 Calling exit ...