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.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) 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: translateModel(Physiolibrary.Fluid.Examples.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1403/0.1403, allocations: 15.28 MB / 30.92 MB, free: 4.125 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 107.2 kB / 35.92 MB, free: 3.184 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 193.1 kB / 41.02 MB, free: 7.125 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 268.9 MB, free: 7.012 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.138/0.138, allocations: 23.35 MB / 346.6 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 111.8 kB / 478.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3067, allocations: 59.36 MB / 0.5256 GB, free: 8.102 MB / 382.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_2element): time 0.07876/0.3855, allocations: 68.13 MB / 0.5921 GB, free: 344 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0176/0.4031, allocations: 15.49 MB / 0.6072 GB, free: 0.793 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009108/0.404, allocations: 15.88 kB / 0.6073 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008051/0.4049, allocations: 206.5 kB / 0.6075 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006987/0.4119, allocations: 2.22 MB / 0.6096 GB, free: 14.34 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003529/0.4154, allocations: 1.131 MB / 0.6107 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001793/0.4172, allocations: 1.098 MB / 0.6118 GB, free: 12.1 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004912/0.4178, allocations: 330.4 kB / 0.6121 GB, free: 11.77 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.4199, allocations: 1.022 MB / 0.6131 GB, free: 10.74 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006846/0.4206, allocations: 414.4 kB / 0.6135 GB, free: 10.33 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.503e-05/0.4207, allocations: 36 kB / 0.6135 GB, free: 10.3 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004206/0.4249, allocations: 1.564 MB / 0.6151 GB, free: 8.73 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.4251, allocations: 123.6 kB / 0.6152 GB, free: 8.609 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002761/0.4254, allocations: 258.9 kB / 0.6154 GB, free: 8.355 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003867/0.4292, allocations: 2.028 MB / 0.6174 GB, free: 6.32 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.4293, allocations: 0 / 0.6174 GB, free: 6.32 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.4293, allocations: 0 / 0.6174 GB, free: 6.32 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.4293, allocations: 0 / 0.6174 GB, free: 6.32 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001644/0.4309, allocations: 0.9962 MB / 0.6184 GB, free: 5.273 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.431, allocations: 8.031 kB / 0.6184 GB, free: 5.266 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.4311, allocations: 51.66 kB / 0.6184 GB, free: 5.215 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004999/0.4316, allocations: 402 kB / 0.6188 GB, free: 4.781 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.4316, allocations: 24.64 kB / 0.6188 GB, free: 4.758 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.54e-05/0.4317, allocations: 36 kB / 0.6189 GB, free: 4.723 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006938/0.4324, allocations: 399.5 kB / 0.6193 GB, free: 4.312 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.4324, allocations: 0 / 0.6193 GB, free: 4.312 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.504e-05/0.4325, allocations: 16 kB / 0.6193 GB, free: 4.297 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.4325, allocations: 8 kB / 0.6193 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006523/0.4331, allocations: 342.3 kB / 0.6196 GB, free: 3.953 MB / 462.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.002446/0.4356, allocations: 2.043 MB / 0.6216 GB, free: 1.695 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006029/0.4362, allocations: 329.7 kB / 0.6219 GB, free: 1.367 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002855/0.4365, allocations: 156.8 kB / 0.6221 GB, free: 1.211 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001103/0.4376, allocations: 0.9542 MB / 0.623 GB, free: 160 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003592/0.438, allocations: 187.2 kB / 0.6232 GB, free: 15.96 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.438, allocations: 7.938 kB / 0.6232 GB, free: 15.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.00116/0.4392, allocations: 0.5389 MB / 0.6237 GB, free: 15.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.4392, allocations: 55.41 kB / 0.6238 GB, free: 15.32 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004119/0.4397, allocations: 381.6 kB / 0.6241 GB, free: 14.94 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.4397, allocations: 29.7 kB / 0.6242 GB, free: 14.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.4399, allocations: 228.4 kB / 0.6244 GB, free: 14.68 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.152e-05/0.44, allocations: 111 kB / 0.6245 GB, free: 14.57 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.4401, allocations: 82.08 kB / 0.6246 GB, free: 14.48 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4403, allocations: 350.8 kB / 0.6249 GB, free: 14.13 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.4405, allocations: 136.8 kB / 0.625 GB, free: 14 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.4409, allocations: 213.7 kB / 0.6252 GB, free: 13.75 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.002012/0.4429, allocations: 0.877 MB / 0.6261 GB, free: 12.82 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.4429, allocations: 7.938 kB / 0.6261 GB, free: 12.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009483/0.4439, allocations: 462.2 kB / 0.6265 GB, free: 12.36 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.4439, allocations: 4 kB / 0.6265 GB, free: 12.35 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.4439, allocations: 7.984 kB / 0.6265 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001317/0.444, allocations: 36.78 kB / 0.6266 GB, free: 12.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003222/0.4444, allocations: 76.17 kB / 0.6267 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003732/0.4448, allocations: 0.5523 MB / 0.6272 GB, free: 11.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.4451, allocations: 51.59 kB / 0.6272 GB, free: 11.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.4451, allocations: 19.98 kB / 0.6273 GB, free: 11.58 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 (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.000187/0.4453, allocations: 162.8 kB / 0.6274 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.129e-05/0.4454, allocations: 39.77 kB / 0.6275 GB, free: 11.38 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008468/0.4462, allocations: 424.6 kB / 0.6279 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.4462, allocations: 7.938 kB / 0.6279 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.4463, allocations: 0 / 0.6279 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4463, allocations: 7.984 kB / 0.6279 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.4476, allocations: 0.871 MB / 0.6287 GB, free: 9.988 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4476, allocations: 0 / 0.6287 GB, free: 9.988 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.4479, allocations: 43.91 kB / 0.6288 GB, free: 9.945 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.892e-05/0.448, allocations: 32.88 kB / 0.6288 GB, free: 9.91 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.448, allocations: 19.92 kB / 0.6288 GB, free: 9.891 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00035/0.4484, allocations: 0.5445 MB / 0.6294 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4484, allocations: 3.938 kB / 0.6294 GB, free: 9.316 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009969/0.4494, allocations: 0.588 MB / 0.6299 GB, free: 8.707 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001588/0.4496, allocations: 144.8 kB / 0.6301 GB, free: 8.547 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.32e-05/0.4496, allocations: 11.89 kB / 0.6301 GB, free: 8.535 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.4499, allocations: 19.92 kB / 0.6301 GB, free: 8.516 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.45, allocations: 23.97 kB / 0.6301 GB, free: 8.492 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.45, allocations: 16.05 kB / 0.6301 GB, free: 8.477 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002753/0.4503, allocations: 275.2 kB / 0.6304 GB, free: 8.215 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4503, allocations: 0 / 0.6304 GB, free: 8.215 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00114/0.4514, allocations: 498.3 kB / 0.6309 GB, free: 7.727 MB / 478.1 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.001462/0.4529, allocations: 0.7822 MB / 0.6316 GB, free: 6.934 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007671/0.4537, allocations: 347.6 kB / 0.632 GB, free: 6.594 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4537, allocations: 3.938 kB / 0.632 GB, free: 6.59 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003286/0.454, allocations: 152.5 kB / 0.6321 GB, free: 6.441 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009231/0.455, allocations: 197.1 kB / 0.6323 GB, free: 6.246 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.4564, allocations: 0.8363 MB / 0.6331 GB, free: 5.379 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.4567, allocations: 0.8152 MB / 0.6339 GB, free: 4.535 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002702/0.457, allocations: 91.22 kB / 0.634 GB, free: 4.441 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.981e-05/0.4571, allocations: 47.36 kB / 0.6341 GB, free: 4.395 MB / 478.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4571, allocations: 4 kB / 0.6341 GB, free: 4.391 MB / 478.1 MB Notification: Performance of Templates: time 0.02433/0.4815, allocations: 16.61 MB / 0.6503 GB, free: 3.84 MB / 494.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)