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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002883/0.002883, allocations: 177.2 kB / 7.461 MB, free: 2.484 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.183/1.183, allocations: 221.4 MB / 229.3 MB, free: 3.02 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.0009394/0.0009392, allocations: 97.59 kB / 280.1 MB, free: 1.312 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3507/0.3507, allocations: 37.07 MB / 368 MB, free: 47.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.846e-06/8.886e-06, allocations: 4 kB / 434.1 MB, free: 4.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1126, allocations: 60.09 MB / 494.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3772/0.4898, allocations: 171 MB / 0.6495 GB, free: 8.473 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/0.4901, allocations: 81.69 kB / 0.6496 GB, free: 8.395 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.05/1.54, allocations: 277.9 MB / 0.921 GB, free: 54.84 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.484e-05/1.54, allocations: 34.42 kB / 0.9211 GB, free: 54.84 MB / 0.5105 GB 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.003921/1.544, allocations: 2.211 MB / 0.9232 GB, free: 53.89 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/1.544, allocations: 9.625 kB / 0.9232 GB, free: 53.89 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/1.545, allocations: 114.8 kB / 0.9233 GB, free: 53.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/1.546, allocations: 0.7326 MB / 0.924 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/1.546, allocations: 24.22 kB / 0.9241 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.344e-05/1.546, allocations: 41.31 kB / 0.9241 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008775/1.547, allocations: 0.6009 MB / 0.9247 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008809/1.548, allocations: 0.6924 MB / 0.9254 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/1.548, allocations: 0 / 0.9254 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.685e-05/1.548, allocations: 0 / 0.9254 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/1.548, allocations: 17.72 kB / 0.9254 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003452/1.551, allocations: 3.176 MB / 0.9285 GB, free: 51.75 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005839/1.552, allocations: 0.5521 MB / 0.929 GB, free: 51.62 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004344/1.552, allocations: 327.1 kB / 0.9293 GB, free: 51.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001756/1.554, allocations: 2.059 MB / 0.9314 GB, free: 50.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.656e-05/1.554, allocations: 41.14 kB / 0.9314 GB, free: 50.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=44): time 1.413e-06/1.554, allocations: 0 / 0.9314 GB, free: 50.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44): time 0.001214/1.555, allocations: 0.5953 MB / 0.932 GB, free: 50.03 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.678e-05/1.555, allocations: 56.78 kB / 0.932 GB, free: 49.96 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005509/1.556, allocations: 0.5869 MB / 0.9326 GB, free: 49.83 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/1.556, allocations: 29.27 kB / 0.9326 GB, free: 49.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/1.556, allocations: 369.7 kB / 0.933 GB, free: 49.56 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/1.556, allocations: 160.5 kB / 0.9331 GB, free: 49.46 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/1.556, allocations: 2.438 kB / 0.9331 GB, free: 49.46 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.823e-05/1.556, allocations: 388 kB / 0.9335 GB, free: 49.15 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/1.557, allocations: 220.6 kB / 0.9337 GB, free: 49.15 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004032/1.557, allocations: 497 kB / 0.9342 GB, free: 48.83 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008955/1.558, allocations: 351.6 kB / 0.9345 GB, free: 48.82 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/1.558, allocations: 3.281 kB / 0.9345 GB, free: 48.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001742/1.56, allocations: 0.918 MB / 0.9354 GB, free: 48.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/1.56, allocations: 7.938 kB / 0.9354 GB, free: 48.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/1.56, allocations: 7.281 kB / 0.9354 GB, free: 48.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003845/1.56, allocations: 186.6 kB / 0.9356 GB, free: 48.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006412/1.561, allocations: 173.7 kB / 0.9358 GB, free: 48.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/1.562, allocations: 2.286 MB / 0.938 GB, free: 46.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008085/1.563, allocations: 99.77 kB / 0.9381 GB, free: 46.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.579e-05/1.563, allocations: 38.09 kB / 0.9381 GB, free: 46.55 MB / 0.5105 GB 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.0001638/1.563, allocations: 140 kB / 0.9383 GB, free: 46.44 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/1.563, allocations: 82.45 kB / 0.9384 GB, free: 46.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/1.564, allocations: 0.6579 MB / 0.939 GB, free: 46.31 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/1.564, allocations: 9.188 kB / 0.939 GB, free: 46.31 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/1.564, allocations: 0 / 0.939 GB, free: 46.31 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/1.564, allocations: 3.469 kB / 0.939 GB, free: 46.31 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006358/1.565, allocations: 0.6574 MB / 0.9397 GB, free: 46.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/1.565, allocations: 0 / 0.9397 GB, free: 46.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/1.565, allocations: 96.81 kB / 0.9398 GB, free: 46.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003048/1.566, allocations: 161.1 kB / 0.9399 GB, free: 46.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/1.566, allocations: 13.89 kB / 0.9399 GB, free: 46.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/1.567, allocations: 2.261 MB / 0.9421 GB, free: 44.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.567, allocations: 0 / 0.9421 GB, free: 44.03 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001382/1.568, allocations: 1.019 MB / 0.9431 GB, free: 43.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002758/1.569, allocations: 216.2 kB / 0.9433 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/1.569, allocations: 0 / 0.9433 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005535/1.569, allocations: 48.25 kB / 0.9434 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.48e-05/1.569, allocations: 30.8 kB / 0.9434 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.795e-05/1.569, allocations: 17.81 kB / 0.9434 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0004263/1.57, allocations: 447.1 kB / 0.9438 GB, free: 43.56 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002415/1.572, allocations: 1.117 MB / 0.9449 GB, free: 43.3 MB / 0.5105 GB 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.002446/1.575, allocations: 1.872 MB / 0.9468 GB, free: 42.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0008885/1.576, allocations: 0.5917 MB / 0.9473 GB, free: 42.92 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/1.576, allocations: 0 / 0.9473 GB, free: 42.92 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004016/1.576, allocations: 279.8 kB / 0.9476 GB, free: 42.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/1.577, allocations: 316 kB / 0.9479 GB, free: 42.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/1.579, allocations: 1.452 MB / 0.9493 GB, free: 42.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/1.58, allocations: 1.095 MB / 0.9504 GB, free: 41.88 MB / 0.5105 GB Notification: Performance of SimCode: time 3.11e-07/1.58, allocations: 3.719 kB / 0.9504 GB, free: 41.88 MB / 0.5105 GB Notification: Performance of Templates: time 0.04015/1.62, allocations: 33.51 MB / 0.9831 GB, free: 39.28 MB / 0.5105 GB 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)