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.08832/0.08832, allocations: 15.28 MB / 31.53 MB, free: 4.012 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.001113/0.001113, allocations: 113.2 kB / 36.54 MB, free: 3.262 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.001303/0.001303, allocations: 189.1 kB / 41.64 MB, free: 7.141 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.392/1.392, allocations: 222.9 MB / 269.5 MB, free: 6.961 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1446/0.1446, allocations: 23.35 MB / 347.2 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002552/0.002552, allocations: 103.8 kB / 419.7 MB, free: 29.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1033, allocations: 59.37 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_4element): time 0.3143/0.4177, allocations: 80.25 MB / 0.5462 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02236/0.4401, allocations: 22.19 MB / 0.5678 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.4412, allocations: 15.88 kB / 0.5679 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.4423, allocations: 267.5 kB / 0.5681 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007772/0.4501, allocations: 2.447 MB / 0.5705 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006432/0.4565, allocations: 2.053 MB / 0.5725 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002164/0.4587, allocations: 1.367 MB / 0.5738 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008766/0.4596, allocations: 454.9 kB / 0.5743 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003031/0.4627, allocations: 1.147 MB / 0.5754 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.4639, allocations: 0.5293 MB / 0.5759 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002065/0.4641, allocations: 52 kB / 0.576 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006271/0.4704, allocations: 1.844 MB / 0.5778 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.4707, allocations: 163.5 kB / 0.5779 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006562/0.4714, allocations: 330.6 kB / 0.5782 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006651/0.4781, allocations: 2.395 MB / 0.5806 GB, free: 7.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4781, allocations: 4 kB / 0.5806 GB, free: 7.785 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4781, allocations: 0 / 0.5806 GB, free: 7.785 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.918e-05/0.4781, allocations: 0 / 0.5806 GB, free: 7.785 MB / 398.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.002429/0.4806, allocations: 1.112 MB / 0.5817 GB, free: 6.625 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4806, allocations: 12.03 kB / 0.5817 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002197/0.4809, allocations: 59.34 kB / 0.5817 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000759/0.4816, allocations: 434.2 kB / 0.5821 GB, free: 6.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.4817, allocations: 40.98 kB / 0.5822 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.617e-05/0.4818, allocations: 40 kB / 0.5822 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009829/0.4827, allocations: 0.5318 MB / 0.5827 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.4828, allocations: 4 kB / 0.5827 GB, free: 5.449 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.4828, allocations: 20 kB / 0.5828 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.4829, allocations: 8 kB / 0.5828 GB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.4839, allocations: 495.7 kB / 0.5832 GB, free: 4.941 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.003568/0.4875, allocations: 2.466 MB / 0.5857 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007947/0.4883, allocations: 419 kB / 0.5861 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004808/0.4888, allocations: 253.1 kB / 0.5863 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001553/0.4903, allocations: 1.123 MB / 0.5874 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004747/0.4908, allocations: 260.5 kB / 0.5876 GB, free: 64 kB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002019/0.4911, allocations: 51.56 kB / 0.5877 GB, free: 12 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.284e-06/0.4911, allocations: 3.938 kB / 0.5877 GB, free: 8 kB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.00171/0.4928, allocations: 0.8043 MB / 0.5885 GB, free: 15.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.4928, allocations: 67.66 kB / 0.5885 GB, free: 15.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004446/0.4933, allocations: 393.6 kB / 0.5889 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.885e-05/0.4933, allocations: 33.7 kB / 0.589 GB, free: 14.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.4935, allocations: 248.1 kB / 0.5892 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.4937, allocations: 134 kB / 0.5893 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.4939, allocations: 102.1 kB / 0.5894 GB, free: 14.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.4941, allocations: 358.7 kB / 0.5898 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/0.4945, allocations: 177 kB / 0.5899 GB, free: 13.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.4949, allocations: 275.4 kB / 0.5902 GB, free: 13.33 MB / 414.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.004058/0.499, allocations: 1.323 MB / 0.5915 GB, free: 11.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.499, allocations: 0 / 0.5915 GB, free: 11.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00117/0.5002, allocations: 0.5946 MB / 0.5921 GB, free: 11.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.5002, allocations: 4 kB / 0.5921 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.5002, allocations: 4 kB / 0.5921 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002377/0.5005, allocations: 73.98 kB / 0.5921 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004392/0.5009, allocations: 95.88 kB / 0.5922 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006877/0.5016, allocations: 1.12 MB / 0.5933 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.502, allocations: 28.08 kB / 0.5934 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/0.5021, allocations: 23.98 kB / 0.5934 GB, free: 9.941 MB / 414.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.0002651/0.5023, allocations: 177.6 kB / 0.5935 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.77e-05/0.5024, allocations: 47.44 kB / 0.5936 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/0.5036, allocations: 0.5799 MB / 0.5942 GB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.5036, allocations: 4 kB / 0.5942 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.5036, allocations: 0 / 0.5942 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.5037, allocations: 7.875 kB / 0.5942 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.5055, allocations: 1.126 MB / 0.5953 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.5055, allocations: 0 / 0.5953 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.5058, allocations: 75.89 kB / 0.5953 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001904/0.506, allocations: 69.7 kB / 0.5954 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.5061, allocations: 15.98 kB / 0.5954 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006705/0.5068, allocations: 1.12 MB / 0.5965 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5068, allocations: 4.062 kB / 0.5965 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.5081, allocations: 0.803 MB / 0.5973 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002163/0.5084, allocations: 156.5 kB / 0.5975 GB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.633e-05/0.5084, allocations: 16 kB / 0.5975 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.5087, allocations: 11.98 kB / 0.5975 GB, free: 5.539 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.519e-05/0.5089, allocations: 35.95 kB / 0.5975 GB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.5089, allocations: 15.98 kB / 0.5975 GB, free: 5.488 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002979/0.5092, allocations: 283.1 kB / 0.5978 GB, free: 5.211 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5092, allocations: 4 kB / 0.5978 GB, free: 5.207 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001455/0.5107, allocations: 0.5735 MB / 0.5984 GB, free: 4.633 MB / 414.1 MB 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.001492/0.5122, allocations: 0.8925 MB / 0.5992 GB, free: 3.727 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.5132, allocations: 466.1 kB / 0.5997 GB, free: 3.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5132, allocations: 0 / 0.5997 GB, free: 3.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004542/0.5137, allocations: 236.2 kB / 0.5999 GB, free: 3.039 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.5147, allocations: 232.8 kB / 0.6001 GB, free: 2.816 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.5167, allocations: 1.064 MB / 0.6012 GB, free: 1.727 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.5172, allocations: 0.8508 MB / 0.602 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003544/0.5175, allocations: 108.2 kB / 0.6021 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.5177, allocations: 59.34 kB / 0.6022 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of SimCode: time 5.52e-07/0.5177, allocations: 0 / 0.6022 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of Templates: time 0.02993/0.5476, allocations: 19.64 MB / 0.6213 GB, free: 13.11 MB / 446.1 MB 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 -s cvode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)