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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Kofranek2014_NonPulsatileCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Kofranek2014_NonPulsatileCirculation",fmuType="me",version="2.0",platforms={"static"}) [: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.002936/0.002936, allocations: 178.8 kB / 7.457 MB, free: 2.5 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.098/1.098, allocations: 221.4 MB / 229.3 MB, free: 3.039 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.0008688/0.0008688, allocations: 100.2 kB / 280.1 MB, free: 1.32 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2575/0.2575, allocations: 37.08 MB / 368 MB, free: 47.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09316/0.3507, allocations: 66.21 MB / 434.2 MB, free: 4.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.4474, allocations: 60.08 MB / 494.3 MB, free: 8.664 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3027/0.7501, allocations: 171 MB / 0.6496 GB, free: 8.41 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.7504, allocations: 85.59 kB / 0.6497 GB, free: 8.328 MB / 474.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.8619/1.612, allocations: 280.2 MB / 0.9233 GB, free: 53.16 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/1.612, allocations: 7.375 kB / 0.9233 GB, free: 53.16 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003488/1.613, allocations: 112 kB / 0.9234 GB, free: 53.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/1.614, allocations: 0.735 MB / 0.9241 GB, free: 52.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/1.614, allocations: 22.53 kB / 0.9242 GB, free: 52.81 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/1.614, allocations: 46.25 kB / 0.9242 GB, free: 52.81 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009718/1.615, allocations: 0.6002 MB / 0.9248 GB, free: 52.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00095/1.616, allocations: 0.6854 MB / 0.9255 GB, free: 52.67 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/1.616, allocations: 8.641 kB / 0.9255 GB, free: 52.67 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.815e-05/1.616, allocations: 0 / 0.9255 GB, free: 52.67 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/1.616, allocations: 18.84 kB / 0.9255 GB, free: 52.67 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003805/1.62, allocations: 3.174 MB / 0.9286 GB, free: 51.01 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000592/1.621, allocations: 0.5514 MB / 0.9291 GB, free: 50.89 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004331/1.621, allocations: 324.7 kB / 0.9294 GB, free: 50.88 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001918/1.623, allocations: 2.063 MB / 0.9314 GB, free: 49.44 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/1.623, allocations: 40.97 kB / 0.9315 GB, free: 49.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=44): time 1.653e-06/1.623, allocations: 3.938 kB / 0.9315 GB, free: 49.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=44): time 0.001225/1.625, allocations: 0.5849 MB / 0.9321 GB, free: 49.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.583e-05/1.625, allocations: 57.64 kB / 0.9321 GB, free: 49.23 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005707/1.625, allocations: 0.5888 MB / 0.9327 GB, free: 49.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/1.625, allocations: 25.7 kB / 0.9327 GB, free: 49.06 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/1.625, allocations: 377.2 kB / 0.9331 GB, free: 48.82 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/1.625, allocations: 163.1 kB / 0.9332 GB, free: 48.72 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-05/1.625, allocations: 0 / 0.9332 GB, free: 48.72 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.886e-05/1.626, allocations: 383 kB / 0.9336 GB, free: 48.41 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/1.626, allocations: 223.7 kB / 0.9338 GB, free: 48.41 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003979/1.626, allocations: 493.3 kB / 0.9343 GB, free: 48.09 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/1.627, allocations: 351.9 kB / 0.9346 GB, free: 48.09 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/1.627, allocations: 4.312 kB / 0.9346 GB, free: 48.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001982/1.629, allocations: 0.9186 MB / 0.9355 GB, free: 47.97 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/1.629, allocations: 6.562 kB / 0.9355 GB, free: 47.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/1.629, allocations: 8.281 kB / 0.9355 GB, free: 47.97 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004201/1.63, allocations: 181.4 kB / 0.9357 GB, free: 47.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000688/1.63, allocations: 169.1 kB / 0.9359 GB, free: 47.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001192/1.632, allocations: 2.287 MB / 0.9381 GB, free: 45.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009387/1.633, allocations: 101.2 kB / 0.9382 GB, free: 45.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.662e-05/1.633, allocations: 38.45 kB / 0.9382 GB, free: 45.82 MB / 0.4948 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.0002129/1.633, allocations: 152.3 kB / 0.9384 GB, free: 45.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/1.633, allocations: 75.06 kB / 0.9384 GB, free: 45.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/1.635, allocations: 0.6601 MB / 0.9391 GB, free: 45.57 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/1.635, allocations: 4.812 kB / 0.9391 GB, free: 45.57 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/1.635, allocations: 5.031 kB / 0.9391 GB, free: 45.57 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/1.635, allocations: 6.547 kB / 0.9391 GB, free: 45.57 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008454/1.636, allocations: 0.659 MB / 0.9398 GB, free: 45.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/1.636, allocations: 0 / 0.9398 GB, free: 45.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000481/1.636, allocations: 83.11 kB / 0.9398 GB, free: 45.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004012/1.636, allocations: 167.2 kB / 0.94 GB, free: 45.36 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.185e-05/1.636, allocations: 11.45 kB / 0.94 GB, free: 45.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/1.638, allocations: 2.263 MB / 0.9422 GB, free: 43.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.638, allocations: 3.938 kB / 0.9422 GB, free: 43.28 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001894/1.64, allocations: 1.011 MB / 0.9432 GB, free: 43.05 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002255/1.642, allocations: 1.819 MB / 0.945 GB, free: 42.46 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003417/1.642, allocations: 225.8 kB / 0.9452 GB, free: 42.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/1.642, allocations: 7.875 kB / 0.9452 GB, free: 42.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005659/1.643, allocations: 44.58 kB / 0.9452 GB, free: 42.31 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.317e-05/1.643, allocations: 30.38 kB / 0.9453 GB, free: 42.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/1.643, allocations: 18.41 kB / 0.9453 GB, free: 42.31 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0004496/1.644, allocations: 444.5 kB / 0.9457 GB, free: 42.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003449/1.647, allocations: 1.353 MB / 0.947 GB, free: 41.96 MB / 0.4948 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.00352/1.651, allocations: 1.876 MB / 0.9489 GB, free: 41.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00104/1.652, allocations: 0.5893 MB / 0.9494 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/1.652, allocations: 0 / 0.9494 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004148/1.652, allocations: 281.9 kB / 0.9497 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/1.653, allocations: 305.1 kB / 0.95 GB, free: 41.56 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/1.656, allocations: 1.46 MB / 0.9514 GB, free: 41.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005969/1.656, allocations: 1.118 MB / 0.9525 GB, free: 40.53 MB / 0.4948 GB Notification: Performance of SimCode: time 3.1e-07/1.656, allocations: 3.469 kB / 0.9525 GB, free: 40.53 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Kofranek2014_NonPulsatileCirculation_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Kofranek2014_NonPulsatileCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe 2>&1)