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.001289/0.001289, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.009482/0.009482, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.469/1.469, allocations: 223.3 MB / 240.3 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3355/0.3355, allocations: 28.83 MB / 320.3 MB, free: 6.168 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0006246/0.0006245, allocations: 4 kB / 388.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3188, allocations: 57.49 MB / 446 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.001557/0.3204, allocations: 1.58 MB / 447.6 MB, free: 31.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000596/0.3211, allocations: 304.6 kB / 447.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.3213, allocations: 5.531 kB / 447.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.3214, allocations: 43.55 kB / 447.9 MB, free: 31.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.3216, allocations: 22.64 kB / 447.9 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.3219, allocations: 131.3 kB / 448.1 MB, free: 31.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.3221, allocations: 338.3 kB / 448.4 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.3224, allocations: 250.3 kB / 448.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.797e-05/0.3225, allocations: 86.17 kB / 448.7 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.3226, allocations: 117.3 kB / 448.8 MB, free: 31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.654e-05/0.3227, allocations: 8.688 kB / 448.8 MB, free: 31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.073e-05/0.3227, allocations: 12.75 kB / 448.9 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.55e-05/0.3227, allocations: 45.25 kB / 448.9 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.291e-05/0.3228, allocations: 170.7 kB / 449.1 MB, free: 30.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.323, allocations: 333.8 kB / 449.4 MB, free: 30.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.323, allocations: 0 / 449.4 MB, free: 30.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3231, allocations: 3.938 kB / 449.4 MB, free: 30.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.3231, allocations: 3.938 kB / 449.4 MB, free: 30.69 MB / 350.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.0006378/0.3237, allocations: 0.5918 MB / 450 MB, free: 30.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.3237, allocations: 11.5 kB / 450 MB, free: 30.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.782e-05/0.3238, allocations: 47.72 kB / 450 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.3241, allocations: 320.9 kB / 450.4 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.3241, allocations: 34.69 kB / 450.4 MB, free: 29.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.3242, allocations: 48.28 kB / 450.4 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005129/0.3247, allocations: 437.8 kB / 450.9 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3247, allocations: 192 / 450.9 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.268e-05/0.3248, allocations: 25.72 kB / 450.9 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.3248, allocations: 15.16 kB / 450.9 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003154/0.3251, allocations: 229 kB / 451.1 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.3265, allocations: 1.667 MB / 452.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.3268, allocations: 176.9 kB / 453 MB, free: 28.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.3269, allocations: 78.38 kB / 453 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.3269, allocations: 2.531 kB / 453.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.3271, allocations: 132.1 kB / 453.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.723e-06/0.3272, allocations: 0 / 453.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003551/0.3275, allocations: 235.4 kB / 453.4 MB, free: 27.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.315e-05/0.3275, allocations: 54.25 kB / 453.5 MB, free: 27.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.3277, allocations: 252.8 kB / 453.7 MB, free: 27.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.3278, allocations: 29.7 kB / 453.7 MB, free: 27.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.235e-05/0.3279, allocations: 241.1 kB / 454 MB, free: 27.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.3279, allocations: 75.92 kB / 454 MB, free: 27.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.328, allocations: 32.56 kB / 454.1 MB, free: 27.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.233e-05/0.328, allocations: 343.2 kB / 454.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.228e-05/0.3281, allocations: 62.84 kB / 454.5 MB, free: 27.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.3282, allocations: 133 kB / 454.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.3285, allocations: 214.6 kB / 454.8 MB, free: 26.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3285, allocations: 0 / 454.8 MB, free: 26.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003016/0.3288, allocations: 258.6 kB / 455.1 MB, free: 26.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3288, allocations: 10.25 kB / 455.1 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3288, allocations: 0 / 455.1 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3288, allocations: 5.781 kB / 455.1 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.329, allocations: 47.98 kB / 455.1 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.329, allocations: 6.219 kB / 455.1 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.3291, allocations: 28.22 kB / 455.2 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.3292, allocations: 12.97 kB / 455.2 MB, free: 26.59 MB / 350.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.0001054/0.3293, allocations: 156.1 kB / 455.3 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/0.3293, allocations: 29.84 kB / 455.4 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002663/0.3296, allocations: 198.7 kB / 455.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3296, allocations: 2.719 kB / 455.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3296, allocations: 0 / 455.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.3296, allocations: 6.75 kB / 455.6 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.3301, allocations: 0.6322 MB / 456.2 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.3301, allocations: 3.938 kB / 456.2 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.3303, allocations: 33.7 kB / 456.2 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.3303, allocations: 0 / 456.2 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.3303, allocations: 6.75 kB / 456.2 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3303, allocations: 0 / 456.2 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3303, allocations: 2.656 kB / 456.2 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.3306, allocations: 365.4 kB / 456.6 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.3307, allocations: 108.4 kB / 456.7 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.3307, allocations: 0 / 456.7 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.3308, allocations: 6.906 kB / 456.7 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.3309, allocations: 11.47 kB / 456.7 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.3309, allocations: 8.812 kB / 456.7 MB, free: 25.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001236/0.331, allocations: 176.8 kB / 456.9 MB, free: 25.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.331, allocations: 0 / 456.9 MB, free: 25.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.3313, allocations: 81.8 kB / 457 MB, free: 25.38 MB / 350.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 8.748e-05/0.3314, allocations: 112 kB / 457.1 MB, free: 25.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000253/0.3317, allocations: 165.6 kB / 457.3 MB, free: 25.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3317, allocations: 0 / 457.3 MB, free: 25.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.421e-05/0.3318, allocations: 76.12 kB / 457.3 MB, free: 25.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.3322, allocations: 51.39 kB / 457.4 MB, free: 25.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009006/0.3331, allocations: 0.8034 MB / 458.2 MB, free: 24.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.3333, allocations: 0.7958 MB / 459 MB, free: 23.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.14e-05/0.3334, allocations: 27.08 kB / 459 MB, free: 23.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.688e-05/0.3335, allocations: 20.56 kB / 459 MB, free: 23.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3335, allocations: 2.625 kB / 459 MB, free: 23.89 MB / 350.1 MB Notification: Performance of Templates: time 0.004345/0.3378, allocations: 1.711 MB / 460.7 MB, free: 23.72 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: