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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009707/0.0009707, allocations: 171.5 kB / 16.12 MB, free: 5.551 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.185/1.185, allocations: 205.4 MB / 222.3 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007092/0.0007092, allocations: 81.05 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1459/0.1459, allocations: 28.84 MB / 347.7 MB, free: 10.98 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.0003227, allocations: 16 kB / 413 MB, free: 47.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06993/0.07027, allocations: 54.64 MB / 467.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2257/0.296, allocations: 78.7 MB / 0.5336 GB, free: 7.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.2963, allocations: 59.97 kB / 0.5336 GB, free: 7.691 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01187/0.3081, allocations: 5.347 MB / 0.5389 GB, free: 2.348 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3082, allocations: 0 / 0.5389 GB, free: 2.348 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.237e-05/0.3082, allocations: 16 kB / 0.5389 GB, free: 2.332 MB / 362.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.0006497/0.3089, allocations: 0.6026 MB / 0.5395 GB, free: 1.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.3089, allocations: 12.03 kB / 0.5395 GB, free: 1.668 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.85e-05/0.309, allocations: 48.38 kB / 0.5395 GB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.3093, allocations: 327.1 kB / 0.5398 GB, free: 1.262 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.3093, allocations: 33.38 kB / 0.5399 GB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.3094, allocations: 48.38 kB / 0.5399 GB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.31, allocations: 440.7 kB / 0.5403 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.31, allocations: 192 / 0.5403 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.31, allocations: 19.94 kB / 0.5404 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.31, allocations: 12 kB / 0.5404 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000333/0.3104, allocations: 227.8 kB / 0.5406 GB, free: 480 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.3119, allocations: 1.681 MB / 0.5422 GB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.3123, allocations: 170.5 kB / 0.5424 GB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.3124, allocations: 84.77 kB / 0.5425 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.3124, allocations: 0 / 0.5425 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000201/0.3126, allocations: 127.2 kB / 0.5426 GB, free: 14.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.292e-06/0.3126, allocations: 0 / 0.5426 GB, free: 14.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003523/0.313, allocations: 233.2 kB / 0.5428 GB, free: 14.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.313, allocations: 51.41 kB / 0.5429 GB, free: 14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.3132, allocations: 254.7 kB / 0.5431 GB, free: 13.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.3133, allocations: 29.7 kB / 0.5431 GB, free: 13.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.3134, allocations: 239.9 kB / 0.5434 GB, free: 13.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.3135, allocations: 82.84 kB / 0.5434 GB, free: 13.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-06/0.3135, allocations: 4 kB / 0.5434 GB, free: 13.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3136, allocations: 342.8 kB / 0.5438 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.686e-05/0.3137, allocations: 60.55 kB / 0.5438 GB, free: 12.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.3138, allocations: 126.8 kB / 0.544 GB, free: 12.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.3141, allocations: 212.3 kB / 0.5442 GB, free: 12.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3141, allocations: 0 / 0.5442 GB, free: 12.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000334/0.3144, allocations: 260.9 kB / 0.5444 GB, free: 12.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.3145, allocations: 8 kB / 0.5444 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3145, allocations: 0 / 0.5444 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3145, allocations: 4 kB / 0.5444 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.3147, allocations: 48.2 kB / 0.5445 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.3147, allocations: 8 kB / 0.5445 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.3148, allocations: 23.73 kB / 0.5445 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.3148, allocations: 12 kB / 0.5445 GB, free: 12.22 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 () * Number of clocked 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.0001312/0.315, allocations: 161.5 kB / 0.5447 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.315, allocations: 23.72 kB / 0.5447 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002936/0.3153, allocations: 207.6 kB / 0.5449 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3153, allocations: 0 / 0.5449 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-06/0.3153, allocations: 4 kB / 0.5449 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3153, allocations: 4 kB / 0.5449 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005908/0.3159, allocations: 0.6357 MB / 0.5455 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3159, allocations: 0 / 0.5455 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.3161, allocations: 35.97 kB / 0.5455 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3161, allocations: 0 / 0.5455 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.3162, allocations: 7.938 kB / 0.5455 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.3162, allocations: 4 kB / 0.5456 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3162, allocations: 0 / 0.5456 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003903/0.3166, allocations: 371.1 kB / 0.5459 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.837e-05/0.3166, allocations: 104.8 kB / 0.546 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.3167, allocations: 4 kB / 0.546 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.3168, allocations: 4 kB / 0.546 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.3168, allocations: 11.98 kB / 0.546 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.3168, allocations: 8 kB / 0.546 GB, free: 10.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001412/0.317, allocations: 178 kB / 0.5462 GB, free: 10.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.317, allocations: 0 / 0.5462 GB, free: 10.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002826/0.3173, allocations: 83.53 kB / 0.5463 GB, free: 10.3 MB / 378.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 () * Number of clocked 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 9.717e-05/0.3174, allocations: 103.9 kB / 0.5464 GB, free: 10.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002694/0.3177, allocations: 163.8 kB / 0.5465 GB, free: 10.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3177, allocations: 0 / 0.5465 GB, free: 10.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.827e-05/0.3178, allocations: 75.92 kB / 0.5466 GB, free: 9.953 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.3181, allocations: 41.03 kB / 0.5466 GB, free: 9.914 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009272/0.3191, allocations: 0.7598 MB / 0.5474 GB, free: 9.129 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.3194, allocations: 0.7989 MB / 0.5482 GB, free: 8.301 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.626e-05/0.3195, allocations: 26.28 kB / 0.5482 GB, free: 8.273 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.301e-05/0.3195, allocations: 19.44 kB / 0.5482 GB, free: 8.254 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3195, allocations: 0 / 0.5482 GB, free: 8.254 MB / 378.7 MB Notification: Performance of Templates: time 0.004117/0.3237, allocations: 1.697 MB / 0.5499 GB, free: 6.562 MB / 378.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)