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.1517/0.1517, allocations: 15.28 MB / 30.91 MB, free: 4.148 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.001306/0.001306, allocations: 111.9 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.001599/0.001599, allocations: 189.1 kB / 41.02 MB, free: 7.129 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.553/1.553, allocations: 222.9 MB / 268.9 MB, free: 6.918 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1628/0.1628, allocations: 23.36 MB / 346.6 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 111.8 kB / 478.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.3819, 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.084/0.466, allocations: 68.02 MB / 0.592 GB, free: 408 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02057/0.4866, allocations: 15.48 MB / 0.6071 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001526/0.4881, allocations: 15.88 kB / 0.6072 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.4892, allocations: 206.5 kB / 0.6074 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009818/0.499, allocations: 2.224 MB / 0.6095 GB, free: 14.4 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003832/0.5029, allocations: 1.13 MB / 0.6106 GB, free: 13.26 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001477/0.5044, allocations: 1.11 MB / 0.6117 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004962/0.5049, allocations: 326.4 kB / 0.612 GB, free: 11.82 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002408/0.5073, allocations: 1.022 MB / 0.613 GB, free: 10.79 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005674/0.5079, allocations: 414.4 kB / 0.6134 GB, free: 10.39 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.623e-05/0.5079, allocations: 36 kB / 0.6135 GB, free: 10.35 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005188/0.5131, allocations: 1.568 MB / 0.615 GB, free: 8.781 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.5133, allocations: 127.6 kB / 0.6151 GB, free: 8.656 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002979/0.5136, allocations: 246.9 kB / 0.6153 GB, free: 8.414 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003949/0.5176, allocations: 2.021 MB / 0.6173 GB, free: 6.387 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.5176, allocations: 0 / 0.6173 GB, free: 6.387 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5176, allocations: 3.938 kB / 0.6173 GB, free: 6.383 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.936e-06/0.5176, allocations: 0 / 0.6173 GB, free: 6.383 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.001924/0.5196, allocations: 0.967 MB / 0.6183 GB, free: 5.367 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.5196, allocations: 12.03 kB / 0.6183 GB, free: 5.355 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.5197, allocations: 51.38 kB / 0.6183 GB, free: 5.305 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005302/0.5203, allocations: 389.8 kB / 0.6187 GB, free: 4.883 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.5203, allocations: 24.66 kB / 0.6187 GB, free: 4.859 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.5204, allocations: 32 kB / 0.6187 GB, free: 4.828 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006817/0.5211, allocations: 403.5 kB / 0.6191 GB, free: 4.414 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.5211, allocations: 0 / 0.6191 GB, free: 4.414 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.404e-05/0.5211, allocations: 15.98 kB / 0.6191 GB, free: 4.398 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.5212, allocations: 12 kB / 0.6192 GB, free: 4.387 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006484/0.5218, allocations: 342.3 kB / 0.6195 GB, free: 4.051 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.002577/0.5244, allocations: 2.034 MB / 0.6215 GB, free: 1.801 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005909/0.525, allocations: 334.3 kB / 0.6218 GB, free: 1.465 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.5253, allocations: 156.8 kB / 0.6219 GB, free: 1.309 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001177/0.5265, allocations: 0.958 MB / 0.6229 GB, free: 256 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004043/0.5269, allocations: 191.2 kB / 0.6231 GB, free: 52 kB / 462.1 MB Notification: Performance of pre-optimization done (n=31): time 2.074e-06/0.527, allocations: 0 / 0.6231 GB, free: 52 kB / 462.1 MB Notification: Performance of matching and sorting (n=31): time 0.001203/0.5282, allocations: 0.5309 MB / 0.6236 GB, free: 15.49 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.5282, allocations: 59.39 kB / 0.6236 GB, free: 15.42 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003943/0.5286, allocations: 381.6 kB / 0.624 GB, free: 15.04 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.5287, allocations: 33.7 kB / 0.624 GB, free: 15 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.5288, allocations: 220 kB / 0.6242 GB, free: 14.78 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.205e-05/0.5289, allocations: 106.5 kB / 0.6243 GB, free: 14.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.529, allocations: 78.12 kB / 0.6244 GB, free: 14.59 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002466/0.5293, allocations: 346.8 kB / 0.6247 GB, free: 14.25 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.5296, allocations: 144.7 kB / 0.6249 GB, free: 14.11 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003739/0.53, allocations: 217.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.00212/0.5321, allocations: 0.8809 MB / 0.626 GB, free: 12.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5321, allocations: 0 / 0.626 GB, free: 12.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008664/0.533, allocations: 465.8 kB / 0.6264 GB, free: 12.46 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.533, allocations: 11.94 kB / 0.6264 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.533, allocations: 3.984 kB / 0.6264 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/0.5332, allocations: 40.78 kB / 0.6265 GB, free: 12.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.5335, allocations: 76.2 kB / 0.6265 GB, free: 12.33 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005461/0.5341, allocations: 0.5446 MB / 0.6271 GB, free: 11.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002955/0.5344, allocations: 51.52 kB / 0.6271 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.5344, allocations: 15.98 kB / 0.6271 GB, free: 11.69 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.0002037/0.5347, allocations: 170.8 kB / 0.6273 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.105e-05/0.5347, allocations: 39.53 kB / 0.6273 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009358/0.5357, allocations: 412.8 kB / 0.6277 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.5357, allocations: 3.938 kB / 0.6277 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.5357, allocations: 0 / 0.6277 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.5357, allocations: 8 kB / 0.6277 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.5371, allocations: 0.867 MB / 0.6286 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.5371, allocations: 0 / 0.6286 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/0.5373, allocations: 47.84 kB / 0.6286 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-05/0.5374, allocations: 40.86 kB / 0.6287 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.5374, allocations: 11.98 kB / 0.6287 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004498/0.5379, allocations: 0.5367 MB / 0.6292 GB, free: 9.445 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5379, allocations: 3.938 kB / 0.6292 GB, free: 9.441 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.539, allocations: 0.5916 MB / 0.6298 GB, free: 8.828 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.5392, allocations: 148.5 kB / 0.6299 GB, free: 8.664 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.738e-05/0.5392, allocations: 11.94 kB / 0.6299 GB, free: 8.652 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.5395, allocations: 11.98 kB / 0.6299 GB, free: 8.641 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.326e-05/0.5395, allocations: 27.91 kB / 0.63 GB, free: 8.613 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/0.5396, allocations: 16.05 kB / 0.63 GB, free: 8.598 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003672/0.54, allocations: 271.2 kB / 0.6302 GB, free: 8.34 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.54, allocations: 3.938 kB / 0.6302 GB, free: 8.336 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001301/0.5413, allocations: 487.4 kB / 0.6307 GB, free: 7.859 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.001369/0.5426, allocations: 0.7794 MB / 0.6315 GB, free: 7.07 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008625/0.5435, allocations: 347.5 kB / 0.6318 GB, free: 6.73 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5435, allocations: 0 / 0.6318 GB, free: 6.73 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.5439, allocations: 152.5 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.0009958/0.5449, allocations: 193.1 kB / 0.6321 GB, free: 6.391 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.5463, allocations: 0.8469 MB / 0.633 GB, free: 5.512 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.5467, allocations: 0.8113 MB / 0.6337 GB, free: 4.672 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002505/0.5469, allocations: 87.23 kB / 0.6338 GB, free: 4.582 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.547, allocations: 47.42 kB / 0.6339 GB, free: 4.535 MB / 478.1 MB Notification: Performance of SimCode: time 2.9e-07/0.547, allocations: 0 / 0.6339 GB, free: 4.535 MB / 478.1 MB Notification: Performance of Templates: time 0.02579/0.5728, 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)