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.004718/0.004718, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.001145/0.001145, allocations: 190.2 kB / 16.67 MB, free: 5.871 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1661/0.1661, allocations: 28.79 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.001299/0.001299, allocations: 67.89 kB / 443.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09517, allocations: 56.42 MB / 0.4885 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002994/0.0982, allocations: 1.937 MB / 0.4904 GB, free: 8.672 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000723/0.09895, allocations: 318.8 kB / 0.4907 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/0.09918, allocations: 4 kB / 0.4907 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.0994, allocations: 59.31 kB / 0.4907 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.09956, allocations: 39.56 kB / 0.4908 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.09992, allocations: 163.8 kB / 0.4909 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004164/0.1003, allocations: 372.2 kB / 0.4913 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003682/0.1007, allocations: 260.7 kB / 0.4915 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.1009, allocations: 143.4 kB / 0.4917 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.101, allocations: 167 kB / 0.4918 GB, free: 7.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.406e-05/0.1011, allocations: 36 kB / 0.4919 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.069e-05/0.1012, allocations: 40 kB / 0.4919 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.039e-05/0.1012, allocations: 91.62 kB / 0.492 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.1014, allocations: 190.8 kB / 0.4922 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.1018, allocations: 406 kB / 0.4926 GB, free: 6.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1018, allocations: 7.938 kB / 0.4926 GB, free: 6.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1018, allocations: 4 kB / 0.4926 GB, free: 6.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.1018, allocations: 0 / 0.4926 GB, free: 6.41 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.0009052/0.1028, allocations: 0.6897 MB / 0.4932 GB, free: 5.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1028, allocations: 12.03 kB / 0.4933 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.1029, allocations: 95.59 kB / 0.4933 GB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.556e-05/0.103, allocations: 56.59 kB / 0.4934 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004117/0.1034, allocations: 323.6 kB / 0.4937 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.1035, allocations: 37.38 kB / 0.4937 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.1035, allocations: 48.38 kB / 0.4938 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006087/0.1041, allocations: 448.7 kB / 0.4942 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.1042, allocations: 11.88 kB / 0.4942 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.1042, allocations: 20 kB / 0.4942 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.1042, allocations: 12 kB / 0.4943 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003876/0.1046, allocations: 235.8 kB / 0.4945 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.1064, allocations: 1.677 MB / 0.4961 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003419/0.1067, allocations: 174.5 kB / 0.4963 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.1069, allocations: 76.83 kB / 0.4964 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.1069, allocations: 4 kB / 0.4964 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/0.1071, allocations: 125.7 kB / 0.4965 GB, free: 2.156 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.1071, allocations: 0 / 0.4965 GB, free: 2.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004086/0.1075, allocations: 229.7 kB / 0.4967 GB, free: 1.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.1076, allocations: 55.41 kB / 0.4968 GB, free: 1.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.1078, allocations: 250.7 kB / 0.497 GB, free: 1.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.1078, allocations: 29.7 kB / 0.497 GB, free: 1.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.108, allocations: 252.3 kB / 0.4973 GB, free: 1.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.959e-05/0.1081, allocations: 83.3 kB / 0.4973 GB, free: 1.234 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.864e-05/0.1082, allocations: 57.94 kB / 0.4974 GB, free: 1.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1083, allocations: 338.8 kB / 0.4977 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1084, allocations: 64.53 kB / 0.4978 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.1086, allocations: 134.5 kB / 0.4979 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.1088, allocations: 208.5 kB / 0.4981 GB, free: 380 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1089, allocations: 0 / 0.4981 GB, free: 380 kB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003794/0.1092, allocations: 264.2 kB / 0.4984 GB, free: 112 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.1093, allocations: 7.938 kB / 0.4984 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1093, allocations: 4.281 kB / 0.4984 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.1093, allocations: 8 kB / 0.4984 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.1095, allocations: 47.92 kB / 0.4984 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1095, allocations: 7.938 kB / 0.4984 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.1096, allocations: 27.83 kB / 0.4985 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-05/0.1097, allocations: 16.02 kB / 0.4985 GB, free: 15.99 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.0001522/0.1098, allocations: 160.2 kB / 0.4986 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.263e-05/0.1099, allocations: 23.86 kB / 0.4987 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003331/0.1102, allocations: 202.6 kB / 0.4988 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1102, allocations: 4 kB / 0.4988 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1102, allocations: 0 / 0.4988 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1103, allocations: 0 / 0.4988 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006658/0.1109, allocations: 0.6348 MB / 0.4995 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1109, allocations: 4 kB / 0.4995 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.1111, allocations: 31.92 kB / 0.4995 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1111, allocations: 0 / 0.4995 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.1112, allocations: 8 kB / 0.4995 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.1112, allocations: 0 / 0.4995 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1112, allocations: 0 / 0.4995 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004321/0.1116, allocations: 366.4 kB / 0.4999 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.126e-05/0.1117, allocations: 108.9 kB / 0.5 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.1117, allocations: 4 kB / 0.5 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.1118, allocations: 8 kB / 0.5 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.764e-05/0.1119, allocations: 11.92 kB / 0.5 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.1119, allocations: 4 kB / 0.5 GB, free: 14.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.1121, allocations: 182 kB / 0.5002 GB, free: 14.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1121, allocations: 7.938 kB / 0.5002 GB, free: 14.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.1124, allocations: 79.67 kB / 0.5002 GB, free: 14.08 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.0006728/0.1131, allocations: 0.8919 MB / 0.5011 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002957/0.1134, allocations: 172.2 kB / 0.5013 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1134, allocations: 4.062 kB / 0.5013 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.1135, allocations: 75.92 kB / 0.5014 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003913/0.1139, allocations: 43.81 kB / 0.5014 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.117, allocations: 2.817 MB / 0.5042 GB, free: 9.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.1174, allocations: 0.8026 MB / 0.5049 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.72e-05/0.1175, allocations: 26.28 kB / 0.505 GB, free: 9.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/0.1176, allocations: 123.4 kB / 0.5051 GB, free: 8.949 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1176, allocations: 0 / 0.5051 GB, free: 8.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.1403, allocations: 4.97 MB / 0.5099 GB, free: 4.066 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.518/7.658, allocations: 14.28 kB / 0.5099 GB, free: 4.055 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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu_res.csv --start-time 0 --stop-time 52 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.052 SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)