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.007088/0.007088, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.001368/0.001368, allocations: 192 kB / 16.67 MB, free: 5.961 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1976/0.1976, allocations: 28.78 MB / 319.3 MB, free: 1.883 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.91 kB / 444.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1328, allocations: 56.42 MB / 0.489 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003218/0.1361, allocations: 1.921 MB / 0.4908 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006575/0.1368, allocations: 322.8 kB / 0.4911 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.1369, allocations: 4 kB / 0.4911 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.1372, allocations: 59.31 kB / 0.4912 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.1373, allocations: 35.55 kB / 0.4912 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003422/0.1377, allocations: 167.8 kB / 0.4914 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.1381, allocations: 368.2 kB / 0.4917 GB, free: 7.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000372/0.1385, allocations: 268.6 kB / 0.492 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.1386, allocations: 135.4 kB / 0.4921 GB, free: 6.832 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.1388, allocations: 171 kB / 0.4923 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/0.1389, allocations: 43.94 kB / 0.4923 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.048e-05/0.1389, allocations: 36 kB / 0.4924 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.579e-05/0.139, allocations: 91.69 kB / 0.4925 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.1391, allocations: 190.8 kB / 0.4926 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004005/0.1395, allocations: 398 kB / 0.493 GB, free: 5.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1396, allocations: 0 / 0.493 GB, free: 5.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1396, allocations: 7.938 kB / 0.493 GB, free: 5.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1396, allocations: 0 / 0.493 GB, free: 5.91 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.0009342/0.1405, allocations: 0.6937 MB / 0.4937 GB, free: 5.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1406, allocations: 8.031 kB / 0.4937 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.544e-05/0.1406, allocations: 48.66 kB / 0.4938 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004119/0.1411, allocations: 335.5 kB / 0.4941 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.1411, allocations: 33.38 kB / 0.4941 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.755e-05/0.1412, allocations: 48.38 kB / 0.4942 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005999/0.1418, allocations: 436.7 kB / 0.4946 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.1418, allocations: 8.125 kB / 0.4946 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.865e-05/0.1418, allocations: 23.94 kB / 0.4946 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.1419, allocations: 15.94 kB / 0.4946 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003554/0.1422, allocations: 227.8 kB / 0.4948 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.144, allocations: 1.654 MB / 0.4965 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003607/0.1444, allocations: 174.5 kB / 0.4966 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.1445, allocations: 85.17 kB / 0.4967 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.1445, allocations: 3.953 kB / 0.4967 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.1447, allocations: 121.5 kB / 0.4968 GB, free: 1.797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.1447, allocations: 0 / 0.4968 GB, free: 1.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004222/0.1452, allocations: 233.4 kB / 0.497 GB, free: 1.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.1452, allocations: 55.41 kB / 0.4971 GB, free: 1.496 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.1454, allocations: 254.7 kB / 0.4973 GB, free: 1.238 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1455, allocations: 33.7 kB / 0.4974 GB, free: 1.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.1456, allocations: 256.3 kB / 0.4976 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.852e-05/0.1457, allocations: 67.39 kB / 0.4977 GB, free: 0.875 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/0.1458, allocations: 57.94 kB / 0.4977 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1459, allocations: 342.8 kB / 0.4981 GB, free: 476 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.146, allocations: 56.55 kB / 0.4981 GB, free: 420 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.1462, allocations: 130.5 kB / 0.4982 GB, free: 260 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.1464, allocations: 211.9 kB / 0.4984 GB, free: 20 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1464, allocations: 4 kB / 0.4984 GB, free: 16 kB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003803/0.1468, allocations: 265.2 kB / 0.4987 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1468, allocations: 4 kB / 0.4987 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.1469, allocations: 4 kB / 0.4987 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1469, allocations: 4 kB / 0.4987 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.1471, allocations: 47.92 kB / 0.4988 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.1471, allocations: 4 kB / 0.4988 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.1472, allocations: 35.72 kB / 0.4988 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.1472, allocations: 8 kB / 0.4988 GB, free: 15.64 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.0001527/0.1474, allocations: 169.3 kB / 0.499 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.1474, allocations: 19.86 kB / 0.499 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00033/0.1478, allocations: 206.5 kB / 0.4992 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1478, allocations: 0 / 0.4992 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1478, allocations: 4 kB / 0.4992 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1478, allocations: 0 / 0.4992 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/0.1485, allocations: 0.6347 MB / 0.4998 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1485, allocations: 0 / 0.4998 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001812/0.1487, allocations: 31.98 kB / 0.4998 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1487, allocations: 0 / 0.4998 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.1487, allocations: 8 kB / 0.4998 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1487, allocations: 4 kB / 0.4998 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1487, allocations: 0 / 0.4998 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004249/0.1491, allocations: 370.4 kB / 0.5002 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.1492, allocations: 101 kB / 0.5003 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.1492, allocations: 8 kB / 0.5003 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1493, allocations: 4 kB / 0.5003 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.306e-05/0.1494, allocations: 16.08 kB / 0.5003 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.1494, allocations: 11.98 kB / 0.5003 GB, free: 13.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001544/0.1496, allocations: 182 kB / 0.5005 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1496, allocations: 0 / 0.5005 GB, free: 13.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.1499, allocations: 71.67 kB / 0.5006 GB, free: 13.73 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.402e-05/0.15, allocations: 103.1 kB / 0.5007 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002968/0.1503, allocations: 171.7 kB / 0.5008 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1504, allocations: 4.188 kB / 0.5008 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.1505, allocations: 75.91 kB / 0.5009 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.1509, allocations: 50.81 kB / 0.501 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009493/0.1518, allocations: 0.6288 MB / 0.5016 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.1522, allocations: 0.7987 MB / 0.5024 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.104e-05/0.1523, allocations: 22.3 kB / 0.5024 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/0.1523, allocations: 19.44 kB / 0.5024 GB, free: 11.81 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1523, allocations: 0 / 0.5024 GB, free: 11.81 MB / 398.1 MB Notification: Performance of Templates: time 0.005002/0.1573, allocations: 1.9 MB / 0.5043 GB, free: 9.914 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)