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.005369/0.005369, allocations: 100 kB / 15.73 MB, free: 5.965 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.001542/0.001542, allocations: 198.7 kB / 16.68 MB, free: 5.887 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1637/0.1637, allocations: 28.78 MB / 319.3 MB, free: 1.879 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 67.89 kB / 443.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09389/0.09519, allocations: 56.43 MB / 0.4885 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003035/0.09826, allocations: 1.933 MB / 0.4904 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007131/0.099, allocations: 318.8 kB / 0.4907 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.09923, allocations: 4 kB / 0.4907 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.09944, allocations: 67.31 kB / 0.4907 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.09961, allocations: 27.56 kB / 0.4908 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.09995, allocations: 163.8 kB / 0.4909 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004223/0.1004, allocations: 380.2 kB / 0.4913 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003762/0.1008, allocations: 260.7 kB / 0.4915 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.1009, allocations: 139.4 kB / 0.4917 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.1011, allocations: 171 kB / 0.4918 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.1012, allocations: 40 kB / 0.4919 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.922e-05/0.1012, allocations: 36 kB / 0.4919 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.906e-05/0.1013, allocations: 91.69 kB / 0.492 GB, free: 6.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.1014, allocations: 186.8 kB / 0.4922 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003704/0.1018, allocations: 406.5 kB / 0.4925 GB, free: 6.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1018, allocations: 4 kB / 0.4926 GB, free: 6.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1018, allocations: 4 kB / 0.4926 GB, free: 6.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.1019, allocations: 3.938 kB / 0.4926 GB, free: 6.391 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.0009133/0.1028, allocations: 0.667 MB / 0.4932 GB, free: 5.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1028, allocations: 8.031 kB / 0.4932 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.1029, allocations: 95.61 kB / 0.4933 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.41e-05/0.103, allocations: 52.28 kB / 0.4934 GB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004206/0.1034, allocations: 331.4 kB / 0.4937 GB, free: 5.145 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.1035, allocations: 37.38 kB / 0.4937 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.652e-05/0.1035, allocations: 48.28 kB / 0.4938 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006047/0.1042, allocations: 460.6 kB / 0.4942 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1042, allocations: 3.938 kB / 0.4942 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.896e-05/0.1042, allocations: 19.98 kB / 0.4942 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.1042, allocations: 12 kB / 0.4942 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000382/0.1046, allocations: 235.8 kB / 0.4945 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.1063, allocations: 1.669 MB / 0.4961 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003404/0.1067, allocations: 178.5 kB / 0.4963 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.1068, allocations: 76.83 kB / 0.4963 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.1068, allocations: 4 kB / 0.4963 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001965/0.107, allocations: 123.2 kB / 0.4965 GB, free: 2.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.107, allocations: 4 kB / 0.4965 GB, free: 2.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004032/0.1074, allocations: 239.5 kB / 0.4967 GB, free: 1.918 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.1075, allocations: 51.41 kB / 0.4967 GB, free: 1.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.1077, allocations: 254.7 kB / 0.497 GB, free: 1.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.1078, allocations: 33.7 kB / 0.497 GB, free: 1.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.1079, allocations: 243.8 kB / 0.4972 GB, free: 1.312 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.103e-05/0.108, allocations: 70.98 kB / 0.4973 GB, free: 1.242 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.966e-05/0.108, allocations: 57.89 kB / 0.4974 GB, free: 1.176 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1082, allocations: 342.8 kB / 0.4977 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.1083, allocations: 60.53 kB / 0.4977 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.1084, allocations: 134.5 kB / 0.4979 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/0.1087, allocations: 204.5 kB / 0.4981 GB, free: 392 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1087, allocations: 4 kB / 0.4981 GB, free: 388 kB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003674/0.1091, allocations: 259.4 kB / 0.4983 GB, free: 124 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.1091, allocations: 10.8 kB / 0.4983 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1091, allocations: 4 kB / 0.4983 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1092, allocations: 4 kB / 0.4983 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.1093, allocations: 47.92 kB / 0.4984 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.1094, allocations: 12.22 kB / 0.4984 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1095, allocations: 27.69 kB / 0.4984 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.1095, allocations: 8 kB / 0.4984 GB, free: 12 kB / 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.0001627/0.1097, allocations: 168.2 kB / 0.4986 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.1097, allocations: 23.72 kB / 0.4986 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003106/0.11, allocations: 198.8 kB / 0.4988 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.11, allocations: 0 / 0.4988 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1101, allocations: 0 / 0.4988 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1101, allocations: 3.984 kB / 0.4988 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000645/0.1107, allocations: 0.6387 MB / 0.4994 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1107, allocations: 0 / 0.4994 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.1109, allocations: 35.92 kB / 0.4995 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.1109, allocations: 0 / 0.4995 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.1109, allocations: 11.94 kB / 0.4995 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.111, allocations: 0 / 0.4995 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.111, allocations: 0 / 0.4995 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004227/0.1114, allocations: 361.8 kB / 0.4998 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.1115, allocations: 108.8 kB / 0.4999 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.1115, allocations: 0 / 0.4999 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.1116, allocations: 11.94 kB / 0.4999 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.1116, allocations: 15.92 kB / 0.5 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.1117, allocations: 8 kB / 0.5 GB, free: 14.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001533/0.1118, allocations: 182 kB / 0.5001 GB, free: 14.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1118, allocations: 0 / 0.5001 GB, free: 14.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.1122, allocations: 79.53 kB / 0.5002 GB, free: 14.09 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 0.0006736/0.1128, allocations: 0.8877 MB / 0.5011 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002949/0.1131, allocations: 171.8 kB / 0.5012 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1131, allocations: 0 / 0.5012 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.1133, allocations: 76.47 kB / 0.5013 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.1136, allocations: 45.66 kB / 0.5014 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003028/0.1167, allocations: 2.799 MB / 0.5041 GB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.1171, allocations: 0.8027 MB / 0.5049 GB, free: 9.129 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.034e-05/0.1172, allocations: 26.27 kB / 0.5049 GB, free: 9.105 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.1173, allocations: 131.4 kB / 0.505 GB, free: 8.977 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1173, allocations: 0 / 0.505 GB, free: 8.977 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.1408, allocations: 4.966 MB / 0.5099 GB, free: 4.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.553/7.694, allocations: 15.92 kB / 0.5099 GB, free: 4.086 MB / 398.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)