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.005821/0.005821, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001166/0.001166, allocations: 201.7 kB / 16.68 MB, free: 5.969 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2743/0.2743, allocations: 28.81 MB / 319.4 MB, free: 5.57 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 61.94 kB / 443.8 MB, free: 36.79 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08461/0.08578, allocations: 56.43 MB / 0.4885 GB, free: 8.906 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002482/0.08829, allocations: 1.946 MB / 0.4904 GB, free: 7.371 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004907/0.0888, allocations: 312.9 kB / 0.4907 GB, free: 7.113 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.08895, allocations: 9.75 kB / 0.4907 GB, free: 7.109 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.08912, allocations: 60.53 kB / 0.4908 GB, free: 7.051 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.08923, allocations: 34.59 kB / 0.4908 GB, free: 7.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.08949, allocations: 158.2 kB / 0.491 GB, free: 6.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002853/0.08979, allocations: 370.9 kB / 0.4913 GB, free: 6.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003036/0.0901, allocations: 270.6 kB / 0.4916 GB, free: 6.488 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.327e-05/0.09019, allocations: 141.4 kB / 0.4917 GB, free: 6.391 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.09031, allocations: 169.2 kB / 0.4919 GB, free: 6.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.764e-05/0.09037, allocations: 38 kB / 0.4919 GB, free: 6.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.888e-05/0.09041, allocations: 38.75 kB / 0.4919 GB, free: 6.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.399e-05/0.09047, allocations: 88.17 kB / 0.492 GB, free: 6.176 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.318e-05/0.09057, allocations: 195.1 kB / 0.4922 GB, free: 6.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000313/0.09089, allocations: 401.8 kB / 0.4926 GB, free: 5.707 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.0909, allocations: 0 / 0.4926 GB, free: 5.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09091, allocations: 1.406 kB / 0.4926 GB, free: 5.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.09092, allocations: 0 / 0.4926 GB, free: 5.707 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.0006894/0.09161, allocations: 0.6973 MB / 0.4933 GB, free: 5.078 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.09165, allocations: 9.281 kB / 0.4933 GB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.567e-05/0.09175, allocations: 95.91 kB / 0.4934 GB, free: 4.992 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.5e-05/0.09182, allocations: 52.73 kB / 0.4934 GB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.09214, allocations: 326.4 kB / 0.4937 GB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.09217, allocations: 37.62 kB / 0.4938 GB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/0.09224, allocations: 52.02 kB / 0.4938 GB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.09277, allocations: 447.7 kB / 0.4942 GB, free: 4.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.0928, allocations: 5.156 kB / 0.4942 GB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.09283, allocations: 19.81 kB / 0.4943 GB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.09285, allocations: 12.22 kB / 0.4943 GB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.09315, allocations: 233 kB / 0.4945 GB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.09433, allocations: 1.689 MB / 0.4962 GB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.09463, allocations: 178.5 kB / 0.4963 GB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.09474, allocations: 76.83 kB / 0.4964 GB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.09477, allocations: 7.938 kB / 0.4964 GB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001487/0.09492, allocations: 119.3 kB / 0.4965 GB, free: 1.906 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.09493, allocations: 0 / 0.4965 GB, free: 1.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003165/0.09525, allocations: 237.7 kB / 0.4967 GB, free: 1.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.606e-05/0.09528, allocations: 51.41 kB / 0.4968 GB, free: 1.605 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.09545, allocations: 254.7 kB / 0.497 GB, free: 1.352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.09547, allocations: 33.64 kB / 0.4971 GB, free: 1.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.679e-05/0.09555, allocations: 256.3 kB / 0.4973 GB, free: 1.055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.53e-05/0.09559, allocations: 75.38 kB / 0.4974 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/0.09566, allocations: 61.92 kB / 0.4974 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.452e-05/0.09571, allocations: 342.8 kB / 0.4978 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.633e-05/0.0958, allocations: 56.55 kB / 0.4978 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.09591, allocations: 137.6 kB / 0.498 GB, free: 356 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.09611, allocations: 212.2 kB / 0.4982 GB, free: 112 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.09611, allocations: 0 / 0.4982 GB, free: 112 kB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003389/0.09646, allocations: 261.1 kB / 0.4984 GB, free: 15.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.09648, allocations: 6.188 kB / 0.4984 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.09649, allocations: 4 kB / 0.4984 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.09651, allocations: 4 kB / 0.4984 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.0967, allocations: 47.92 kB / 0.4985 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.09672, allocations: 11.98 kB / 0.4985 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.09684, allocations: 27.78 kB / 0.4985 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.09686, allocations: 8 kB / 0.4985 GB, free: 15.74 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.0001403/0.09701, allocations: 157.9 kB / 0.4987 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.09705, allocations: 27.86 kB / 0.4987 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003048/0.09736, allocations: 206.9 kB / 0.4989 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.09737, allocations: 0 / 0.4989 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.09738, allocations: 0 / 0.4989 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.09739, allocations: 4 kB / 0.4989 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006256/0.09802, allocations: 0.6348 MB / 0.4995 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.09803, allocations: 0 / 0.4995 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.09821, allocations: 31.98 kB / 0.4995 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.09823, allocations: 8 kB / 0.4995 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.09825, allocations: 3.984 kB / 0.4995 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.09826, allocations: 3.938 kB / 0.4996 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.09826, allocations: 3.938 kB / 0.4996 GB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/0.09868, allocations: 362.4 kB / 0.4999 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.757e-05/0.09875, allocations: 104.9 kB / 0.5 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.09879, allocations: 4 kB / 0.5 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.09892, allocations: 12 kB / 0.5 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.09896, allocations: 15.95 kB / 0.5 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.09898, allocations: 8 kB / 0.5 GB, free: 14.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.09913, allocations: 178 kB / 0.5002 GB, free: 13.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09914, allocations: 0 / 0.5002 GB, free: 13.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003091/0.09945, allocations: 71.73 kB / 0.5003 GB, free: 13.83 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.0006483/0.1001, allocations: 0.8997 MB / 0.5012 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002677/0.1004, allocations: 175.7 kB / 0.5013 GB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1004, allocations: 0 / 0.5013 GB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.1005, allocations: 75.91 kB / 0.5014 GB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.1009, allocations: 49.89 kB / 0.5014 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.1037, allocations: 2.813 MB / 0.5042 GB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.104, allocations: 0.8026 MB / 0.505 GB, free: 8.836 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.288e-05/0.1041, allocations: 26.28 kB / 0.505 GB, free: 8.812 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.1043, allocations: 119.4 kB / 0.5051 GB, free: 8.695 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1043, allocations: 0 / 0.5051 GB, free: 8.695 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.1248, allocations: 4.96 MB / 0.51 GB, free: 3.824 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.774/7.899, allocations: 7.938 kB / 0.51 GB, free: 3.816 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 & 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)