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.001546/0.001546, allocations: 109 kB / 16.27 MB, free: 6.355 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.001804/0.001805, allocations: 195.2 kB / 17.2 MB, free: 5.953 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 / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.171/0.171, allocations: 28.79 MB / 319.8 MB, free: 1.988 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.12 kB / 387.2 MB, free: 41.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08971/0.09098, allocations: 56.44 MB / 443.7 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003112/0.09413, allocations: 1.93 MB / 445.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006521/0.09481, allocations: 322.9 kB / 445.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.09499, allocations: 7.938 kB / 445.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.09519, allocations: 59.33 kB / 446 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.09534, allocations: 31.55 kB / 446 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.09567, allocations: 151.8 kB / 446.2 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003605/0.09604, allocations: 380.2 kB / 446.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000375/0.09642, allocations: 264.7 kB / 446.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.09655, allocations: 135.4 kB / 446.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.09673, allocations: 175 kB / 447.1 MB, free: 348 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.306e-05/0.09679, allocations: 40 kB / 447.1 MB, free: 308 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.656e-05/0.09684, allocations: 36 kB / 447.2 MB, free: 272 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.066e-05/0.09692, allocations: 87.7 kB / 447.3 MB, free: 184 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.09708, allocations: 198.9 kB / 447.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.09743, allocations: 370.8 kB / 447.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.09745, allocations: 0 / 447.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09746, allocations: 0 / 447.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.09747, allocations: 4 kB / 447.8 MB, free: 15.62 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.0008973/0.09837, allocations: 0.6631 MB / 448.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.09842, allocations: 12.03 kB / 448.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.781e-05/0.09851, allocations: 56.28 kB / 448.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.09887, allocations: 315.4 kB / 448.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.09891, allocations: 37.38 kB / 448.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.113e-05/0.09898, allocations: 48.38 kB / 449 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/0.09955, allocations: 440.6 kB / 449.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.09958, allocations: 8.125 kB / 449.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.09962, allocations: 27.92 kB / 449.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.09964, allocations: 8 kB / 449.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003513/0.09999, allocations: 231.8 kB / 449.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.1016, allocations: 1.665 MB / 451.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.102, allocations: 178.4 kB / 451.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.1021, allocations: 84.83 kB / 451.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.1022, allocations: 0 / 451.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.1024, allocations: 119.3 kB / 451.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.1024, allocations: 4 kB / 451.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004196/0.1029, allocations: 230.8 kB / 451.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.1029, allocations: 55.41 kB / 452 MB, free: 11.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.1032, allocations: 250.6 kB / 452.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.1032, allocations: 33.7 kB / 452.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.1033, allocations: 239.9 kB / 452.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.062e-05/0.1034, allocations: 78.94 kB / 452.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.163e-05/0.1035, allocations: 53.89 kB / 452.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1036, allocations: 334.8 kB / 452.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.1037, allocations: 64.53 kB / 453 MB, free: 10.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.1039, allocations: 130.5 kB / 453.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00026/0.1041, allocations: 210.8 kB / 453.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1041, allocations: 4 kB / 453.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003605/0.1045, allocations: 264.6 kB / 453.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1045, allocations: 8 kB / 453.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1046, allocations: 3.938 kB / 453.6 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.1046, allocations: 4 kB / 453.6 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.1048, allocations: 43.92 kB / 453.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.1048, allocations: 7.984 kB / 453.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.1049, allocations: 23.75 kB / 453.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.1049, allocations: 19.97 kB / 453.7 MB, free: 9.371 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.0001569/0.1051, allocations: 172.7 kB / 453.9 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.1051, allocations: 23.72 kB / 453.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003202/0.1055, allocations: 201.8 kB / 454.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.972e-06/0.1055, allocations: 4 kB / 454.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1055, allocations: 0 / 454.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1055, allocations: 0 / 454.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006723/0.1062, allocations: 0.6387 MB / 454.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1062, allocations: 0 / 454.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.1064, allocations: 31.98 kB / 454.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1064, allocations: 4 kB / 454.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.1064, allocations: 8 kB / 454.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.1064, allocations: 4 kB / 454.8 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1064, allocations: 3.938 kB / 454.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004146/0.1068, allocations: 358.2 kB / 455.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.124e-05/0.1069, allocations: 100.8 kB / 455.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.107, allocations: 8.031 kB / 455.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.1071, allocations: 0 / 455.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.534e-05/0.1071, allocations: 19.98 kB / 455.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.1071, allocations: 4 kB / 455.3 MB, free: 7.715 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001505/0.1073, allocations: 182 kB / 455.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1073, allocations: 0 / 455.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003196/0.1076, allocations: 75.53 kB / 455.5 MB, free: 7.469 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 0.0001099/0.1077, allocations: 111.1 kB / 455.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000328/0.1081, allocations: 172.3 kB / 455.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.1081, allocations: 0 / 455.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.1082, allocations: 83.84 kB / 455.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.1086, allocations: 48.33 kB / 455.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.1096, allocations: 0.6552 MB / 456.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.11, allocations: 0.7948 MB / 457.4 MB, free: 5.539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.904e-05/0.1101, allocations: 23.44 kB / 457.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1101, allocations: 0 / 457.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of Templates: time 0.005095/0.1152, allocations: 3.361 MB / 460.8 MB, free: 2.152 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)