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: "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Influenza.Flu,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Influenza.Flu,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004874/0.004874, allocations: 102.8 kB / 15.74 MB, free: 6.496 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.001262/0.001262, allocations: 194 kB / 16.68 MB, free: 6.375 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3204/0.3204, allocations: 28.82 MB / 319.4 MB, free: 5.621 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 65.42 kB / 443.8 MB, free: 36.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09092/0.09287, allocations: 56.42 MB / 0.4885 GB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002559/0.09546, allocations: 1.948 MB / 0.4904 GB, free: 7.312 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006334/0.09613, allocations: 312.2 kB / 0.4907 GB, free: 7.055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002146/0.0964, allocations: 9.438 kB / 0.4907 GB, free: 7.051 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.09659, allocations: 64.69 kB / 0.4908 GB, free: 6.988 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.0967, allocations: 38.3 kB / 0.4908 GB, free: 6.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.097, allocations: 153.8 kB / 0.491 GB, free: 6.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003407/0.09735, allocations: 367.2 kB / 0.4913 GB, free: 6.602 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00031/0.09767, allocations: 266.2 kB / 0.4916 GB, free: 6.434 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.734e-05/0.09777, allocations: 143.9 kB / 0.4917 GB, free: 6.332 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.09791, allocations: 169.3 kB / 0.4919 GB, free: 6.191 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.239e-05/0.09797, allocations: 42.31 kB / 0.4919 GB, free: 6.188 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.521e-05/0.09802, allocations: 42.38 kB / 0.4919 GB, free: 6.184 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.44e-05/0.09808, allocations: 93.28 kB / 0.492 GB, free: 6.105 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.09821, allocations: 182 kB / 0.4922 GB, free: 5.961 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.09858, allocations: 410.6 kB / 0.4926 GB, free: 5.641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.09859, allocations: 0 / 0.4926 GB, free: 5.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.0986, allocations: 0 / 0.4926 GB, free: 5.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.09862, allocations: 0 / 0.4926 GB, free: 5.641 MB / 366.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.0007676/0.09939, allocations: 0.6942 MB / 0.4933 GB, free: 5.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.09944, allocations: 9.781 kB / 0.4933 GB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.676e-05/0.09954, allocations: 95.16 kB / 0.4934 GB, free: 4.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.489e-05/0.09962, allocations: 54.02 kB / 0.4934 GB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.09999, allocations: 330.2 kB / 0.4937 GB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.1, allocations: 40.72 kB / 0.4938 GB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/0.1001, allocations: 47.56 kB / 0.4938 GB, free: 4.551 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005347/0.1006, allocations: 443.6 kB / 0.4942 GB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.1007, allocations: 5.469 kB / 0.4943 GB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.1007, allocations: 28.27 kB / 0.4943 GB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.1007, allocations: 12.19 kB / 0.4943 GB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.101, allocations: 233.2 kB / 0.4945 GB, free: 4.043 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.1023, allocations: 1.674 MB / 0.4962 GB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.1027, allocations: 189.5 kB / 0.4963 GB, free: 2.094 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.245e-05/0.1028, allocations: 76.83 kB / 0.4964 GB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1028, allocations: 8 kB / 0.4964 GB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001693/0.103, allocations: 119.2 kB / 0.4965 GB, free: 1.879 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.984e-06/0.103, allocations: 0 / 0.4965 GB, free: 1.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.000357/0.1034, allocations: 237.7 kB / 0.4968 GB, free: 1.641 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.999e-05/0.1034, allocations: 51.41 kB / 0.4968 GB, free: 1.578 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.1036, allocations: 250.7 kB / 0.497 GB, free: 1.328 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.1036, allocations: 33.7 kB / 0.4971 GB, free: 1.289 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.1037, allocations: 256.3 kB / 0.4973 GB, free: 1.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.1037, allocations: 75.38 kB / 0.4974 GB, free: 0.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.568e-05/0.1038, allocations: 53.94 kB / 0.4974 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.318e-05/0.1039, allocations: 346.7 kB / 0.4978 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.776e-05/0.1039, allocations: 60.53 kB / 0.4978 GB, free: 500 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.1041, allocations: 137.6 kB / 0.498 GB, free: 332 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.1043, allocations: 208.3 kB / 0.4982 GB, free: 92 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1043, allocations: 4 kB / 0.4982 GB, free: 88 kB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004055/0.1047, allocations: 261.3 kB / 0.4984 GB, free: 15.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.1047, allocations: 12.05 kB / 0.4984 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.1047, allocations: 7.938 kB / 0.4984 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.1047, allocations: 4 kB / 0.4984 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.105, allocations: 43.92 kB / 0.4985 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.105, allocations: 4 kB / 0.4985 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.1051, allocations: 27.78 kB / 0.4985 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.1052, allocations: 12 kB / 0.4985 GB, free: 15.71 MB / 382.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.0001971/0.1054, allocations: 160 kB / 0.4987 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.1054, allocations: 27.86 kB / 0.4987 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003718/0.1058, allocations: 202.9 kB / 0.4989 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1058, allocations: 0 / 0.4989 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.1058, allocations: 0 / 0.4989 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.1058, allocations: 7.984 kB / 0.4989 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007849/0.1066, allocations: 0.6388 MB / 0.4995 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1066, allocations: 0 / 0.4995 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.1068, allocations: 35.86 kB / 0.4996 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1068, allocations: 0 / 0.4996 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.1069, allocations: 8 kB / 0.4996 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1069, allocations: 4 kB / 0.4996 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1069, allocations: 0 / 0.4996 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004857/0.1074, allocations: 366.5 kB / 0.4999 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.884e-05/0.1075, allocations: 108.9 kB / 0.5 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.1075, allocations: 4 kB / 0.5 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.1076, allocations: 4 kB / 0.5 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.1077, allocations: 15.92 kB / 0.5 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.1077, allocations: 4 kB / 0.5 GB, free: 14.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.1079, allocations: 186 kB / 0.5002 GB, free: 13.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1079, allocations: 0 / 0.5002 GB, free: 13.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003519/0.1083, allocations: 75.73 kB / 0.5003 GB, free: 13.8 MB / 382.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.0008287/0.1091, allocations: 0.8879 MB / 0.5012 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.1095, allocations: 171.8 kB / 0.5013 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1095, allocations: 0 / 0.5013 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.1096, allocations: 79.91 kB / 0.5014 GB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.11, allocations: 45.66 kB / 0.5014 GB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003596/0.1136, allocations: 2.817 MB / 0.5042 GB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/0.1141, allocations: 0.8026 MB / 0.505 GB, free: 8.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.1142, allocations: 26.27 kB / 0.505 GB, free: 8.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.1144, allocations: 123.4 kB / 0.5051 GB, free: 8.668 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1144, allocations: 0 / 0.5051 GB, free: 8.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.464/1.578, allocations: 4.953 MB / 0.51 GB, free: 3.797 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/14.92, allocations: 7.438 kB / 0.51 GB, free: 3.793 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu_fmu --startTime=0 --stopTime=52 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)