Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08842/0.08842, 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.0009312/0.0009312, allocations: 105.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.001073/0.001073, allocations: 193.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.349/1.349, 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.1276/0.1276, allocations: 23.35 MB / 346 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002571/0.002571, allocations: 103.8 kB / 417.5 MB, free: 30.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1211, allocations: 59.36 MB / 476.8 MB, free: 3.484 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_3element): time 0.3136/0.4347, allocations: 73.84 MB / 0.5378 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.4504, allocations: 18.93 MB / 0.5562 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009847/0.4514, allocations: 31.75 kB / 0.5563 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007258/0.4521, allocations: 195.2 kB / 0.5565 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006123/0.4583, allocations: 2.132 MB / 0.5585 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004402/0.4627, allocations: 1.438 MB / 0.5599 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001478/0.4642, allocations: 1.823 MB / 0.5617 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.4646, allocations: 316.5 kB / 0.562 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/0.4666, allocations: 0.9802 MB / 0.563 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005304/0.4672, allocations: 468.1 kB / 0.5634 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.4673, allocations: 28 kB / 0.5635 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004149/0.4714, allocations: 1.709 MB / 0.5651 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.4715, allocations: 116.8 kB / 0.5652 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000235/0.4718, allocations: 269.8 kB / 0.5655 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003243/0.475, allocations: 2.084 MB / 0.5675 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.4751, allocations: 0 / 0.5675 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4751, allocations: 0 / 0.5675 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.4751, allocations: 4 kB / 0.5675 GB, free: 0.6133 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001555/0.4766, allocations: 1.015 MB / 0.5685 GB, free: 15.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.4767, allocations: 8.594 kB / 0.5685 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.4768, allocations: 63.28 kB / 0.5686 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.4773, allocations: 392.2 kB / 0.569 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.4773, allocations: 29 kB / 0.569 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.4774, allocations: 36 kB / 0.569 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.4781, allocations: 453 kB / 0.5695 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.4782, allocations: 4 kB / 0.5695 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.4782, allocations: 12 kB / 0.5695 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.4782, allocations: 15.98 kB / 0.5695 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006942/0.4789, allocations: 375.7 kB / 0.5699 GB, free: 14.32 MB / 398.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.002442/0.4814, allocations: 2.191 MB / 0.572 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006602/0.4821, allocations: 361.7 kB / 0.5723 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.4824, allocations: 181 kB / 0.5725 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001217/0.4836, allocations: 0.9977 MB / 0.5735 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003805/0.484, allocations: 218.8 kB / 0.5737 GB, free: 10.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.863e-06/0.484, allocations: 0 / 0.5737 GB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001411/0.4854, allocations: 0.7088 MB / 0.5744 GB, free: 9.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.4855, allocations: 63.34 kB / 0.5744 GB, free: 9.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003741/0.4859, allocations: 393.5 kB / 0.5748 GB, free: 8.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.4859, allocations: 37.7 kB / 0.5749 GB, free: 8.789 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.486, allocations: 239.3 kB / 0.5751 GB, free: 8.551 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.951e-05/0.4861, allocations: 113.2 kB / 0.5752 GB, free: 8.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.4862, allocations: 82.12 kB / 0.5753 GB, free: 8.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.4864, allocations: 362.7 kB / 0.5756 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.4867, allocations: 140.8 kB / 0.5758 GB, free: 7.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000321/0.487, allocations: 241.7 kB / 0.576 GB, free: 7.582 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.002011/0.489, allocations: 0.9635 MB / 0.5769 GB, free: 6.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.489, allocations: 0 / 0.5769 GB, free: 6.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009227/0.4899, allocations: 0.5103 MB / 0.5774 GB, free: 6.043 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.49, allocations: 8 kB / 0.5774 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.49, allocations: 0 / 0.5774 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000223/0.4902, allocations: 81.59 kB / 0.5775 GB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003366/0.4906, allocations: 83.83 kB / 0.5776 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006308/0.4912, allocations: 1.116 MB / 0.5787 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003729/0.4916, allocations: 67.59 kB / 0.5787 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.4916, allocations: 20 kB / 0.5788 GB, free: 4.613 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 (48): * 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: 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.0001952/0.4918, allocations: 169.7 kB / 0.5789 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.585e-05/0.4919, allocations: 39.53 kB / 0.579 GB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009002/0.4928, allocations: 481 kB / 0.5794 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.4928, allocations: 7.984 kB / 0.5794 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4928, allocations: 0 / 0.5794 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4929, allocations: 0 / 0.5794 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.4943, allocations: 0.9626 MB / 0.5804 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.4943, allocations: 0 / 0.5804 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.4945, allocations: 47.91 kB / 0.5804 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/0.4947, allocations: 77.69 kB / 0.5805 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.4947, allocations: 12 kB / 0.5805 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005788/0.4953, allocations: 1.112 MB / 0.5816 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4953, allocations: 7.969 kB / 0.5816 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.4964, allocations: 0.6852 MB / 0.5823 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.4967, allocations: 148.5 kB / 0.5824 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.13e-05/0.4967, allocations: 16.05 kB / 0.5824 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.497, allocations: 23.92 kB / 0.5824 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.145e-05/0.4971, allocations: 31.95 kB / 0.5825 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.4972, allocations: 11.98 kB / 0.5825 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002823/0.4974, allocations: 283.2 kB / 0.5828 GB, free: 344 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4975, allocations: 0 / 0.5828 GB, free: 344 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.001271/0.4987, allocations: 0.5189 MB / 0.5833 GB, free: 15.82 MB / 414.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 (29): * 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: 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.001342/0.5001, allocations: 0.8483 MB / 0.5841 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008384/0.5009, allocations: 380.6 kB / 0.5845 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.5009, allocations: 0.625 kB / 0.5845 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003644/0.5013, allocations: 175.8 kB / 0.5846 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.5024, allocations: 201.2 kB / 0.5848 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.5041, allocations: 1.06 MB / 0.5859 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.5045, allocations: 0.8274 MB / 0.5867 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003148/0.5048, allocations: 84.09 kB / 0.5867 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.5049, allocations: 47.42 kB / 0.5868 GB, free: 12.23 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.5049, allocations: 0 / 0.5868 GB, free: 12.23 MB / 414.1 MB Notification: Performance of Templates: time 0.02457/0.5295, allocations: 17.58 MB / 0.6039 GB, free: 10.75 MB / 430.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)