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-master/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-master/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-master/package.mo): time 0.09687/0.09687, allocations: 15.28 MB / 30.4 MB, free: 4.395 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.00111/0.001109, allocations: 108.9 kB / 35.38 MB, free: 3.461 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.001415/0.001415, allocations: 189.1 kB / 40.46 MB, free: 7.547 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.407/1.407, allocations: 222.9 MB / 268.3 MB, free: 7.605 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1392/0.1392, allocations: 23.34 MB / 346 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 111.8 kB / 417.5 MB, free: 30.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08967/0.09148, allocations: 59.38 MB / 476.8 MB, free: 3.5 MB / 334.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.4032/0.4947, allocations: 67.48 MB / 0.5316 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.5079, allocations: 15.57 MB / 0.5468 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007981/0.5087, allocations: 29.97 kB / 0.5468 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006095/0.5094, allocations: 163.3 kB / 0.547 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005695/0.5151, allocations: 2.032 MB / 0.5489 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003005/0.5181, allocations: 1.01 MB / 0.5499 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001656/0.5198, allocations: 1.651 MB / 0.5515 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003857/0.5202, allocations: 281 kB / 0.5518 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00188/0.5221, allocations: 0.9438 MB / 0.5527 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004458/0.5225, allocations: 424.5 kB / 0.5531 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.5226, allocations: 31.94 kB / 0.5532 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004474/0.5271, allocations: 1.573 MB / 0.5547 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.5272, allocations: 116.9 kB / 0.5548 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.5274, allocations: 240.6 kB / 0.555 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003348/0.5308, allocations: 1.909 MB / 0.5569 GB, free: 7.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.5308, allocations: 0 / 0.5569 GB, free: 7.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.5308, allocations: 0 / 0.5569 GB, free: 7.359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.5308, allocations: 0 / 0.5569 GB, free: 7.359 MB / 382.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.001449/0.5323, allocations: 0.9763 MB / 0.5579 GB, free: 6.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.5323, allocations: 14.8 kB / 0.5579 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.742e-05/0.5324, allocations: 48.75 kB / 0.5579 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.5328, allocations: 368 kB / 0.5583 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.5328, allocations: 28.59 kB / 0.5583 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.5329, allocations: 34.56 kB / 0.5583 GB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.5335, allocations: 402.7 kB / 0.5587 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.5335, allocations: 3.938 kB / 0.5587 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.5336, allocations: 17.55 kB / 0.5587 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.5336, allocations: 8 kB / 0.5587 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005729/0.5342, allocations: 340.3 kB / 0.5591 GB, free: 5.633 MB / 382.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.001918/0.5361, allocations: 2.013 MB / 0.561 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004897/0.5366, allocations: 327 kB / 0.5613 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.5368, allocations: 157.4 kB / 0.5615 GB, free: 3.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008788/0.5377, allocations: 0.9701 MB / 0.5624 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.538, allocations: 190.2 kB / 0.5626 GB, free: 2.395 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.723e-06/0.5381, allocations: 0 / 0.5626 GB, free: 2.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009974/0.5391, allocations: 0.5297 MB / 0.5631 GB, free: 1.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.5391, allocations: 55.41 kB / 0.5632 GB, free: 1.828 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/0.5394, allocations: 377 kB / 0.5636 GB, free: 1.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.5394, allocations: 37.7 kB / 0.5636 GB, free: 1.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.105e-05/0.5395, allocations: 220.3 kB / 0.5638 GB, free: 1.246 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.956e-05/0.5396, allocations: 109.6 kB / 0.5639 GB, free: 1.152 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.938e-05/0.5397, allocations: 78.59 kB / 0.564 GB, free: 1.078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.933e-05/0.5398, allocations: 354.7 kB / 0.5643 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.54, allocations: 138.8 kB / 0.5645 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.5403, allocations: 225.5 kB / 0.5647 GB, free: 364 kB / 382.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.001901/0.5422, allocations: 0.876 MB / 0.5655 GB, free: 15.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.5422, allocations: 4 kB / 0.5655 GB, free: 15.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008755/0.5431, allocations: 461.3 kB / 0.566 GB, free: 14.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.5431, allocations: 8 kB / 0.566 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.5431, allocations: 4.312 kB / 0.566 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001234/0.5433, allocations: 32.84 kB / 0.566 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000349/0.5436, allocations: 79.88 kB / 0.5661 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000347/0.544, allocations: 0.5523 MB / 0.5666 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.5443, allocations: 59.61 kB / 0.5667 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.5444, allocations: 23.92 kB / 0.5667 GB, free: 14.18 MB / 398.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.0001932/0.5446, allocations: 166.7 kB / 0.5669 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.5447, allocations: 47.41 kB / 0.5669 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008876/0.5456, allocations: 428.6 kB / 0.5673 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.5456, allocations: 4 kB / 0.5673 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5456, allocations: 0 / 0.5673 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.5456, allocations: 0 / 0.5673 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.547, allocations: 0.8598 MB / 0.5682 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.547, allocations: 4 kB / 0.5682 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.5473, allocations: 43.97 kB / 0.5682 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.14e-05/0.5474, allocations: 32.78 kB / 0.5682 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.5474, allocations: 12.02 kB / 0.5682 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003529/0.5478, allocations: 0.5445 MB / 0.5688 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5478, allocations: 0 / 0.5688 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.5489, allocations: 0.603 MB / 0.5694 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.549, allocations: 140.6 kB / 0.5695 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.5491, allocations: 11.91 kB / 0.5695 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002924/0.5494, allocations: 19.98 kB / 0.5695 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.916e-05/0.5495, allocations: 36 kB / 0.5696 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.5496, allocations: 8 kB / 0.5696 GB, free: 11.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003124/0.5499, allocations: 271.2 kB / 0.5698 GB, free: 10.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5499, allocations: 0 / 0.5698 GB, free: 10.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001753/0.5517, allocations: 487.4 kB / 0.5703 GB, free: 10.34 MB / 398.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.00136/0.553, allocations: 0.791 MB / 0.5711 GB, free: 9.625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000765/0.5538, allocations: 323.6 kB / 0.5714 GB, free: 9.309 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.5538, allocations: 0 / 0.5714 GB, free: 9.309 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003317/0.5542, allocations: 156.5 kB / 0.5715 GB, free: 9.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.5552, allocations: 189.3 kB / 0.5717 GB, free: 8.973 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.5567, allocations: 0.9713 MB / 0.5727 GB, free: 7.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.5571, allocations: 0.8155 MB / 0.5735 GB, free: 7.141 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003032/0.5574, allocations: 91.22 kB / 0.5735 GB, free: 7.051 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.5575, allocations: 43.42 kB / 0.5736 GB, free: 7.008 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5575, allocations: 0 / 0.5736 GB, free: 7.008 MB / 398.1 MB Notification: Performance of Templates: time 0.02132/0.5788, allocations: 16.08 MB / 0.5893 GB, free: 7.004 MB / 414.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)