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.001018/0.001018, allocations: 100.3 kB / 15.98 MB, free: 6.305 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.001066/0.001067, allocations: 195.2 kB / 16.91 MB, free: 6.152 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.3/1.3, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1801/0.1801, allocations: 28.78 MB / 319.5 MB, free: 2.168 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 63.17 kB / 386.7 MB, free: 41.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1091, allocations: 56.42 MB / 443.1 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003325/0.1125, allocations: 1.981 MB / 445.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006642/0.1132, allocations: 294.8 kB / 445.4 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.1134, allocations: 11.94 kB / 445.4 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.1136, allocations: 39.62 kB / 445.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.1137, allocations: 19.81 kB / 445.5 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.114, allocations: 127.9 kB / 445.6 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003743/0.1144, allocations: 376.2 kB / 446 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003808/0.1148, allocations: 268.6 kB / 446.2 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.1149, allocations: 139.4 kB / 446.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.1151, allocations: 167 kB / 446.5 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.622e-05/0.1151, allocations: 36 kB / 446.6 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.528e-05/0.1152, allocations: 40 kB / 446.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.478e-05/0.1152, allocations: 83.7 kB / 446.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.1154, allocations: 206.8 kB / 446.9 MB, free: 404 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000288/0.1157, allocations: 271.8 kB / 447.2 MB, free: 132 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1157, allocations: 0 / 447.2 MB, free: 132 kB / 318.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1157, allocations: 0 / 447.2 MB, free: 132 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1157, allocations: 0 / 447.2 MB, free: 132 kB / 318.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.0009524/0.1167, allocations: 0.6709 MB / 447.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1167, allocations: 12.03 kB / 447.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.328e-05/0.1168, allocations: 52.28 kB / 447.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.1172, allocations: 315.4 kB / 448.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.1173, allocations: 37.38 kB / 448.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.1173, allocations: 52.3 kB / 448.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006302/0.118, allocations: 440.7 kB / 448.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.118, allocations: 4.125 kB / 448.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.118, allocations: 23.94 kB / 448.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.1181, allocations: 8 kB / 448.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.1184, allocations: 231.8 kB / 449 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.1203, allocations: 1.673 MB / 450.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.1207, allocations: 178.4 kB / 450.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.1208, allocations: 83.75 kB / 450.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.1208, allocations: 0 / 450.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002698/0.1211, allocations: 119.3 kB / 451 MB, free: 12.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.1211, allocations: 4 kB / 451 MB, free: 12.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005049/0.1216, allocations: 238.7 kB / 451.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.1217, allocations: 55.41 kB / 451.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003393/0.122, allocations: 254.6 kB / 451.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.1221, allocations: 25.7 kB / 451.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.1223, allocations: 239.9 kB / 451.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.834e-05/0.1224, allocations: 78.94 kB / 451.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1225, allocations: 53.89 kB / 452 MB, free: 11.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1226, allocations: 334.8 kB / 452.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.1228, allocations: 68.53 kB / 452.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.123, allocations: 130.5 kB / 452.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.1235, allocations: 206.9 kB / 452.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1235, allocations: 4 kB / 452.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005153/0.124, allocations: 272.3 kB / 453 MB, free: 9.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.124, allocations: 8 kB / 453 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1241, allocations: 0 / 453 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.1241, allocations: 4 kB / 453 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.1244, allocations: 43.92 kB / 453 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.1244, allocations: 4 kB / 453 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.1246, allocations: 32.02 kB / 453 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.1247, allocations: 19.92 kB / 453.1 MB, free: 9.871 MB / 334.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.0002123/0.1249, allocations: 161.6 kB / 453.2 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-05/0.125, allocations: 23.72 kB / 453.2 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004432/0.1254, allocations: 199.7 kB / 453.4 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.1254, allocations: 4 kB / 453.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1254, allocations: 0 / 453.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1255, allocations: 0 / 453.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008931/0.1264, allocations: 0.6448 MB / 454.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1264, allocations: 0 / 454.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.1266, allocations: 31.98 kB / 454.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.1266, allocations: 0 / 454.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.1266, allocations: 8 kB / 454.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1266, allocations: 0 / 454.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1266, allocations: 0 / 454.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00044/0.1271, allocations: 362.1 kB / 454.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.669e-05/0.1271, allocations: 104.8 kB / 454.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.1272, allocations: 8.031 kB / 454.6 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.1273, allocations: 0 / 454.6 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.284e-05/0.1273, allocations: 15.98 kB / 454.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.1274, allocations: 4 kB / 454.6 MB, free: 8.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001668/0.1275, allocations: 182 kB / 454.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1275, allocations: 0 / 454.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.1279, allocations: 75.53 kB / 454.9 MB, free: 7.977 MB / 334.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 0.0001157/0.128, allocations: 111.1 kB / 455 MB, free: 7.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003419/0.1283, allocations: 171.8 kB / 455.1 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1284, allocations: 0 / 455.1 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.1285, allocations: 79.86 kB / 455.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.1289, allocations: 56.27 kB / 455.3 MB, free: 7.551 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.13, allocations: 0.8185 MB / 456.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.1304, allocations: 0.7987 MB / 456.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.902e-05/0.1305, allocations: 23.44 kB / 456.9 MB, free: 5.855 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1305, allocations: 0 / 456.9 MB, free: 5.855 MB / 334.1 MB Notification: Performance of Templates: time 0.005013/0.1355, allocations: 3.361 MB / 460.3 MB, free: 2.488 MB / 334.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)