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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001575/0.001575, allocations: 182.9 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.342/1.342, allocations: 222.9 MB / 239.6 MB, free: 11.01 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.001024/0.001024, allocations: 98.52 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4181/0.4181, allocations: 36.67 MB / 376.7 MB, free: 41.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.89 kB / 446.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.14, allocations: 58.91 MB / 0.4935 GB, free: 0.8711 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_2element): time 0.3399/0.4799, allocations: 62.92 MB / 0.5549 GB, free: 5.777 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0233/0.5033, allocations: 18.92 MB / 0.5734 GB, free: 6.816 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.5046, allocations: 27.81 kB / 0.5734 GB, free: 6.789 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.5062, allocations: 377.3 kB / 0.5738 GB, free: 6.512 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008254/0.5145, allocations: 2.022 MB / 0.5758 GB, free: 4.891 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005767/0.5203, allocations: 1.297 MB / 0.577 GB, free: 3.832 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003074/0.5234, allocations: 1.965 MB / 0.5789 GB, free: 2.262 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000739/0.5242, allocations: 355.8 kB / 0.5793 GB, free: 2.012 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.5254, allocations: 0.493 MB / 0.5798 GB, free: 1.578 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000747/0.5262, allocations: 443.9 kB / 0.5802 GB, free: 1.223 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 6.703e-05/0.5262, allocations: 24 kB / 0.5802 GB, free: 1.199 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009324/0.5356, allocations: 2.287 MB / 0.5824 GB, free: 15.21 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003653/0.536, allocations: 112.1 kB / 0.5825 GB, free: 15.12 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005407/0.5365, allocations: 245.5 kB / 0.5828 GB, free: 14.9 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01112/0.5477, allocations: 2.608 MB / 0.5853 GB, free: 12.67 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.5477, allocations: 0 / 0.5853 GB, free: 12.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5477, allocations: 0 / 0.5853 GB, free: 12.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.5478, allocations: 0 / 0.5853 GB, free: 12.67 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002582/0.5503, allocations: 1.092 MB / 0.5864 GB, free: 11.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.5504, allocations: 8.031 kB / 0.5864 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.5505, allocations: 47.44 kB / 0.5864 GB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.5511, allocations: 390.3 kB / 0.5868 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.5511, allocations: 20.66 kB / 0.5868 GB, free: 11.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.345e-05/0.5512, allocations: 39.94 kB / 0.5869 GB, free: 10.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006885/0.5519, allocations: 385.8 kB / 0.5872 GB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.5519, allocations: 3.938 kB / 0.5872 GB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.552, allocations: 12 kB / 0.5873 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.552, allocations: 4 kB / 0.5873 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006389/0.5526, allocations: 330.4 kB / 0.5876 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.5551, allocations: 1.862 MB / 0.5894 GB, free: 8.188 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005834/0.5557, allocations: 327.7 kB / 0.5897 GB, free: 7.859 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002678/0.556, allocations: 144.8 kB / 0.5898 GB, free: 7.715 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001195/0.5572, allocations: 0.9462 MB / 0.5908 GB, free: 6.668 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.5575, allocations: 179.3 kB / 0.5909 GB, free: 6.484 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 1.963e-06/0.5575, allocations: 3.938 kB / 0.5909 GB, free: 6.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.001256/0.5588, allocations: 0.5153 MB / 0.5914 GB, free: 5.938 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.5589, allocations: 59.41 kB / 0.5915 GB, free: 5.867 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.5593, allocations: 397.5 kB / 0.5919 GB, free: 5.469 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.5594, allocations: 37.7 kB / 0.5919 GB, free: 5.426 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.5595, allocations: 228 kB / 0.5921 GB, free: 5.199 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.26e-05/0.5596, allocations: 94.66 kB / 0.5922 GB, free: 5.105 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.5597, allocations: 81.53 kB / 0.5923 GB, free: 5.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.5598, allocations: 354.8 kB / 0.5926 GB, free: 4.664 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.5601, allocations: 128.4 kB / 0.5928 GB, free: 4.539 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.5604, allocations: 225.7 kB / 0.593 GB, free: 4.277 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006034/0.561, allocations: 351.7 kB / 0.5933 GB, free: 3.898 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.5611, allocations: 0 / 0.5933 GB, free: 3.898 MB / 410.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001289/0.5624, allocations: 450.9 kB / 0.5937 GB, free: 3.449 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.5624, allocations: 4 kB / 0.5938 GB, free: 3.445 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.5625, allocations: 4 kB / 0.5938 GB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003006/0.5628, allocations: 44.72 kB / 0.5938 GB, free: 3.395 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006553/0.5635, allocations: 72.23 kB / 0.5939 GB, free: 3.324 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006859/0.5642, allocations: 0.5524 MB / 0.5944 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.565, allocations: 51.58 kB / 0.5945 GB, free: 2.695 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.657e-05/0.5651, allocations: 20.08 kB / 0.5945 GB, free: 2.676 MB / 410.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 (45): * 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: 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.0003803/0.5655, allocations: 177.6 kB / 0.5946 GB, free: 2.492 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.5658, allocations: 35.53 kB / 0.5947 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.5673, allocations: 404.2 kB / 0.5951 GB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.5673, allocations: 0 / 0.5951 GB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.5673, allocations: 4 kB / 0.5951 GB, free: 2.043 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.5673, allocations: 3.984 kB / 0.5951 GB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002481/0.5698, allocations: 0.8439 MB / 0.5959 GB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.5699, allocations: 15.92 kB / 0.5959 GB, free: 1.117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003669/0.5702, allocations: 39.92 kB / 0.5959 GB, free: 1.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001465/0.5704, allocations: 36.77 kB / 0.596 GB, free: 1.039 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/0.5705, allocations: 8 kB / 0.596 GB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005953/0.5711, allocations: 0.5484 MB / 0.5965 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5711, allocations: 0 / 0.5965 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/0.5815, allocations: 2.935 MB / 0.5994 GB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000359/0.5819, allocations: 144.5 kB / 0.5995 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.5821, allocations: 8 kB / 0.5995 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004855/0.5826, allocations: 23.97 kB / 0.5996 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.5827, allocations: 27.84 kB / 0.5996 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.5828, allocations: 12.06 kB / 0.5996 GB, free: 13.14 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005829/0.5834, allocations: 283.1 kB / 0.5999 GB, free: 12.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5834, allocations: 4 kB / 0.5999 GB, free: 12.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003482/0.5869, allocations: 0.6673 MB / 0.6005 GB, free: 12.2 MB / 426.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 (26): * 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: 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.004126/0.591, allocations: 0.9851 MB / 0.6015 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.5925, allocations: 316.1 kB / 0.6018 GB, free: 10.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5926, allocations: 0 / 0.6018 GB, free: 10.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005892/0.5932, allocations: 139.8 kB / 0.6019 GB, free: 10.76 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.5951, allocations: 188.1 kB / 0.6021 GB, free: 10.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/0.598, allocations: 1.18 MB / 0.6033 GB, free: 9.352 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005891/0.5986, allocations: 0.8233 MB / 0.6041 GB, free: 8.504 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006718/0.5993, allocations: 91.17 kB / 0.6041 GB, free: 8.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.5996, allocations: 39.42 kB / 0.6042 GB, free: 8.371 MB / 426.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5996, allocations: 0 / 0.6042 GB, free: 8.371 MB / 426.7 MB Notification: Performance of Templates: time 0.04486/0.6444, allocations: 20.01 MB / 0.6237 GB, free: 4.43 MB / 442.7 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)