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.08689/0.08689, allocations: 15.29 MB / 31.54 MB, free: 4.141 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.00145/0.00145, allocations: 109.3 kB / 36.54 MB, free: 3.203 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.001203/0.001203, allocations: 193.1 kB / 41.65 MB, free: 7.168 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.375/1.375, allocations: 222.9 MB / 269.5 MB, free: 6.875 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.144/0.144, allocations: 23.36 MB / 347.2 MB, free: 0.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 107.8 kB / 419.7 MB, free: 29.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.1014, allocations: 59.39 MB / 479 MB, free: 2.266 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.2817/0.3831, allocations: 67.8 MB / 0.534 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.3984, allocations: 15.48 MB / 0.5491 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008386/0.3993, allocations: 12.69 kB / 0.5492 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000738/0.4, allocations: 210.2 kB / 0.5494 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009291/0.4093, allocations: 2.219 MB / 0.5515 GB, free: 8.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003575/0.4129, allocations: 1.127 MB / 0.5526 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.4143, allocations: 1.103 MB / 0.5537 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004376/0.4148, allocations: 326.5 kB / 0.554 GB, free: 7.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00232/0.4171, allocations: 1.035 MB / 0.555 GB, free: 6.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005947/0.4177, allocations: 407.4 kB / 0.5554 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.633e-05/0.4178, allocations: 40 kB / 0.5555 GB, free: 6.441 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004712/0.4225, allocations: 1.57 MB / 0.557 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.4227, allocations: 119.7 kB / 0.5571 GB, free: 5.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.423, allocations: 260.8 kB / 0.5574 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004442/0.4274, allocations: 2.005 MB / 0.5593 GB, free: 4.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.4274, allocations: 6.719 kB / 0.5593 GB, free: 4.016 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4274, allocations: 0 / 0.5593 GB, free: 4.016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.742e-05/0.4275, allocations: 3.938 kB / 0.5593 GB, free: 4.012 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.001737/0.4292, allocations: 0.9746 MB / 0.5603 GB, free: 3.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.4293, allocations: 12.03 kB / 0.5603 GB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.4294, allocations: 51.7 kB / 0.5603 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.4298, allocations: 383.5 kB / 0.5607 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.4299, allocations: 24.47 kB / 0.5607 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.688e-05/0.4299, allocations: 36.53 kB / 0.5608 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000597/0.4305, allocations: 394.4 kB / 0.5611 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.4306, allocations: 8 kB / 0.5611 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.4306, allocations: 22.69 kB / 0.5612 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.4306, allocations: 10.95 kB / 0.5612 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.4312, allocations: 329.1 kB / 0.5615 GB, free: 2.289 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.002064/0.4333, allocations: 2.031 MB / 0.5635 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004729/0.4338, allocations: 316.6 kB / 0.5638 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/0.434, allocations: 152.9 kB / 0.5639 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001142/0.4352, allocations: 0.9749 MB / 0.5649 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003512/0.4355, allocations: 182.8 kB / 0.565 GB, free: 15.01 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.755e-06/0.4356, allocations: 0 / 0.565 GB, free: 15.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001141/0.4367, allocations: 0.5302 MB / 0.5656 GB, free: 14.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.4368, allocations: 58.27 kB / 0.5656 GB, free: 14.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003915/0.4372, allocations: 374.6 kB / 0.566 GB, free: 14.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.4372, allocations: 37.7 kB / 0.566 GB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.4374, allocations: 232.6 kB / 0.5662 GB, free: 13.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.585e-05/0.4375, allocations: 102.9 kB / 0.5663 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.4376, allocations: 77.12 kB / 0.5664 GB, free: 13.69 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.4377, allocations: 353.9 kB / 0.5667 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000285/0.438, allocations: 135.8 kB / 0.5669 GB, free: 13.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.4384, allocations: 221.9 kB / 0.5671 GB, free: 13.01 MB / 398.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.002032/0.4404, allocations: 0.876 MB / 0.5679 GB, free: 12.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.4404, allocations: 8 kB / 0.5679 GB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009442/0.4414, allocations: 461.7 kB / 0.5684 GB, free: 11.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.4414, allocations: 8.312 kB / 0.5684 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.4414, allocations: 4 kB / 0.5684 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000143/0.4416, allocations: 32.84 kB / 0.5684 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000347/0.4419, allocations: 75.89 kB / 0.5685 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004265/0.4424, allocations: 0.56 MB / 0.569 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003863/0.4428, allocations: 39.62 kB / 0.5691 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/0.4428, allocations: 23.98 kB / 0.5691 GB, free: 10.91 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.0003179/0.4432, allocations: 162.8 kB / 0.5693 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-05/0.4432, allocations: 43.47 kB / 0.5693 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008765/0.4441, allocations: 432.6 kB / 0.5697 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.4442, allocations: 4 kB / 0.5697 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4442, allocations: 0 / 0.5697 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.4442, allocations: 3.984 kB / 0.5697 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.4455, allocations: 0.8615 MB / 0.5706 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4456, allocations: 0 / 0.5706 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.4458, allocations: 51.95 kB / 0.5706 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.123e-05/0.4459, allocations: 24.84 kB / 0.5706 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.4459, allocations: 11.94 kB / 0.5707 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003694/0.4463, allocations: 0.5484 MB / 0.5712 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4463, allocations: 4.031 kB / 0.5712 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.4473, allocations: 0.592 MB / 0.5718 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.4476, allocations: 144.7 kB / 0.5719 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.624e-05/0.4476, allocations: 12 kB / 0.5719 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.4479, allocations: 15.98 kB / 0.5719 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.448, allocations: 19.97 kB / 0.572 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.448, allocations: 15.98 kB / 0.572 GB, free: 7.824 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003841/0.4484, allocations: 271.2 kB / 0.5722 GB, free: 7.562 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4484, allocations: 0 / 0.5722 GB, free: 7.562 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001794/0.4502, allocations: 491.4 kB / 0.5727 GB, free: 7.082 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.001509/0.4518, allocations: 0.7819 MB / 0.5735 GB, free: 6.371 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007983/0.4526, allocations: 336.7 kB / 0.5738 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.4526, allocations: 8 kB / 0.5738 GB, free: 6.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003454/0.4529, allocations: 152.1 kB / 0.5739 GB, free: 5.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009253/0.4539, allocations: 211.9 kB / 0.5741 GB, free: 5.684 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.4555, allocations: 0.8264 MB / 0.5749 GB, free: 4.832 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.4559, allocations: 0.8041 MB / 0.5757 GB, free: 4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003047/0.4562, allocations: 87.23 kB / 0.5758 GB, free: 3.914 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.4563, allocations: 43.42 kB / 0.5759 GB, free: 3.871 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4563, allocations: 0 / 0.5759 GB, free: 3.871 MB / 398.1 MB Notification: Performance of Templates: time 0.02543/0.4817, allocations: 16.56 MB / 0.592 GB, free: 3.387 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 -s cvode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)