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.00113/0.00113, allocations: 105.7 kB / 16.41 MB, free: 6.504 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.001154/0.001154, allocations: 187 kB / 17.34 MB, free: 5.742 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.312/1.312, 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.1727/0.1727, allocations: 28.77 MB / 320 MB, free: 1.922 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001238, allocations: 63.91 kB / 444.9 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1036, allocations: 56.41 MB / 0.4896 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.00299/0.1066, allocations: 1.937 MB / 0.4915 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008039/0.1075, allocations: 322.8 kB / 0.4918 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.1077, allocations: 8 kB / 0.4918 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.1079, allocations: 59.33 kB / 0.4919 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.1081, allocations: 35.55 kB / 0.4919 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.1085, allocations: 159.8 kB / 0.4921 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004486/0.1089, allocations: 364.2 kB / 0.4924 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000379/0.1093, allocations: 272.6 kB / 0.4927 GB, free: 7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.1095, allocations: 139.4 kB / 0.4928 GB, free: 6.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001645/0.1096, allocations: 171 kB / 0.493 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.255e-05/0.1097, allocations: 36 kB / 0.493 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.403e-05/0.1098, allocations: 43.94 kB / 0.493 GB, free: 6.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.658e-05/0.1098, allocations: 87.69 kB / 0.4931 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.11, allocations: 190.8 kB / 0.4933 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.1104, allocations: 402.3 kB / 0.4937 GB, free: 5.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1104, allocations: 0 / 0.4937 GB, free: 5.949 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1104, allocations: 0 / 0.4937 GB, free: 5.949 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.1104, allocations: 3.938 kB / 0.4937 GB, free: 5.945 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.0009156/0.1113, allocations: 0.6787 MB / 0.4944 GB, free: 5.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1114, allocations: 8.031 kB / 0.4944 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.151e-05/0.1114, allocations: 56.28 kB / 0.4944 GB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/0.1119, allocations: 315.5 kB / 0.4947 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.1119, allocations: 41.38 kB / 0.4948 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.343e-05/0.112, allocations: 44.28 kB / 0.4948 GB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.1126, allocations: 440.7 kB / 0.4952 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.1126, allocations: 8.125 kB / 0.4952 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.329e-05/0.1126, allocations: 23.92 kB / 0.4952 GB, free: 4.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.1126, allocations: 12 kB / 0.4953 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003572/0.113, allocations: 231.8 kB / 0.4955 GB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.1147, allocations: 1.65 MB / 0.4971 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003359/0.115, allocations: 182.4 kB / 0.4973 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.1151, allocations: 80.78 kB / 0.4973 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.1152, allocations: 4 kB / 0.4973 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.1154, allocations: 119.3 kB / 0.4975 GB, free: 1.852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.1154, allocations: 0 / 0.4975 GB, free: 1.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003975/0.1158, allocations: 227.2 kB / 0.4977 GB, free: 1.625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.1158, allocations: 59.34 kB / 0.4977 GB, free: 1.555 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.1161, allocations: 254.6 kB / 0.498 GB, free: 1.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.1161, allocations: 33.69 kB / 0.498 GB, free: 1.258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.1162, allocations: 247.9 kB / 0.4982 GB, free: 1.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.295e-05/0.1163, allocations: 70.95 kB / 0.4983 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.406e-05/0.1164, allocations: 61.88 kB / 0.4984 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1165, allocations: 330.8 kB / 0.4987 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.1166, allocations: 60.55 kB / 0.4987 GB, free: 488 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.1168, allocations: 134.5 kB / 0.4989 GB, free: 324 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000274/0.1171, allocations: 215.9 kB / 0.4991 GB, free: 80 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1171, allocations: 0 / 0.4991 GB, free: 80 kB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003872/0.1175, allocations: 261.1 kB / 0.4993 GB, free: 15.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.1175, allocations: 11.94 kB / 0.4993 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1175, allocations: 0 / 0.4993 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.1175, allocations: 4 kB / 0.4993 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.1177, allocations: 47.92 kB / 0.4994 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.1177, allocations: 7.984 kB / 0.4994 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.1179, allocations: 23.75 kB / 0.4994 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.1179, allocations: 12 kB / 0.4994 GB, free: 15.71 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.0001463/0.118, allocations: 161.3 kB / 0.4996 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.1181, allocations: 27.72 kB / 0.4996 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003181/0.1184, allocations: 206.7 kB / 0.4998 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.1184, allocations: 4 kB / 0.4998 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1184, allocations: 0 / 0.4998 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1184, allocations: 0 / 0.4998 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006395/0.1191, allocations: 0.6387 MB / 0.5004 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1191, allocations: 0 / 0.5004 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.1193, allocations: 27.98 kB / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1193, allocations: 0 / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.1193, allocations: 12 kB / 0.5005 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1193, allocations: 0 / 0.5005 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1193, allocations: 0 / 0.5005 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004046/0.1197, allocations: 361.9 kB / 0.5008 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.51e-05/0.1198, allocations: 104.9 kB / 0.5009 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.613e-05/0.1198, allocations: 4 kB / 0.5009 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.12, allocations: 4 kB / 0.5009 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.12, allocations: 15.92 kB / 0.5009 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.12, allocations: 8 kB / 0.5009 GB, free: 14.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001499/0.1202, allocations: 182 kB / 0.5011 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1202, allocations: 0 / 0.5011 GB, free: 13.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.1205, allocations: 79.53 kB / 0.5012 GB, free: 13.8 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 8.591e-05/0.1206, allocations: 107.2 kB / 0.5013 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002907/0.1209, allocations: 167.8 kB / 0.5015 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1209, allocations: 4.062 kB / 0.5015 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.121, allocations: 79.92 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.0003794/0.1214, allocations: 50.8 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.0009651/0.1224, allocations: 0.6395 MB / 0.5022 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.1227, allocations: 0.7986 MB / 0.503 GB, free: 11.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.783e-05/0.1228, allocations: 23.44 kB / 0.503 GB, free: 11.88 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1228, allocations: 4 kB / 0.503 GB, free: 11.87 MB / 398.1 MB Notification: Performance of Templates: time 0.005534/0.1284, allocations: 3.441 MB / 0.5064 GB, free: 8.426 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)