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.1169/0.1169, allocations: 15.28 MB / 30.91 MB, free: 4.137 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.00109/0.00109, allocations: 105.9 kB / 35.91 MB, free: 3.199 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.001325/0.001325, allocations: 194.1 kB / 41.02 MB, free: 7.141 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.536/1.536, allocations: 222.9 MB / 268.9 MB, free: 6.891 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1528/0.1528, allocations: 23.36 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 111.8 kB / 478.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3637, allocations: 59.36 MB / 0.5256 GB, free: 8.082 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.07877/0.4425, allocations: 68.03 MB / 0.592 GB, free: 404 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01652/0.459, allocations: 15.49 MB / 0.6071 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007965/0.4599, allocations: 15.94 kB / 0.6072 GB, free: 0.832 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006669/0.4605, allocations: 194.5 kB / 0.6073 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006131/0.4667, allocations: 2.224 MB / 0.6095 GB, free: 14.4 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003403/0.4701, allocations: 1.13 MB / 0.6106 GB, free: 13.26 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001601/0.4717, allocations: 1.114 MB / 0.6117 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004614/0.4722, allocations: 322.4 kB / 0.612 GB, free: 11.82 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002242/0.4745, allocations: 1.03 MB / 0.613 GB, free: 10.79 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005452/0.475, allocations: 398.4 kB / 0.6134 GB, free: 10.39 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.32e-05/0.4751, allocations: 36 kB / 0.6134 GB, free: 10.36 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005005/0.4801, allocations: 1.575 MB / 0.615 GB, free: 8.781 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.4803, allocations: 119.6 kB / 0.6151 GB, free: 8.664 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003393/0.4806, allocations: 258.8 kB / 0.6153 GB, free: 8.41 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004959/0.4856, allocations: 2.021 MB / 0.6173 GB, free: 6.383 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4856, allocations: 3.984 kB / 0.6173 GB, free: 6.379 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4856, allocations: 4 kB / 0.6173 GB, free: 6.375 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.4857, allocations: 0 / 0.6173 GB, free: 6.375 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.001828/0.4875, allocations: 0.963 MB / 0.6183 GB, free: 5.363 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.4876, allocations: 12.03 kB / 0.6183 GB, free: 5.352 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.4877, allocations: 55.31 kB / 0.6183 GB, free: 5.297 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005595/0.4883, allocations: 381.9 kB / 0.6187 GB, free: 4.883 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.4883, allocations: 28.66 kB / 0.6187 GB, free: 4.855 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.954e-05/0.4884, allocations: 35.98 kB / 0.6188 GB, free: 4.82 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000706/0.4891, allocations: 391.6 kB / 0.6191 GB, free: 4.418 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.4891, allocations: 7.922 kB / 0.6191 GB, free: 4.41 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.4892, allocations: 15.98 kB / 0.6191 GB, free: 4.395 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.4892, allocations: 16 kB / 0.6192 GB, free: 4.379 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006513/0.4898, allocations: 342.3 kB / 0.6195 GB, free: 4.043 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.002454/0.4923, allocations: 2.027 MB / 0.6215 GB, free: 1.801 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.4929, allocations: 322.4 kB / 0.6218 GB, free: 1.477 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/0.4932, allocations: 156.8 kB / 0.6219 GB, free: 1.32 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/0.4943, allocations: 0.9657 MB / 0.6229 GB, free: 260 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003581/0.4947, allocations: 179.3 kB / 0.623 GB, free: 68 kB / 462.1 MB Notification: Performance of pre-optimization done (n=31): time 2.174e-06/0.4947, allocations: 7.938 kB / 0.623 GB, free: 60 kB / 462.1 MB Notification: Performance of matching and sorting (n=31): time 0.001187/0.4959, allocations: 0.5426 MB / 0.6236 GB, free: 15.49 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.496, allocations: 59.39 kB / 0.6236 GB, free: 15.42 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004036/0.4964, allocations: 377.6 kB / 0.624 GB, free: 15.04 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.4964, allocations: 33.7 kB / 0.624 GB, free: 15 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.4966, allocations: 224 kB / 0.6242 GB, free: 14.78 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.453e-05/0.4967, allocations: 110.5 kB / 0.6243 GB, free: 14.67 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.4968, allocations: 78.12 kB / 0.6244 GB, free: 14.59 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.497, allocations: 346.8 kB / 0.6247 GB, free: 14.24 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002985/0.4973, allocations: 136.8 kB / 0.6249 GB, free: 14.11 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/0.4977, allocations: 221.7 kB / 0.6251 GB, free: 13.86 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.002187/0.4999, allocations: 0.8769 MB / 0.6259 GB, free: 12.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4999, allocations: 4 kB / 0.626 GB, free: 12.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001001/0.5009, allocations: 469.8 kB / 0.6264 GB, free: 12.45 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.5009, allocations: 4 kB / 0.6264 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.501, allocations: 4 kB / 0.6264 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000184/0.5011, allocations: 33.16 kB / 0.6264 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003599/0.5015, allocations: 79.89 kB / 0.6265 GB, free: 12.33 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004832/0.502, allocations: 0.5484 MB / 0.6271 GB, free: 11.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.5023, allocations: 47.52 kB / 0.6271 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-05/0.5024, allocations: 16 kB / 0.6271 GB, free: 11.7 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.0002364/0.5026, allocations: 166.8 kB / 0.6273 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.108e-05/0.5027, allocations: 43.52 kB / 0.6273 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000928/0.5036, allocations: 412.8 kB / 0.6277 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.5037, allocations: 11.88 kB / 0.6277 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.5037, allocations: 3.984 kB / 0.6277 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.5037, allocations: 0 / 0.6277 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.5051, allocations: 0.867 MB / 0.6286 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.5051, allocations: 7.969 kB / 0.6286 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/0.5053, allocations: 43.97 kB / 0.6286 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.113e-05/0.5054, allocations: 36.77 kB / 0.6287 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.5055, allocations: 11.98 kB / 0.6287 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000351/0.5058, allocations: 0.5368 MB / 0.6292 GB, free: 9.445 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.5058, allocations: 3.938 kB / 0.6292 GB, free: 9.441 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009836/0.5068, allocations: 0.5837 MB / 0.6298 GB, free: 8.836 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.507, allocations: 152.6 kB / 0.6299 GB, free: 8.668 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.581e-05/0.5071, allocations: 11.92 kB / 0.6299 GB, free: 8.656 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.5073, allocations: 20.05 kB / 0.6299 GB, free: 8.637 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.289e-05/0.5074, allocations: 23.97 kB / 0.63 GB, free: 8.613 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.5074, allocations: 8 kB / 0.63 GB, free: 8.605 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003065/0.5077, allocations: 275.1 kB / 0.6302 GB, free: 8.344 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5078, allocations: 0 / 0.6302 GB, free: 8.344 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001378/0.5091, allocations: 483.4 kB / 0.6307 GB, free: 7.871 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.001383/0.5105, allocations: 0.7949 MB / 0.6315 GB, free: 7.066 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007819/0.5113, allocations: 343.6 kB / 0.6318 GB, free: 6.73 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5113, allocations: 0.625 kB / 0.6318 GB, free: 6.73 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003192/0.5117, allocations: 151.9 kB / 0.6319 GB, free: 6.582 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009287/0.5126, allocations: 181.2 kB / 0.6321 GB, free: 6.402 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.5141, allocations: 0.8527 MB / 0.6329 GB, free: 5.52 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.5145, allocations: 0.8192 MB / 0.6337 GB, free: 4.672 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002639/0.5147, allocations: 83.3 kB / 0.6338 GB, free: 4.586 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.5148, allocations: 47.41 kB / 0.6339 GB, free: 4.539 MB / 478.1 MB Notification: Performance of SimCode: time 5.72e-07/0.5148, allocations: 0 / 0.6339 GB, free: 4.539 MB / 478.1 MB Notification: Performance of Templates: time 0.02486/0.5397, allocations: 16.8 MB / 0.6503 GB, free: 3.797 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)