Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.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.Kofranek2014.NonPulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation") translateModel(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 221.5 MB / 229.6 MB, free: 3.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009252/0.000925, allocations: 98.38 kB / 280.5 MB, free: 1.16 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3509/0.3509, allocations: 37.07 MB / 368.3 MB, free: 47.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.884e-05/1.886e-05, allocations: 7.938 kB / 434.6 MB, free: 4.555 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 60.08 MB / 494.7 MB, free: 8.379 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3986/0.5113, allocations: 171 MB / 0.6502 GB, free: 8.34 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.5116, allocations: 84.58 kB / 0.6502 GB, free: 8.258 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.062/1.574, allocations: 276.1 MB / 0.9199 GB, free: 50.16 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.724e-06/1.574, allocations: 0 / 0.9199 GB, free: 50.16 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.639e-05/1.574, allocations: 32.61 kB / 0.9199 GB, free: 50.16 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.004254/1.578, allocations: 2.204 MB / 0.9221 GB, free: 49.03 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/1.578, allocations: 14.14 kB / 0.9221 GB, free: 49.03 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/1.578, allocations: 107.7 kB / 0.9222 GB, free: 48.98 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/1.58, allocations: 0.7205 MB / 0.9229 GB, free: 48.69 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/1.58, allocations: 19.56 kB / 0.9229 GB, free: 48.69 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.943e-05/1.58, allocations: 47.11 kB / 0.923 GB, free: 48.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008424/1.581, allocations: 0.5984 MB / 0.9235 GB, free: 48.68 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008999/1.581, allocations: 0.6828 MB / 0.9242 GB, free: 48.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/1.581, allocations: 3.938 kB / 0.9242 GB, free: 48.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-05/1.582, allocations: 7.891 kB / 0.9242 GB, free: 48.54 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/1.582, allocations: 18.41 kB / 0.9242 GB, free: 48.54 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003426/1.585, allocations: 3.186 MB / 0.9273 GB, free: 46.88 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006814/1.586, allocations: 0.6015 MB / 0.9279 GB, free: 46.76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004144/1.586, allocations: 321.9 kB / 0.9282 GB, free: 46.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001837/1.588, allocations: 2.077 MB / 0.9303 GB, free: 45.31 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/1.588, allocations: 40.92 kB / 0.9303 GB, free: 45.27 MB / 490.7 MB Notification: Performance of pre-optimization done (n=44): time 2.254e-06/1.588, allocations: 3.609 kB / 0.9303 GB, free: 45.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=44): time 0.001171/1.589, allocations: 0.5816 MB / 0.9309 GB, free: 45.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.934e-05/1.589, allocations: 62.36 kB / 0.9309 GB, free: 45.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00057/1.59, allocations: 0.5771 MB / 0.9315 GB, free: 44.96 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/1.59, allocations: 25.7 kB / 0.9315 GB, free: 44.93 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/1.59, allocations: 484.3 kB / 0.932 GB, free: 44.69 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.314e-05/1.59, allocations: 154.8 kB / 0.9321 GB, free: 44.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/1.59, allocations: 0 / 0.9321 GB, free: 44.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.882e-05/1.59, allocations: 395.2 kB / 0.9325 GB, free: 44.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/1.591, allocations: 215.7 kB / 0.9327 GB, free: 44.28 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/1.591, allocations: 493.7 kB / 0.9332 GB, free: 43.96 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/1.592, allocations: 356.8 kB / 0.9335 GB, free: 43.96 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/1.592, allocations: 3.531 kB / 0.9335 GB, free: 43.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001781/1.594, allocations: 0.9257 MB / 0.9344 GB, free: 43.84 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/1.594, allocations: 10.41 kB / 0.9344 GB, free: 43.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/1.594, allocations: 7.281 kB / 0.9345 GB, free: 43.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003654/1.594, allocations: 173.2 kB / 0.9346 GB, free: 43.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005784/1.595, allocations: 174.2 kB / 0.9348 GB, free: 43.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/1.596, allocations: 2.27 MB / 0.937 GB, free: 41.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007549/1.597, allocations: 97.67 kB / 0.9371 GB, free: 41.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.469e-05/1.597, allocations: 42.06 kB / 0.9371 GB, free: 41.69 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: TotalSystemicResistance.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: leftHeart.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: TotalPulmonaryResistance.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001589/1.597, allocations: 140.8 kB / 0.9373 GB, free: 41.58 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.459e-05/1.597, allocations: 74.59 kB / 0.9373 GB, free: 41.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/1.598, allocations: 0.6405 MB / 0.938 GB, free: 41.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/1.598, allocations: 5.656 kB / 0.938 GB, free: 41.45 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/1.598, allocations: 0 / 0.938 GB, free: 41.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/1.598, allocations: 3.797 kB / 0.938 GB, free: 41.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006492/1.599, allocations: 0.6561 MB / 0.9386 GB, free: 41.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/1.599, allocations: 2.781 kB / 0.9386 GB, free: 41.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003895/1.599, allocations: 85.55 kB / 0.9387 GB, free: 41.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002856/1.599, allocations: 167.2 kB / 0.9389 GB, free: 41.24 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/1.599, allocations: 7.656 kB / 0.9389 GB, free: 41.24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009138/1.6, allocations: 2.247 MB / 0.9411 GB, free: 39.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.6, allocations: 1.719 kB / 0.9411 GB, free: 39.16 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/1.602, allocations: 0.9882 MB / 0.942 GB, free: 38.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/1.602, allocations: 212.4 kB / 0.9422 GB, free: 38.79 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/1.602, allocations: 7.953 kB / 0.9422 GB, free: 38.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/1.602, allocations: 52.23 kB / 0.9423 GB, free: 38.79 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/1.603, allocations: 31.7 kB / 0.9423 GB, free: 38.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/1.603, allocations: 17.02 kB / 0.9423 GB, free: 38.79 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003938/1.603, allocations: 443.3 kB / 0.9428 GB, free: 38.69 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.603, allocations: 0 / 0.9428 GB, free: 38.69 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002328/1.605, allocations: 1.109 MB / 0.9438 GB, free: 38.43 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (PulmonaryArteries.enthalpy,PulmonaryArteries.mass,PulmonaryVeins.enthalpy,PulmonaryVeins.mass,SystemicVeins.enthalpy,SystemicVeins.mass,SystemicArteries.enthalpy,SystemicArteries.mass) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.002252/1.608, allocations: 1.847 MB / 0.9456 GB, free: 38.05 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0008209/1.608, allocations: 0.5825 MB / 0.9462 GB, free: 38.03 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/1.608, allocations: 0 / 0.9462 GB, free: 38.03 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003644/1.609, allocations: 271.5 kB / 0.9465 GB, free: 38.03 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/1.61, allocations: 330.9 kB / 0.9468 GB, free: 38.02 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/1.612, allocations: 1.437 MB / 0.9482 GB, free: 37.64 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/1.612, allocations: 1.016 MB / 0.9492 GB, free: 36.94 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005019/1.613, allocations: 144 kB / 0.9493 GB, free: 36.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/1.613, allocations: 69.06 kB / 0.9494 GB, free: 36.92 MB / 490.7 MB Notification: Performance of SimCode: time 2.4e-07/1.613, allocations: 0 / 0.9494 GB, free: 36.92 MB / 490.7 MB Notification: Performance of Templates: time 0.03473/1.648, allocations: 32.11 MB / 0.9807 GB, free: 33.73 MB / 490.7 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe 2>&1)