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) 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_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08615/0.08615, allocations: 15.28 MB / 30.91 MB, free: 4.152 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.0009771/0.0009774, 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.001078/0.001078, allocations: 190.1 kB / 41.01 MB, free: 7.145 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.312/1.312, allocations: 222.9 MB / 268.9 MB, free: 6.969 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1264/0.1264, allocations: 23.35 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.001819, allocations: 115.8 kB / 478.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2902, allocations: 59.35 MB / 0.5256 GB, free: 8.094 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_4element): time 0.08443/0.3746, allocations: 80.49 MB / 0.6042 GB, free: 3.891 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02348/0.3981, allocations: 22.18 MB / 0.6258 GB, free: 13.62 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000789/0.399, allocations: 11.94 kB / 0.6259 GB, free: 13.61 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008689/0.3998, allocations: 262.1 kB / 0.6261 GB, free: 13.35 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006691/0.4066, allocations: 2.461 MB / 0.6285 GB, free: 10.87 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004972/0.4116, allocations: 2.047 MB / 0.6305 GB, free: 8.812 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.4132, allocations: 1.372 MB / 0.6318 GB, free: 7.434 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007488/0.414, allocations: 464.7 kB / 0.6323 GB, free: 6.977 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002424/0.4164, allocations: 1.139 MB / 0.6334 GB, free: 5.832 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008467/0.4173, allocations: 0.5254 MB / 0.6339 GB, free: 5.305 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.4174, allocations: 56 kB / 0.634 GB, free: 5.25 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004573/0.422, allocations: 1.852 MB / 0.6358 GB, free: 3.395 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.4222, allocations: 155.5 kB / 0.6359 GB, free: 3.242 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004489/0.4227, allocations: 326.6 kB / 0.6362 GB, free: 2.922 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005228/0.4279, allocations: 2.403 MB / 0.6386 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4279, allocations: 4 kB / 0.6386 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4279, allocations: 0 / 0.6386 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.428, allocations: 3.938 kB / 0.6386 GB, free: 0.5039 MB / 478.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.002307/0.4303, allocations: 1.111 MB / 0.6397 GB, free: 15.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.4303, allocations: 12.03 kB / 0.6397 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.4305, allocations: 55.34 kB / 0.6397 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006383/0.4311, allocations: 430.2 kB / 0.6402 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.4312, allocations: 37 kB / 0.6402 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.438e-05/0.4313, allocations: 43.98 kB / 0.6402 GB, free: 14.74 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000909/0.4322, allocations: 0.5357 MB / 0.6408 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.4322, allocations: 0 / 0.6408 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.595e-05/0.4323, allocations: 23.92 kB / 0.6408 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.4323, allocations: 12 kB / 0.6408 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009592/0.4332, allocations: 499.7 kB / 0.6413 GB, free: 13.66 MB / 494.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.002902/0.4362, allocations: 2.463 MB / 0.6437 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006843/0.4368, allocations: 419 kB / 0.6441 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004406/0.4373, allocations: 256.7 kB / 0.6443 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001311/0.4386, allocations: 1.122 MB / 0.6454 GB, free: 9.047 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004224/0.4391, allocations: 245.1 kB / 0.6456 GB, free: 8.793 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001609/0.4392, allocations: 47.59 kB / 0.6457 GB, free: 8.746 MB / 494.1 MB Notification: Performance of pre-optimization done (n=41): time 2.124e-06/0.4392, allocations: 0 / 0.6457 GB, free: 8.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=41): time 0.001534/0.4408, allocations: 0.8195 MB / 0.6465 GB, free: 7.879 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.4408, allocations: 59.73 kB / 0.6465 GB, free: 7.809 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.4412, allocations: 389.7 kB / 0.6469 GB, free: 7.422 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.4413, allocations: 37.7 kB / 0.647 GB, free: 7.379 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.4414, allocations: 252 kB / 0.6472 GB, free: 7.125 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.4415, allocations: 138.1 kB / 0.6473 GB, free: 6.988 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.4417, allocations: 98.14 kB / 0.6474 GB, free: 6.887 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.4418, allocations: 358.8 kB / 0.6478 GB, free: 6.527 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/0.4422, allocations: 181 kB / 0.6479 GB, free: 6.352 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/0.4426, allocations: 267.4 kB / 0.6482 GB, free: 6.055 MB / 494.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.003854/0.4464, allocations: 1.315 MB / 0.6495 GB, free: 4.691 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4464, allocations: 0 / 0.6495 GB, free: 4.691 MB / 494.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001112/0.4476, allocations: 0.5986 MB / 0.6501 GB, free: 4.078 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.4476, allocations: 8 kB / 0.6501 GB, free: 4.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4476, allocations: 3.938 kB / 0.6501 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.4479, allocations: 81.66 kB / 0.6501 GB, free: 3.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.4483, allocations: 104 kB / 0.6502 GB, free: 3.879 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007793/0.4491, allocations: 1.109 MB / 0.6513 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.4494, allocations: 27.92 kB / 0.6514 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.825e-05/0.4495, allocations: 24.14 kB / 0.6514 GB, free: 2.668 MB / 494.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.0002374/0.4497, allocations: 177.6 kB / 0.6515 GB, free: 2.484 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.357e-05/0.4498, allocations: 47.45 kB / 0.6516 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.451, allocations: 0.5876 MB / 0.6522 GB, free: 1.832 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.451, allocations: 8 kB / 0.6522 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.451, allocations: 0 / 0.6522 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.4511, allocations: 3.984 kB / 0.6522 GB, free: 1.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.4527, allocations: 1.126 MB / 0.6533 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.4527, allocations: 0 / 0.6533 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.4531, allocations: 63.95 kB / 0.6533 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.4532, allocations: 81.64 kB / 0.6534 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.4533, allocations: 11.98 kB / 0.6534 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006376/0.4539, allocations: 1.12 MB / 0.6545 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4539, allocations: 0 / 0.6545 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.4553, allocations: 0.8031 MB / 0.6553 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.4555, allocations: 156.5 kB / 0.6555 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.75e-05/0.4556, allocations: 15.92 kB / 0.6555 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.4559, allocations: 27.92 kB / 0.6555 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/0.456, allocations: 27.95 kB / 0.6555 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-05/0.456, allocations: 19.98 kB / 0.6555 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003201/0.4564, allocations: 283.2 kB / 0.6558 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.4564, allocations: 0 / 0.6558 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001498/0.4579, allocations: 0.5696 MB / 0.6564 GB, free: 13.36 MB / 0.4981 GB 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.001933/0.4598, allocations: 0.8924 MB / 0.6572 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001025/0.4609, allocations: 466.4 kB / 0.6577 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4609, allocations: 0 / 0.6577 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004912/0.4614, allocations: 232.5 kB / 0.6579 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.4624, allocations: 229.3 kB / 0.6581 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.4643, allocations: 1.081 MB / 0.6592 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.4647, allocations: 0.8509 MB / 0.66 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003267/0.4651, allocations: 104.3 kB / 0.6601 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.4652, allocations: 59.34 kB / 0.6602 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.4652, allocations: 4 kB / 0.6602 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of Templates: time 0.02739/0.4926, allocations: 19.95 MB / 0.6797 GB, free: 5.516 MB / 0.5137 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)