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.001458/0.001458, allocations: 111.9 kB / 16.41 MB, free: 6.469 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.001569/0.001569, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1612/0.1612, allocations: 28.78 MB / 320 MB, free: 1.895 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.91 kB / 444.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1028, allocations: 56.41 MB / 0.4896 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003034/0.1058, allocations: 1.944 MB / 0.4915 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007552/0.1066, allocations: 314.8 kB / 0.4918 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.1069, allocations: 8 kB / 0.4918 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.1071, allocations: 63.25 kB / 0.4919 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.1073, allocations: 39.55 kB / 0.4919 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003486/0.1076, allocations: 155.8 kB / 0.4921 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.1081, allocations: 372.2 kB / 0.4924 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003866/0.1085, allocations: 268.6 kB / 0.4927 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.1086, allocations: 143.4 kB / 0.4928 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.1088, allocations: 167 kB / 0.493 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.899e-05/0.1089, allocations: 40 kB / 0.493 GB, free: 6.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.485e-05/0.1089, allocations: 36 kB / 0.493 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.982e-05/0.109, allocations: 87.7 kB / 0.4931 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.1091, allocations: 190.8 kB / 0.4933 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003806/0.1095, allocations: 402.3 kB / 0.4937 GB, free: 5.934 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1095, allocations: 4 kB / 0.4937 GB, free: 5.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1095, allocations: 0 / 0.4937 GB, free: 5.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1096, allocations: 4 kB / 0.4937 GB, free: 5.926 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.0008781/0.1104, allocations: 0.6748 MB / 0.4944 GB, free: 5.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.1105, allocations: 11.97 kB / 0.4944 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.108e-05/0.1106, allocations: 52.28 kB / 0.4944 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.111, allocations: 323.5 kB / 0.4947 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.111, allocations: 29.38 kB / 0.4948 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.139e-05/0.1111, allocations: 52.28 kB / 0.4948 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006082/0.1117, allocations: 444.7 kB / 0.4952 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1117, allocations: 4.125 kB / 0.4952 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.1118, allocations: 19.94 kB / 0.4953 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.1118, allocations: 12 kB / 0.4953 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003559/0.1121, allocations: 231.8 kB / 0.4955 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.1138, allocations: 1.654 MB / 0.4971 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003283/0.1142, allocations: 178.4 kB / 0.4973 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.1143, allocations: 80.83 kB / 0.4973 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.1143, allocations: 0 / 0.4973 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.1145, allocations: 121.7 kB / 0.4975 GB, free: 1.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.503e-06/0.1145, allocations: 0 / 0.4975 GB, free: 1.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003799/0.1149, allocations: 229.2 kB / 0.4977 GB, free: 1.609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.115, allocations: 59.41 kB / 0.4977 GB, free: 1.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.1152, allocations: 254.6 kB / 0.498 GB, free: 1.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.1152, allocations: 29.7 kB / 0.498 GB, free: 1.246 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.1154, allocations: 243.9 kB / 0.4982 GB, free: 1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.498e-05/0.1154, allocations: 74.94 kB / 0.4983 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.765e-05/0.1155, allocations: 53.89 kB / 0.4984 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1156, allocations: 342.8 kB / 0.4987 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.1157, allocations: 60.55 kB / 0.4988 GB, free: 472 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.1159, allocations: 138.5 kB / 0.4989 GB, free: 304 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.1162, allocations: 211.8 kB / 0.4991 GB, free: 64 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1162, allocations: 4 kB / 0.4991 GB, free: 60 kB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003604/0.1165, allocations: 257 kB / 0.4993 GB, free: 15.8 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.1166, allocations: 8 kB / 0.4993 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.1166, allocations: 0 / 0.4993 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1166, allocations: 7.938 kB / 0.4993 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.1168, allocations: 43.92 kB / 0.4994 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.1168, allocations: 7.984 kB / 0.4994 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.1169, allocations: 24.03 kB / 0.4994 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.1169, allocations: 16 kB / 0.4994 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.0001388/0.1171, allocations: 165 kB / 0.4996 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.1171, allocations: 23.72 kB / 0.4996 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003052/0.1174, allocations: 202.5 kB / 0.4998 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1174, allocations: 4 kB / 0.4998 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1174, allocations: 4 kB / 0.4998 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1175, allocations: 0 / 0.4998 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006219/0.1181, allocations: 0.6309 MB / 0.5004 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.1181, allocations: 4 kB / 0.5004 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.1183, allocations: 35.98 kB / 0.5005 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1183, allocations: 0 / 0.5005 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.1183, allocations: 8 kB / 0.5005 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1183, allocations: 3.938 kB / 0.5005 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1183, allocations: 0 / 0.5005 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003931/0.1187, allocations: 357.8 kB / 0.5008 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.599e-05/0.1188, allocations: 104.9 kB / 0.5009 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/0.1188, allocations: 4 kB / 0.5009 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.1189, allocations: 4 kB / 0.5009 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.119, allocations: 15.98 kB / 0.5009 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.119, allocations: 4 kB / 0.501 GB, free: 14.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000141/0.1191, allocations: 182 kB / 0.5011 GB, free: 13.87 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1192, allocations: 0 / 0.5011 GB, free: 13.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003098/0.1195, allocations: 75.53 kB / 0.5012 GB, free: 13.79 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 9.062e-05/0.1196, allocations: 107.1 kB / 0.5013 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002698/0.1198, allocations: 163.8 kB / 0.5015 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1198, allocations: 0 / 0.5015 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.838e-05/0.12, allocations: 75.91 kB / 0.5015 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.1203, allocations: 54.83 kB / 0.5016 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009181/0.1213, allocations: 0.6434 MB / 0.5022 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.1217, allocations: 0.8031 MB / 0.503 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.99e-05/0.1217, allocations: 23.44 kB / 0.503 GB, free: 11.86 MB / 398.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1217, allocations: 7.875 kB / 0.503 GB, free: 11.86 MB / 398.1 MB Notification: Performance of Templates: time 0.004944/0.1267, allocations: 3.386 MB / 0.5063 GB, free: 8.465 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)