Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.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/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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(SystemDynamics.IntroductoryExamples.Influenza.Flu,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu") translateModel(SystemDynamics.IntroductoryExamples.Influenza.Flu,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu") [: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.002497/0.002497, allocations: 179.8 kB / 7.463 MB, free: 2.242 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.332/1.332, allocations: 221.4 MB / 229.3 MB, free: 3.227 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.0009317/0.0009317, allocations: 95.86 kB / 280.1 MB, free: 1.211 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1799/0.1799, allocations: 28.85 MB / 359.7 MB, free: 1.496 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 6.492e-06/6.522e-06, allocations: 0 / 423.2 MB, free: 44.14 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1308, allocations: 57.47 MB / 480.7 MB, free: 2.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3632/0.494, allocations: 78.64 MB / 0.5462 GB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.4943, allocations: 59.97 kB / 0.5463 GB, free: 10.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.01236/0.5067, allocations: 4.98 MB / 0.5512 GB, free: 5.863 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.465e-05/0.5067, allocations: 12 kB / 0.5512 GB, free: 5.852 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.0007261/0.5075, allocations: 0.584 MB / 0.5517 GB, free: 5.223 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.5075, allocations: 12.02 kB / 0.5517 GB, free: 5.211 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.971e-05/0.5076, allocations: 55.34 kB / 0.5518 GB, free: 5.156 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.5081, allocations: 306.3 kB / 0.5521 GB, free: 4.816 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.5081, allocations: 16 kB / 0.5521 GB, free: 4.801 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.509e-05/0.5082, allocations: 33.12 kB / 0.5521 GB, free: 4.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003601/0.5085, allocations: 186 kB / 0.5523 GB, free: 4.586 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005624/0.5091, allocations: 358.2 kB / 0.5527 GB, free: 4.203 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.5091, allocations: 0 / 0.5527 GB, free: 4.203 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/0.5092, allocations: 7.969 kB / 0.5527 GB, free: 4.195 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.5092, allocations: 12 kB / 0.5527 GB, free: 4.184 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.511, allocations: 1.566 MB / 0.5542 GB, free: 2.547 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.5112, allocations: 105.7 kB / 0.5543 GB, free: 2.438 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.5114, allocations: 68.86 kB / 0.5544 GB, free: 2.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.5114, allocations: 4 kB / 0.5544 GB, free: 2.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000187/0.5116, allocations: 109.6 kB / 0.5545 GB, free: 2.242 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.274e-06/0.5116, allocations: 0 / 0.5545 GB, free: 2.242 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004028/0.512, allocations: 171.1 kB / 0.5546 GB, free: 2.074 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.5121, allocations: 51.41 kB / 0.5547 GB, free: 2.012 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.5123, allocations: 192 kB / 0.5549 GB, free: 1.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.5123, allocations: 29.69 kB / 0.5549 GB, free: 1.785 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.5125, allocations: 223.7 kB / 0.5551 GB, free: 1.562 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.684e-05/0.5126, allocations: 67 kB / 0.5552 GB, free: 1.496 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.5126, allocations: 4 kB / 0.5552 GB, free: 1.492 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.5128, allocations: 338.7 kB / 0.5555 GB, free: 1.152 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.916e-05/0.5129, allocations: 48.56 kB / 0.5556 GB, free: 1.102 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.513, allocations: 130.5 kB / 0.5557 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.5132, allocations: 69.41 kB / 0.5557 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5132, allocations: 1.75 kB / 0.5557 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003498/0.5135, allocations: 225 kB / 0.556 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.5136, allocations: 4 kB / 0.556 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.5136, allocations: 4 kB / 0.556 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.5136, allocations: 4.281 kB / 0.556 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.5138, allocations: 51.92 kB / 0.556 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.5138, allocations: 4 kB / 0.556 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.514, allocations: 15.75 kB / 0.556 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.514, allocations: 8 kB / 0.556 GB, free: 0.5625 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,Immune.Integrator1.local_reset,Sick.Integrator1.local_reset,Infected.Integrator1.local_reset,Non_infected.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.5141, allocations: 112.9 kB / 0.5562 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.353e-05/0.5141, allocations: 31.69 kB / 0.5562 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/0.5145, allocations: 171.6 kB / 0.5564 GB, free: 244 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.5145, allocations: 0 / 0.5564 GB, free: 244 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.5145, allocations: 8 kB / 0.5564 GB, free: 236 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.5145, allocations: 0 / 0.5564 GB, free: 236 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006636/0.5152, allocations: 0.5533 MB / 0.5569 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.5152, allocations: 3.938 kB / 0.5569 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.5154, allocations: 27.98 kB / 0.5569 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.5154, allocations: 4 kB / 0.5569 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.5154, allocations: 0 / 0.5569 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.5154, allocations: 0 / 0.5569 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5154, allocations: 0 / 0.5569 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005021/0.5159, allocations: 350.3 kB / 0.5573 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.071e-05/0.516, allocations: 104.8 kB / 0.5574 GB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.232e-05/0.5161, allocations: 8 kB / 0.5574 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.5162, allocations: 0 / 0.5574 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.611e-05/0.5163, allocations: 7.984 kB / 0.5574 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.5163, allocations: 8 kB / 0.5574 GB, free: 15.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001305/0.5164, allocations: 144.5 kB / 0.5575 GB, free: 14.96 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003128/0.5167, allocations: 71.44 kB / 0.5576 GB, free: 14.89 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Non_infected.Integrator1.y,Infected.Integrator1.y,Sick.Integrator1.y,Immune.Integrator1.y) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001696/0.5169, allocations: 108.3 kB / 0.5577 GB, free: 14.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003052/0.5172, allocations: 156.1 kB / 0.5578 GB, free: 14.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5172, allocations: 0 / 0.5578 GB, free: 14.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.5174, allocations: 75.92 kB / 0.5579 GB, free: 14.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.5177, allocations: 28.36 kB / 0.5579 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000975/0.5187, allocations: 447.8 kB / 0.5584 GB, free: 14.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005051/0.5192, allocations: 0.8292 MB / 0.5592 GB, free: 13.2 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5193, allocations: 0 / 0.5592 GB, free: 13.2 MB / 394.7 MB Notification: Performance of Templates: time 0.005505/0.5248, allocations: 1.883 MB / 0.561 GB, free: 11.32 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.makefile (rm -f SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe ; mkfifo SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe >> ../files/SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.sim & ./SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)