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.001469/0.001469, allocations: 102.5 kB / 16.35 MB, free: 5.879 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.001501/0.001501, allocations: 194.3 kB / 17.3 MB, free: 5.52 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1839/0.1839, allocations: 28.78 MB / 319.9 MB, free: 1.934 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 66.55 kB / 388 MB, free: 40.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0913/0.09264, allocations: 56.43 MB / 444.5 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003639/0.09632, allocations: 1.927 MB / 446.4 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008706/0.09723, allocations: 318.8 kB / 446.7 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004207/0.09767, allocations: 11.94 kB / 446.7 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002791/0.09796, allocations: 59.31 kB / 446.8 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.09822, allocations: 35.56 kB / 446.8 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004128/0.09864, allocations: 155.8 kB / 446.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005385/0.09919, allocations: 372.2 kB / 447.3 MB, free: 200 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004424/0.09965, allocations: 272.6 kB / 447.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.0998, allocations: 143.4 kB / 447.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.09999, allocations: 167 kB / 447.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.126e-05/0.1001, allocations: 40 kB / 447.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.218e-05/0.1001, allocations: 36 kB / 448 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.676e-05/0.1002, allocations: 83.7 kB / 448 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.1003, allocations: 194.8 kB / 448.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003961/0.1007, allocations: 398.3 kB / 448.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1008, allocations: 0 / 448.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1008, allocations: 0 / 448.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.1008, allocations: 0 / 448.6 MB, free: 14.88 MB / 334.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.0008859/0.1017, allocations: 0.6825 MB / 449.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1017, allocations: 15.89 kB / 449.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.988e-05/0.1018, allocations: 52.28 kB / 449.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.1022, allocations: 327.3 kB / 449.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.1023, allocations: 37.38 kB / 449.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.1023, allocations: 48.38 kB / 449.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.1029, allocations: 436.7 kB / 450.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1029, allocations: 4.188 kB / 450.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.103, allocations: 23.94 kB / 450.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.103, allocations: 12 kB / 450.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003642/0.1033, allocations: 227.8 kB / 450.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.105, allocations: 1.661 MB / 452.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1054, allocations: 170.5 kB / 452.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.1055, allocations: 84.83 kB / 452.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.1055, allocations: 0 / 452.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001931/0.1057, allocations: 123.2 kB / 452.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.1058, allocations: 0 / 452.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004173/0.1062, allocations: 226.8 kB / 452.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.1062, allocations: 55.34 kB / 452.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002451/0.1065, allocations: 258.6 kB / 453 MB, free: 10.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.1065, allocations: 33.7 kB / 453 MB, free: 10.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.1067, allocations: 239.9 kB / 453.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.015e-05/0.1067, allocations: 78.92 kB / 453.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.1068, allocations: 53.89 kB / 453.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.107, allocations: 334.8 kB / 453.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.1071, allocations: 64.53 kB / 453.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.1072, allocations: 138.5 kB / 453.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.1075, allocations: 206.9 kB / 454.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1075, allocations: 0 / 454.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004138/0.108, allocations: 268.5 kB / 454.4 MB, free: 8.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.108, allocations: 4 kB / 454.4 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.108, allocations: 4 kB / 454.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.108, allocations: 4 kB / 454.4 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.1082, allocations: 43.92 kB / 454.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.1082, allocations: 11.88 kB / 454.5 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.1084, allocations: 23.75 kB / 454.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.1084, allocations: 12 kB / 454.5 MB, free: 8.629 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.000158/0.1086, allocations: 168.7 kB / 454.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.1086, allocations: 23.72 kB / 454.7 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003321/0.1089, allocations: 201.4 kB / 454.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.109, allocations: 0 / 454.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.109, allocations: 0 / 454.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.109, allocations: 0 / 454.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006636/0.1096, allocations: 0.6366 MB / 455.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1097, allocations: 0 / 455.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.1099, allocations: 39.92 kB / 455.6 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1099, allocations: 4 kB / 455.6 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.1099, allocations: 4 kB / 455.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1099, allocations: 0 / 455.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1099, allocations: 7.984 kB / 455.6 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004337/0.1104, allocations: 362 kB / 455.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.715e-05/0.1104, allocations: 92.83 kB / 456 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.1105, allocations: 8 kB / 456 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.1106, allocations: 11.97 kB / 456 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-05/0.1106, allocations: 15.98 kB / 456.1 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.1107, allocations: 8 kB / 456.1 MB, free: 6.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001554/0.1108, allocations: 178 kB / 456.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1108, allocations: 0 / 456.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.1112, allocations: 79.52 kB / 456.3 MB, free: 6.727 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 9.994e-05/0.1113, allocations: 99.22 kB / 456.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.1116, allocations: 172.3 kB / 456.6 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1116, allocations: 0 / 456.6 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.1118, allocations: 79.84 kB / 456.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.1122, allocations: 50.83 kB / 456.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009812/0.1131, allocations: 0.6145 MB / 457.3 MB, free: 5.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.1135, allocations: 0.7909 MB / 458.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.374e-05/0.1136, allocations: 26.28 kB / 458.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.31e-05/0.1136, allocations: 23.44 kB / 458.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of SimCode: time 1.793e-06/0.1137, allocations: 0 / 458.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of Templates: time 0.005295/0.119, allocations: 1.865 MB / 460 MB, free: 2.961 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 -s gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)