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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001951/0.001951, allocations: 182.5 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 239.7 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 102.8 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4124/0.4124, allocations: 36.68 MB / 376.7 MB, free: 41.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 75.88 kB / 446.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1427, allocations: 58.91 MB / 0.4935 GB, free: 0.8477 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:629:7-629: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-master/Fluid.mo:629:7-629: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.3156/0.4583, allocations: 71.22 MB / 0.563 GB, free: 15.71 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02649/0.4848, allocations: 23.25 MB / 0.5857 GB, free: 11.08 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001441/0.4863, allocations: 27.75 kB / 0.5857 GB, free: 11.05 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001892/0.4882, allocations: 405.6 kB / 0.5861 GB, free: 10.75 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007743/0.496, allocations: 2.131 MB / 0.5882 GB, free: 9.043 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006437/0.5024, allocations: 1.859 MB / 0.59 GB, free: 7.527 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002804/0.5053, allocations: 2.151 MB / 0.5921 GB, free: 5.648 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000597/0.5059, allocations: 375.3 kB / 0.5925 GB, free: 5.277 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.507, allocations: 0.5331 MB / 0.593 GB, free: 4.742 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005743/0.5075, allocations: 482.1 kB / 0.5935 GB, free: 4.27 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.673e-05/0.5076, allocations: 28 kB / 0.5935 GB, free: 4.242 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008604/0.5162, allocations: 2.772 MB / 0.5962 GB, free: 1.465 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002668/0.5165, allocations: 119.5 kB / 0.5963 GB, free: 1.348 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004693/0.517, allocations: 266.8 kB / 0.5966 GB, free: 1.086 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01077/0.5278, allocations: 3.083 MB / 0.5996 GB, free: 13.99 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.5278, allocations: 0 / 0.5996 GB, free: 13.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5279, allocations: 0 / 0.5996 GB, free: 13.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.5279, allocations: 0 / 0.5996 GB, free: 13.99 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002251/0.5301, allocations: 1.205 MB / 0.6008 GB, free: 12.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.5302, allocations: 12.03 kB / 0.6008 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.5303, allocations: 51.38 kB / 0.6008 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005825/0.5309, allocations: 406.1 kB / 0.6012 GB, free: 12.24 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.531, allocations: 32.98 kB / 0.6012 GB, free: 12.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.905e-05/0.531, allocations: 36 kB / 0.6013 GB, free: 12.17 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007162/0.5317, allocations: 435 kB / 0.6017 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.5318, allocations: 0 / 0.6017 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.5318, allocations: 16 kB / 0.6017 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.5318, allocations: 11.98 kB / 0.6017 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006714/0.5325, allocations: 367.7 kB / 0.6021 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/0.535, allocations: 2.033 MB / 0.604 GB, free: 9.094 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006253/0.5356, allocations: 360.1 kB / 0.6044 GB, free: 8.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.5359, allocations: 169 kB / 0.6046 GB, free: 8.562 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001197/0.5371, allocations: 0.9855 MB / 0.6055 GB, free: 7.477 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000377/0.5375, allocations: 204 kB / 0.6057 GB, free: 7.266 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/0.5375, allocations: 0 / 0.6057 GB, free: 7.266 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.00143/0.539, allocations: 0.6906 MB / 0.6064 GB, free: 6.527 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.539, allocations: 59.39 kB / 0.6064 GB, free: 6.457 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004502/0.5395, allocations: 405.6 kB / 0.6068 GB, free: 6.051 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.5395, allocations: 33.7 kB / 0.6069 GB, free: 6.012 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.5397, allocations: 240 kB / 0.6071 GB, free: 5.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.773e-05/0.5398, allocations: 114.4 kB / 0.6072 GB, free: 5.656 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.54, allocations: 78.12 kB / 0.6073 GB, free: 5.574 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5401, allocations: 358.7 kB / 0.6076 GB, free: 5.215 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.5404, allocations: 136.8 kB / 0.6077 GB, free: 5.082 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003743/0.5408, allocations: 247.4 kB / 0.608 GB, free: 4.805 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006096/0.5414, allocations: 379.2 kB / 0.6083 GB, free: 4.398 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.5414, allocations: 4 kB / 0.6083 GB, free: 4.395 MB / 426.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009619/0.5424, allocations: 0.5021 MB / 0.6088 GB, free: 3.883 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.5424, allocations: 7.938 kB / 0.6088 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.5425, allocations: 4 kB / 0.6088 GB, free: 3.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002756/0.5427, allocations: 73.66 kB / 0.6089 GB, free: 3.793 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.5431, allocations: 75.89 kB / 0.609 GB, free: 3.719 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007559/0.5439, allocations: 1.12 MB / 0.6101 GB, free: 2.547 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004241/0.5443, allocations: 59.72 kB / 0.6101 GB, free: 2.488 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.5443, allocations: 19.98 kB / 0.6102 GB, free: 2.469 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (pulses.TD2,$PRE.pulses.TD2,pulses.HP,$PRE.pulses.HP,pulses.b,pulses.T0,$PRE.pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 42 * 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.0002019/0.5446, allocations: 177.6 kB / 0.6103 GB, free: 2.285 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.259e-05/0.5446, allocations: 39.53 kB / 0.6104 GB, free: 2.246 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009174/0.5456, allocations: 469 kB / 0.6108 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.5456, allocations: 3.984 kB / 0.6108 GB, free: 1.766 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5456, allocations: 0 / 0.6108 GB, free: 1.766 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.5456, allocations: 11.92 kB / 0.6108 GB, free: 1.754 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001478/0.5471, allocations: 0.9461 MB / 0.6118 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.5471, allocations: 4 kB / 0.6118 GB, free: 0.7422 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002237/0.5473, allocations: 43.91 kB / 0.6118 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/0.5475, allocations: 81.62 kB / 0.6119 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.5476, allocations: 4 kB / 0.6119 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007506/0.5483, allocations: 1.116 MB / 0.613 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5484, allocations: 4.188 kB / 0.613 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006277/0.5546, allocations: 3.054 MB / 0.616 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.5548, allocations: 164.4 kB / 0.6161 GB, free: 12.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.5549, allocations: 4 kB / 0.6161 GB, free: 12.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.5552, allocations: 19.97 kB / 0.6161 GB, free: 12.03 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/0.5553, allocations: 27.97 kB / 0.6162 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.5553, allocations: 11.98 kB / 0.6162 GB, free: 11.99 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003177/0.5556, allocations: 299.2 kB / 0.6165 GB, free: 11.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5556, allocations: 3.938 kB / 0.6165 GB, free: 11.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002067/0.5577, allocations: 0.8194 MB / 0.6173 GB, free: 10.88 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.mass) * 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 (27): * Single equations (assignments): 21 * 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.00213/0.5599, allocations: 1.208 MB / 0.6184 GB, free: 9.656 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008992/0.5608, allocations: 360.8 kB / 0.6188 GB, free: 9.305 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.5608, allocations: 0.6875 kB / 0.6188 GB, free: 9.305 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003805/0.5612, allocations: 176.1 kB / 0.619 GB, free: 9.133 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.5622, allocations: 192.6 kB / 0.6191 GB, free: 8.949 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.5642, allocations: 1.284 MB / 0.6204 GB, free: 7.621 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.5647, allocations: 0.8386 MB / 0.6212 GB, free: 6.758 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003406/0.565, allocations: 88.09 kB / 0.6213 GB, free: 6.672 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.5651, allocations: 47.42 kB / 0.6213 GB, free: 6.625 MB / 442.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5652, allocations: 3.938 kB / 0.6213 GB, free: 6.621 MB / 442.7 MB Notification: Performance of Templates: time 0.03547/0.6006, allocations: 23.96 MB / 0.6448 GB, free: 14.74 MB / 474.7 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)