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.001492/0.001492, allocations: 109.3 kB / 16.41 MB, free: 5.992 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.001333/0.001333, allocations: 196.2 kB / 17.34 MB, free: 5.602 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.421/1.421, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1957/0.1957, allocations: 28.79 MB / 320 MB, free: 1.898 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 55.91 kB / 445 MB, free: 2.594 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1158, allocations: 56.42 MB / 0.4896 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003336/0.1191, allocations: 1.937 MB / 0.4915 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007396/0.1199, allocations: 314.8 kB / 0.4918 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.1201, allocations: 11.94 kB / 0.4918 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002491/0.1203, allocations: 59.31 kB / 0.4919 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.1204, allocations: 35.56 kB / 0.4919 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004359/0.1209, allocations: 155.8 kB / 0.4921 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004792/0.1213, allocations: 380.2 kB / 0.4924 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003682/0.1217, allocations: 204.7 kB / 0.4926 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.1219, allocations: 147.3 kB / 0.4928 GB, free: 6.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.1221, allocations: 163 kB / 0.4929 GB, free: 6.734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.814e-05/0.1221, allocations: 40 kB / 0.493 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.722e-05/0.1222, allocations: 36 kB / 0.493 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.993e-05/0.1223, allocations: 91.69 kB / 0.4931 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.1225, allocations: 194.8 kB / 0.4933 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004808/0.1229, allocations: 402 kB / 0.4936 GB, free: 5.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.1229, allocations: 0 / 0.4936 GB, free: 5.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1229, allocations: 0 / 0.4936 GB, free: 5.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.1229, allocations: 4 kB / 0.4936 GB, free: 5.98 MB / 382.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.001182/0.1241, allocations: 0.6897 MB / 0.4943 GB, free: 5.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.1242, allocations: 11.97 kB / 0.4943 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.1243, allocations: 48.66 kB / 0.4944 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005933/0.1249, allocations: 335.5 kB / 0.4947 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.798e-05/0.1249, allocations: 41.31 kB / 0.4947 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.683e-05/0.125, allocations: 44.38 kB / 0.4948 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007297/0.1257, allocations: 440.7 kB / 0.4952 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.1258, allocations: 192 / 0.4952 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.488e-05/0.1258, allocations: 23.94 kB / 0.4952 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.1258, allocations: 12 kB / 0.4952 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004149/0.1262, allocations: 231.8 kB / 0.4955 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002184/0.1284, allocations: 1.654 MB / 0.4971 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004207/0.1288, allocations: 170 kB / 0.4972 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.129, allocations: 77.16 kB / 0.4973 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.129, allocations: 3.953 kB / 0.4973 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.1293, allocations: 121.5 kB / 0.4974 GB, free: 1.883 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1293, allocations: 0 / 0.4974 GB, free: 1.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004892/0.1298, allocations: 233.4 kB / 0.4977 GB, free: 1.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.1298, allocations: 59.41 kB / 0.4977 GB, free: 1.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002799/0.1301, allocations: 254.7 kB / 0.498 GB, free: 1.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.1301, allocations: 25.7 kB / 0.498 GB, free: 1.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.1303, allocations: 252.3 kB / 0.4982 GB, free: 1.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.917e-05/0.1304, allocations: 79.36 kB / 0.4983 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.362e-05/0.1305, allocations: 57.94 kB / 0.4983 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.1307, allocations: 338.8 kB / 0.4987 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.1308, allocations: 64.53 kB / 0.4987 GB, free: 500 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.131, allocations: 134.5 kB / 0.4989 GB, free: 336 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003222/0.1313, allocations: 204.5 kB / 0.4991 GB, free: 100 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.1313, allocations: 4 kB / 0.4991 GB, free: 96 kB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004285/0.1317, allocations: 264.6 kB / 0.4993 GB, free: 15.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1317, allocations: 8 kB / 0.4993 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1317, allocations: 0 / 0.4993 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.1318, allocations: 7.938 kB / 0.4993 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.132, allocations: 47.92 kB / 0.4994 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.132, allocations: 7.938 kB / 0.4994 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.1321, allocations: 32.02 kB / 0.4994 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.1321, allocations: 12 kB / 0.4994 GB, free: 15.72 MB / 398.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.0002111/0.1324, allocations: 165.1 kB / 0.4996 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.918e-05/0.1324, allocations: 27.86 kB / 0.4996 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003866/0.1328, allocations: 198.9 kB / 0.4998 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.1328, allocations: 4 kB / 0.4998 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1328, allocations: 0 / 0.4998 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1328, allocations: 0 / 0.4998 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008017/0.1336, allocations: 0.6309 MB / 0.5004 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1336, allocations: 4 kB / 0.5004 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.1338, allocations: 35.92 kB / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1338, allocations: 0 / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.1338, allocations: 8 kB / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.1338, allocations: 0 / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1338, allocations: 0 / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005015/0.1343, allocations: 362 kB / 0.5008 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.379e-05/0.1344, allocations: 100.9 kB / 0.5009 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.1344, allocations: 12.12 kB / 0.5009 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.1345, allocations: 0 / 0.5009 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.836e-05/0.1346, allocations: 19.97 kB / 0.5009 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.1346, allocations: 4 kB / 0.5009 GB, free: 14.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1348, allocations: 182 kB / 0.5011 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1348, allocations: 3.938 kB / 0.5011 GB, free: 13.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003676/0.1352, allocations: 75.67 kB / 0.5012 GB, free: 13.81 MB / 398.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.0001186/0.1353, allocations: 103.2 kB / 0.5013 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003229/0.1356, allocations: 155.8 kB / 0.5014 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1356, allocations: 0 / 0.5014 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.1357, allocations: 79.84 kB / 0.5015 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.1361, allocations: 40.48 kB / 0.5015 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.1373, allocations: 0.6288 MB / 0.5022 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005262/0.1378, allocations: 0.7953 MB / 0.5029 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.16e-05/0.1379, allocations: 22.28 kB / 0.503 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.54e-05/0.1379, allocations: 27.38 kB / 0.503 GB, free: 11.91 MB / 398.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1379, allocations: 0 / 0.503 GB, free: 11.91 MB / 398.1 MB Notification: Performance of Templates: time 0.006039/0.144, allocations: 1.915 MB / 0.5049 GB, free: 10 MB / 398.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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)