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.005922/0.005922, allocations: 104.1 kB / 15.73 MB, free: 5.578 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.001202/0.001202, allocations: 189.7 kB / 16.67 MB, free: 5.516 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.324/1.324, allocations: 222.9 MB / 240.3 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.1783/0.1783, allocations: 28.78 MB / 319.3 MB, free: 1.898 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.89 kB / 444.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1045, allocations: 56.43 MB / 0.489 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003193/0.1077, allocations: 1.925 MB / 0.4908 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00087/0.1086, allocations: 318.8 kB / 0.4911 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002778/0.1089, allocations: 12 kB / 0.4912 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.1091, allocations: 59.31 kB / 0.4912 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.1093, allocations: 31.56 kB / 0.4912 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003764/0.1097, allocations: 163.8 kB / 0.4914 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004474/0.1101, allocations: 368.2 kB / 0.4917 GB, free: 7.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003938/0.1105, allocations: 264.7 kB / 0.492 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.1107, allocations: 139.4 kB / 0.4921 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.1109, allocations: 167 kB / 0.4923 GB, free: 6.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.047e-05/0.111, allocations: 40 kB / 0.4923 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.943e-05/0.111, allocations: 40 kB / 0.4924 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.491e-05/0.1111, allocations: 91.64 kB / 0.4925 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.1113, allocations: 190.8 kB / 0.4926 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004145/0.1117, allocations: 402.3 kB / 0.493 GB, free: 5.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1117, allocations: 0 / 0.493 GB, free: 5.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1117, allocations: 0 / 0.493 GB, free: 5.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.1117, allocations: 0 / 0.493 GB, free: 5.938 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.0009775/0.1127, allocations: 0.6786 MB / 0.4937 GB, free: 5.203 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.1127, allocations: 12.03 kB / 0.4937 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.01e-05/0.1128, allocations: 56.28 kB / 0.4937 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004346/0.1133, allocations: 323.4 kB / 0.4941 GB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.1133, allocations: 41.38 kB / 0.4941 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.1134, allocations: 52.28 kB / 0.4941 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005872/0.114, allocations: 432.7 kB / 0.4946 GB, free: 4.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.114, allocations: 4.188 kB / 0.4946 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.114, allocations: 27.94 kB / 0.4946 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.1141, allocations: 15.94 kB / 0.4946 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003727/0.1144, allocations: 223.8 kB / 0.4948 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.1162, allocations: 1.657 MB / 0.4964 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.1165, allocations: 174.5 kB / 0.4966 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.1167, allocations: 88.75 kB / 0.4967 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.1167, allocations: 4 kB / 0.4967 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.1169, allocations: 117.5 kB / 0.4968 GB, free: 1.832 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.813e-06/0.1169, allocations: 0 / 0.4968 GB, free: 1.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004072/0.1173, allocations: 229.3 kB / 0.497 GB, free: 1.602 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.1173, allocations: 55.34 kB / 0.4971 GB, free: 1.535 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.1176, allocations: 254.6 kB / 0.4973 GB, free: 1.277 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.1176, allocations: 33.7 kB / 0.4973 GB, free: 1.238 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.1178, allocations: 247.9 kB / 0.4976 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.385e-05/0.1178, allocations: 70.94 kB / 0.4977 GB, free: 0.918 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.888e-05/0.1179, allocations: 57.89 kB / 0.4977 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1181, allocations: 334.8 kB / 0.498 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.1182, allocations: 60.53 kB / 0.4981 GB, free: 468 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.1183, allocations: 134.5 kB / 0.4982 GB, free: 304 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.1186, allocations: 206.9 kB / 0.4984 GB, free: 68 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1186, allocations: 0 / 0.4984 GB, free: 68 kB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000384/0.119, allocations: 268.6 kB / 0.4987 GB, free: 15.8 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.119, allocations: 8.062 kB / 0.4987 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.119, allocations: 7.938 kB / 0.4987 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.1191, allocations: 4 kB / 0.4987 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.1192, allocations: 47.92 kB / 0.4987 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1193, allocations: 4 kB / 0.4987 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.1194, allocations: 27.73 kB / 0.4988 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.1194, allocations: 8 kB / 0.4988 GB, free: 15.7 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.0001435/0.1196, allocations: 165.2 kB / 0.4989 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.246e-05/0.1196, allocations: 31.7 kB / 0.499 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000316/0.1199, allocations: 206.5 kB / 0.4992 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1199, allocations: 0 / 0.4992 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1199, allocations: 0 / 0.4992 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.12, allocations: 0 / 0.4992 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006295/0.1206, allocations: 0.6386 MB / 0.4998 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1206, allocations: 0 / 0.4998 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.1208, allocations: 31.98 kB / 0.4998 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1208, allocations: 0 / 0.4998 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.1208, allocations: 4 kB / 0.4998 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.1208, allocations: 8 kB / 0.4998 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1208, allocations: 4 kB / 0.4998 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004219/0.1213, allocations: 366.1 kB / 0.5002 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.1213, allocations: 96.86 kB / 0.5003 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/0.1214, allocations: 8 kB / 0.5003 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1215, allocations: 4 kB / 0.5003 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.1215, allocations: 11.98 kB / 0.5003 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.1216, allocations: 4 kB / 0.5003 GB, free: 14.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.1217, allocations: 190 kB / 0.5005 GB, free: 13.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1217, allocations: 0 / 0.5005 GB, free: 13.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.122, allocations: 71.53 kB / 0.5005 GB, free: 13.78 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.000126/0.1222, allocations: 103.1 kB / 0.5006 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003243/0.1225, allocations: 167.8 kB / 0.5008 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1225, allocations: 0.5625 kB / 0.5008 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.1226, allocations: 79.91 kB / 0.5009 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.123, allocations: 47.98 kB / 0.5009 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009783/0.124, allocations: 0.6105 MB / 0.5015 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.1244, allocations: 0.7948 MB / 0.5023 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.912e-05/0.1245, allocations: 26.23 kB / 0.5023 GB, free: 11.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.92e-05/0.1245, allocations: 23.44 kB / 0.5023 GB, free: 11.88 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1245, allocations: 0 / 0.5023 GB, free: 11.88 MB / 398.1 MB Notification: Performance of Templates: time 0.005042/0.1296, allocations: 1.91 MB / 0.5042 GB, free: 9.977 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)