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.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09076/0.09076, allocations: 15.52 MB / 31.87 MB, free: 3.5 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 107.4 kB / 39.11 MB, free: 1.129 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 208.9 kB / 46.48 MB, free: 2.488 MB / 34.91 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 225.6 MB / 279.3 MB, free: 15.34 MB / 222.1 MB " [Timeout remaining time 178] 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.1417/0.1417, allocations: 23.72 MB / 362.3 MB, free: 0.7773 MB / 270.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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 0.00308/0.00308, allocations: 115.8 kB / 0.4908 GB, free: 25.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1044, allocations: 62.64 MB / 0.552 GB, free: 10.38 MB / 398.1 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.3213/0.4257, allocations: 81.72 MB / 0.6318 GB, free: 12.57 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02357/0.4493, allocations: 22.26 MB / 0.6535 GB, free: 14.82 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000772/0.4501, allocations: 15.94 kB / 0.6535 GB, free: 14.81 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007853/0.4508, allocations: 268.1 kB / 0.6538 GB, free: 14.61 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006464/0.4573, allocations: 2.485 MB / 0.6562 GB, free: 12.57 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005812/0.4631, allocations: 2.077 MB / 0.6583 GB, free: 10.8 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001774/0.4649, allocations: 1.333 MB / 0.6596 GB, free: 9.469 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005652/0.4655, allocations: 388.7 kB / 0.6599 GB, free: 9.082 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002396/0.4679, allocations: 1.147 MB / 0.661 GB, free: 7.93 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009394/0.4688, allocations: 0.572 MB / 0.6616 GB, free: 7.355 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.74e-05/0.4689, allocations: 56 kB / 0.6617 GB, free: 7.301 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005117/0.474, allocations: 1.93 MB / 0.6635 GB, free: 5.367 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002078/0.4742, allocations: 171.4 kB / 0.6637 GB, free: 5.199 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003877/0.4746, allocations: 322.6 kB / 0.664 GB, free: 4.883 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005067/0.4797, allocations: 2.417 MB / 0.6664 GB, free: 2.457 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.4797, allocations: 4 kB / 0.6664 GB, free: 2.453 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4797, allocations: 0 / 0.6664 GB, free: 2.453 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.467e-06/0.4797, allocations: 0 / 0.6664 GB, free: 2.453 MB / 462.1 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.002119/0.4818, allocations: 1.128 MB / 0.6675 GB, free: 1.273 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.4818, allocations: 8.031 kB / 0.6675 GB, free: 1.266 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.482, allocations: 82.52 kB / 0.6676 GB, free: 1.176 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.4821, allocations: 63.62 kB / 0.6676 GB, free: 1.113 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006816/0.4828, allocations: 438.5 kB / 0.668 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/0.4828, allocations: 37 kB / 0.6681 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.806e-05/0.4829, allocations: 40 kB / 0.6681 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009545/0.4839, allocations: 0.5396 MB / 0.6686 GB, free: 4 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.4839, allocations: 0 / 0.6686 GB, free: 4 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.401e-05/0.4839, allocations: 16.08 kB / 0.6687 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.484, allocations: 12 kB / 0.6687 GB, free: 15.97 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009733/0.4849, allocations: 0.4996 MB / 0.6692 GB, free: 15.47 MB / 478.1 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.003269/0.4882, allocations: 2.47 MB / 0.6716 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007758/0.489, allocations: 397.6 kB / 0.6719 GB, free: 12.36 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004894/0.4895, allocations: 236.7 kB / 0.6722 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001537/0.491, allocations: 1.138 MB / 0.6733 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000478/0.4915, allocations: 245.2 kB / 0.6735 GB, free: 10.63 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002095/0.4917, allocations: 51.77 kB / 0.6736 GB, free: 10.58 MB / 478.1 MB Notification: Performance of pre-optimization done (n=41): time 2.204e-06/0.4917, allocations: 0 / 0.6736 GB, free: 10.58 MB / 478.1 MB Notification: Performance of matching and sorting (n=41): time 0.001734/0.4934, allocations: 0.8198 MB / 0.6744 GB, free: 9.715 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.4935, allocations: 55.73 kB / 0.6744 GB, free: 9.648 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004644/0.4939, allocations: 401.6 kB / 0.6748 GB, free: 9.25 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.494, allocations: 29.7 kB / 0.6748 GB, free: 9.215 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.4942, allocations: 260.5 kB / 0.6751 GB, free: 8.957 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.4943, allocations: 142.8 kB / 0.6752 GB, free: 8.816 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.4945, allocations: 90.23 kB / 0.6753 GB, free: 8.723 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.4946, allocations: 358.8 kB / 0.6756 GB, free: 8.363 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003685/0.495, allocations: 185 kB / 0.6758 GB, free: 8.184 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004581/0.4954, allocations: 267.4 kB / 0.6761 GB, free: 7.887 MB / 478.1 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.004155/0.4996, allocations: 1.323 MB / 0.6774 GB, free: 6.512 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/0.4996, allocations: 8 kB / 0.6774 GB, free: 6.504 MB / 478.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001207/0.5008, allocations: 0.5949 MB / 0.678 GB, free: 5.898 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.5008, allocations: 8 kB / 0.678 GB, free: 5.891 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.5008, allocations: 7.875 kB / 0.678 GB, free: 5.883 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002324/0.5011, allocations: 77.67 kB / 0.678 GB, free: 5.801 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.5015, allocations: 100 kB / 0.6781 GB, free: 5.703 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008085/0.5023, allocations: 1.113 MB / 0.6792 GB, free: 4.539 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.5027, allocations: 27.94 kB / 0.6793 GB, free: 4.512 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.805e-05/0.5027, allocations: 20.14 kB / 0.6793 GB, free: 4.492 MB / 478.1 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.0002474/0.503, allocations: 186.5 kB / 0.6795 GB, free: 4.305 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.267e-05/0.5031, allocations: 43.72 kB / 0.6795 GB, free: 4.262 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.5043, allocations: 0.5838 MB / 0.6801 GB, free: 3.66 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.5043, allocations: 11.98 kB / 0.6801 GB, free: 3.648 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.5043, allocations: 0 / 0.6801 GB, free: 3.648 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.5043, allocations: 3.938 kB / 0.6801 GB, free: 3.645 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001865/0.5062, allocations: 1.126 MB / 0.6812 GB, free: 2.453 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.5062, allocations: 0 / 0.6812 GB, free: 2.453 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.5065, allocations: 63.95 kB / 0.6812 GB, free: 2.391 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001946/0.5067, allocations: 81.64 kB / 0.6813 GB, free: 2.305 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.5067, allocations: 11.98 kB / 0.6813 GB, free: 2.293 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008355/0.5076, allocations: 1.116 MB / 0.6824 GB, free: 1.125 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.5076, allocations: 0 / 0.6824 GB, free: 1.125 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.509, allocations: 0.7956 MB / 0.6832 GB, free: 312 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.5092, allocations: 164.8 kB / 0.6834 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.99e-05/0.5093, allocations: 15.88 kB / 0.6834 GB, free: 112 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.5096, allocations: 19.98 kB / 0.6834 GB, free: 92 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.5097, allocations: 31.95 kB / 0.6834 GB, free: 60 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.5097, allocations: 19.98 kB / 0.6834 GB, free: 40 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00035/0.5101, allocations: 287.2 kB / 0.6837 GB, free: 15.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5101, allocations: 0 / 0.6837 GB, free: 15.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001392/0.5115, allocations: 0.58 MB / 0.6843 GB, free: 15.17 MB / 494.1 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.003214/0.5147, allocations: 2.149 MB / 0.6864 GB, free: 12.98 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.5157, allocations: 431.7 kB / 0.6868 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5157, allocations: 0 / 0.6868 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004722/0.5162, allocations: 227.5 kB / 0.687 GB, free: 12.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.5172, allocations: 225 kB / 0.6872 GB, free: 12.13 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007016/0.5242, allocations: 4.711 MB / 0.6918 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/0.5247, allocations: 0.8469 MB / 0.6926 GB, free: 6.371 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003727/0.5251, allocations: 108.2 kB / 0.6928 GB, free: 6.262 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/0.5253, allocations: 175.3 kB / 0.6929 GB, free: 6.09 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5254, allocations: 7.938 kB / 0.6929 GB, free: 6.082 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0603/0.5857, allocations: 25.01 MB / 0.7174 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/15.38, allocations: 14.2 kB / 0.7174 GB, free: 13.19 MB / 0.5137 GB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 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: 22.724945751950145] Failed to read output from testmodel.py, exit status != 0: 15.49719513580203 15.511687091 15.02904054 Calling exit ...