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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001682/0.001682, allocations: 196.2 kB / 16.14 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3517/0.3517, allocations: 28.78 MB / 318.8 MB, free: 5.941 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 55.91 kB / 385.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3574, allocations: 56.41 MB / 442.3 MB, free: 39.77 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002838/0.3603, allocations: 1.976 MB / 444.3 MB, free: 38.65 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005599/0.3609, allocations: 301.2 kB / 444.6 MB, free: 38.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.3611, allocations: 5.906 kB / 444.6 MB, free: 38.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.3613, allocations: 43.2 kB / 444.7 MB, free: 38.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.3614, allocations: 18.81 kB / 444.7 MB, free: 38.53 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.3617, allocations: 137.4 kB / 444.8 MB, free: 38.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003105/0.362, allocations: 347.4 kB / 445.2 MB, free: 38.49 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.3624, allocations: 250.6 kB / 445.4 MB, free: 38.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.756e-05/0.3625, allocations: 127.7 kB / 445.5 MB, free: 38.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.3626, allocations: 154.8 kB / 445.7 MB, free: 38.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.37e-05/0.3627, allocations: 24.81 kB / 445.7 MB, free: 38.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.475e-05/0.3627, allocations: 20.62 kB / 445.7 MB, free: 38.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.995e-05/0.3628, allocations: 73.77 kB / 445.8 MB, free: 38.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.404e-05/0.3629, allocations: 181.1 kB / 446 MB, free: 38.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.3631, allocations: 347.3 kB / 446.3 MB, free: 38.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3631, allocations: 3.938 kB / 446.3 MB, free: 38.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.3631, allocations: 3.938 kB / 446.3 MB, free: 38.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.3631, allocations: 0 / 446.3 MB, free: 38.17 MB / 366.1 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.0007722/0.3639, allocations: 0.6727 MB / 447 MB, free: 37.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.364, allocations: 18.81 kB / 447 MB, free: 37.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.335e-05/0.364, allocations: 50.69 kB / 447.1 MB, free: 37.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.3643, allocations: 313.1 kB / 447.4 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.3644, allocations: 37.5 kB / 447.4 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.471e-05/0.3644, allocations: 47.44 kB / 447.4 MB, free: 37.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.365, allocations: 441.8 kB / 447.9 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.365, allocations: 192 / 447.9 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.365, allocations: 26.47 kB / 447.9 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.365, allocations: 11.75 kB / 447.9 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/0.3654, allocations: 229.3 kB / 448.1 MB, free: 37.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.3668, allocations: 1.67 MB / 449.8 MB, free: 36.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/0.3671, allocations: 181 kB / 450 MB, free: 36.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.3672, allocations: 78.92 kB / 450.1 MB, free: 36.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.3673, allocations: 6.75 kB / 450.1 MB, free: 36.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002546/0.3675, allocations: 117.8 kB / 450.2 MB, free: 35.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.3675, allocations: 0 / 450.2 MB, free: 35.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003571/0.3679, allocations: 228.2 kB / 450.4 MB, free: 35.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.3679, allocations: 62.38 kB / 450.5 MB, free: 35.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.3681, allocations: 257.8 kB / 450.7 MB, free: 35.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.3681, allocations: 29.7 kB / 450.7 MB, free: 35.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.728e-05/0.3682, allocations: 243.4 kB / 451 MB, free: 35.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/0.3683, allocations: 76.25 kB / 451.1 MB, free: 35.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.148e-05/0.3683, allocations: 54.5 kB / 451.1 MB, free: 35.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.767e-05/0.3684, allocations: 338.3 kB / 451.4 MB, free: 34.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.419e-05/0.3685, allocations: 67.25 kB / 451.5 MB, free: 34.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.3686, allocations: 132 kB / 451.6 MB, free: 34.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.3688, allocations: 209.5 kB / 451.8 MB, free: 34.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3688, allocations: 3.062 kB / 451.8 MB, free: 34.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003092/0.3692, allocations: 265.7 kB / 452.1 MB, free: 34.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.3692, allocations: 8.219 kB / 452.1 MB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3692, allocations: 0 / 452.1 MB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3692, allocations: 5.906 kB / 452.1 MB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.3694, allocations: 47.77 kB / 452.2 MB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.3694, allocations: 2.812 kB / 452.2 MB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.3695, allocations: 28.69 kB / 452.2 MB, free: 34.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.3695, allocations: 16.69 kB / 452.2 MB, free: 34.49 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.3697, allocations: 151.9 kB / 452.4 MB, free: 34.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.3697, allocations: 29.97 kB / 452.4 MB, free: 34.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002714/0.37, allocations: 204.1 kB / 452.6 MB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.37, allocations: 2.938 kB / 452.6 MB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.37, allocations: 0 / 452.6 MB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.37, allocations: 3.375 kB / 452.6 MB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005055/0.3705, allocations: 0.6354 MB / 453.2 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3705, allocations: 3.469 kB / 453.2 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.3707, allocations: 35.53 kB / 453.3 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3707, allocations: 0 / 453.3 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.3707, allocations: 6.938 kB / 453.3 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3707, allocations: 0 / 453.3 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3708, allocations: 0 / 453.3 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003468/0.3711, allocations: 363.4 kB / 453.6 MB, free: 33.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.61e-05/0.3712, allocations: 106.2 kB / 453.7 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.3712, allocations: 2.469 kB / 453.7 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.3713, allocations: 9.906 kB / 453.7 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.862e-05/0.3713, allocations: 13 kB / 453.8 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.3714, allocations: 5.219 kB / 453.8 MB, free: 33.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.3715, allocations: 181.5 kB / 453.9 MB, free: 33.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.3715, allocations: 0 / 453.9 MB, free: 33.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002948/0.3718, allocations: 78.62 kB / 454 MB, free: 33.27 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.255e-05/0.3719, allocations: 110.2 kB / 454.1 MB, free: 33.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002515/0.3721, allocations: 159.7 kB / 454.3 MB, free: 33.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3721, allocations: 2.656 kB / 454.3 MB, free: 33.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.024e-05/0.3722, allocations: 73.23 kB / 454.4 MB, free: 33.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003677/0.3726, allocations: 44.36 kB / 454.4 MB, free: 33.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008994/0.3735, allocations: 0.7917 MB / 455.2 MB, free: 32.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/0.3737, allocations: 0.7991 MB / 456 MB, free: 31.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.927e-05/0.3738, allocations: 29.84 kB / 456 MB, free: 31.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.126e-05/0.3739, allocations: 21.03 kB / 456 MB, free: 31.79 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3739, allocations: 0 / 456 MB, free: 31.79 MB / 366.1 MB Notification: Performance of Templates: time 0.004193/0.3781, allocations: 1.737 MB / 457.8 MB, free: 31.62 MB / 366.1 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)