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.001276/0.001276, allocations: 119.8 kB / 16.37 MB, free: 6.016 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.00134/0.00134, allocations: 193 kB / 17.31 MB, free: 5.613 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.373/1.373, 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.1864/0.1864, allocations: 28.78 MB / 319.9 MB, free: 1.918 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 68.75 kB / 388 MB, free: 40.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.1004, allocations: 56.43 MB / 444.5 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003384/0.1038, allocations: 1.939 MB / 446.4 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007822/0.1046, allocations: 322.8 kB / 446.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000297/0.1049, allocations: 7.938 kB / 446.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002252/0.1051, allocations: 63.31 kB / 446.8 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.1054, allocations: 31.55 kB / 446.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.1058, allocations: 159.8 kB / 447 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.1063, allocations: 360.3 kB / 447.3 MB, free: 172 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004507/0.1068, allocations: 272.6 kB / 447.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.107, allocations: 139.3 kB / 447.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.1072, allocations: 167 kB / 447.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.271e-05/0.1073, allocations: 36 kB / 447.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.624e-05/0.1073, allocations: 40 kB / 448 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.446e-05/0.1074, allocations: 95.62 kB / 448.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.1076, allocations: 186.9 kB / 448.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004284/0.108, allocations: 402.2 kB / 448.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.108, allocations: 0 / 448.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.108, allocations: 0 / 448.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.1081, allocations: 0 / 448.6 MB, free: 14.85 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.0009651/0.109, allocations: 0.6748 MB / 449.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1091, allocations: 11.89 kB / 449.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.28e-05/0.1092, allocations: 60.27 kB / 449.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.1096, allocations: 323.4 kB / 449.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/0.1097, allocations: 37.38 kB / 449.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.108e-05/0.1097, allocations: 44.38 kB / 449.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.1104, allocations: 448.6 kB / 450.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1104, allocations: 192 / 450.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.336e-05/0.1104, allocations: 23.94 kB / 450.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.1105, allocations: 12 kB / 450.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003854/0.1109, allocations: 231.8 kB / 450.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.1127, allocations: 1.646 MB / 452.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004552/0.1132, allocations: 186.4 kB / 452.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1133, allocations: 75.58 kB / 452.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.1134, allocations: 4 kB / 452.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001852/0.1136, allocations: 123.2 kB / 452.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.1136, allocations: 0 / 452.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.000424/0.114, allocations: 229.2 kB / 452.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.1141, allocations: 59.41 kB / 452.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/0.1143, allocations: 254.6 kB / 453 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.1144, allocations: 29.7 kB / 453.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.1145, allocations: 247.8 kB / 453.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.884e-05/0.1146, allocations: 70.95 kB / 453.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.652e-05/0.1147, allocations: 57.89 kB / 453.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1148, allocations: 338.8 kB / 453.8 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.115, allocations: 60.53 kB / 453.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.1151, allocations: 134.5 kB / 454 MB, free: 9.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.1154, allocations: 210.9 kB / 454.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1154, allocations: 0 / 454.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004564/0.1159, allocations: 264.4 kB / 454.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1159, allocations: 10.81 kB / 454.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1159, allocations: 4 kB / 454.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.116, allocations: 0 / 454.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.1162, allocations: 51.92 kB / 454.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.567e-06/0.1162, allocations: 4 kB / 454.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.1163, allocations: 27.73 kB / 454.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.1163, allocations: 8.281 kB / 454.5 MB, free: 8.605 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.0001521/0.1165, allocations: 169.5 kB / 454.7 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.045e-05/0.1165, allocations: 23.72 kB / 454.7 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003141/0.1168, allocations: 197.1 kB / 454.9 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1169, allocations: 4 kB / 454.9 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1169, allocations: 0 / 454.9 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1169, allocations: 3.984 kB / 454.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006555/0.1175, allocations: 0.6409 MB / 455.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1175, allocations: 4 kB / 455.6 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.1177, allocations: 35.92 kB / 455.6 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.1177, allocations: 4 kB / 455.6 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.1178, allocations: 4 kB / 455.6 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.1178, allocations: 0 / 455.6 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1178, allocations: 0 / 455.6 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004069/0.1182, allocations: 362.2 kB / 455.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.297e-05/0.1183, allocations: 100.9 kB / 456 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.1183, allocations: 4 kB / 456.1 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.1184, allocations: 8 kB / 456.1 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.93e-05/0.1185, allocations: 11.98 kB / 456.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.1185, allocations: 4 kB / 456.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000189/0.1187, allocations: 185.9 kB / 456.3 MB, free: 6.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1187, allocations: 0 / 456.3 MB, free: 6.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.119, allocations: 79.53 kB / 456.3 MB, free: 6.699 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 8.626e-05/0.1191, allocations: 107.1 kB / 456.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002777/0.1194, allocations: 163.8 kB / 456.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1194, allocations: 0 / 456.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.1195, allocations: 83.91 kB / 456.7 MB, free: 6.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.1199, allocations: 44.34 kB / 456.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009534/0.1208, allocations: 0.6105 MB / 457.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.1212, allocations: 0.8031 MB / 458.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.21e-05/0.1213, allocations: 18.3 kB / 458.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.312e-05/0.1214, allocations: 23.44 kB / 458.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1214, allocations: 0 / 458.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of Templates: time 0.005048/0.1264, allocations: 1.857 MB / 460 MB, free: 2.938 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 cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)