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.00571/0.00571, allocations: 102.5 kB / 15.73 MB, free: 6.031 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.001375/0.001375, allocations: 194.8 kB / 16.67 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2841/0.2841, allocations: 28.82 MB / 319.4 MB, free: 5.633 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 67.39 kB / 443.8 MB, free: 36.44 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09281/0.09415, allocations: 56.43 MB / 0.4885 GB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002725/0.09692, allocations: 1.94 MB / 0.4904 GB, free: 7.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008714/0.09782, allocations: 317.2 kB / 0.4907 GB, free: 7.062 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004146/0.09826, allocations: 12.34 kB / 0.4907 GB, free: 7.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.09855, allocations: 61.88 kB / 0.4908 GB, free: 6.996 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.09879, allocations: 29.34 kB / 0.4908 GB, free: 6.969 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.09919, allocations: 155.2 kB / 0.4909 GB, free: 6.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004895/0.09969, allocations: 373.2 kB / 0.4913 GB, free: 6.609 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004098/0.1001, allocations: 266.4 kB / 0.4916 GB, free: 6.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.1003, allocations: 140.9 kB / 0.4917 GB, free: 6.344 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.1005, allocations: 165.5 kB / 0.4918 GB, free: 6.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.369e-05/0.1005, allocations: 38.75 kB / 0.4919 GB, free: 6.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.066e-05/0.1006, allocations: 37.91 kB / 0.4919 GB, free: 6.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.04e-05/0.1007, allocations: 97.33 kB / 0.492 GB, free: 6.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.1008, allocations: 189.8 kB / 0.4922 GB, free: 5.973 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000414/0.1013, allocations: 402.1 kB / 0.4926 GB, free: 5.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1013, allocations: 0 / 0.4926 GB, free: 5.664 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1013, allocations: 0 / 0.4926 GB, free: 5.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.836e-05/0.1013, allocations: 0 / 0.4926 GB, free: 5.664 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.001001/0.1023, allocations: 0.6794 MB / 0.4932 GB, free: 5.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1024, allocations: 9.344 kB / 0.4933 GB, free: 5.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001468/0.1025, allocations: 99.17 kB / 0.4933 GB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.1026, allocations: 50.12 kB / 0.4934 GB, free: 4.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004567/0.1031, allocations: 334.2 kB / 0.4937 GB, free: 4.621 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.152e-05/0.1031, allocations: 33.47 kB / 0.4937 GB, free: 4.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.15e-05/0.1032, allocations: 47.44 kB / 0.4938 GB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/0.1038, allocations: 460.4 kB / 0.4942 GB, free: 4.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1039, allocations: 3.938 kB / 0.4942 GB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.1039, allocations: 20 kB / 0.4943 GB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.1039, allocations: 12 kB / 0.4943 GB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003202/0.1042, allocations: 235.8 kB / 0.4945 GB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.1057, allocations: 1.661 MB / 0.4961 GB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.1061, allocations: 196.5 kB / 0.4963 GB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.638e-05/0.1062, allocations: 80.72 kB / 0.4964 GB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.1062, allocations: 7.984 kB / 0.4964 GB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001667/0.1064, allocations: 115.3 kB / 0.4965 GB, free: 1.848 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.324e-06/0.1064, allocations: 0 / 0.4965 GB, free: 1.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003803/0.1068, allocations: 233.2 kB / 0.4967 GB, free: 1.613 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.565e-05/0.1068, allocations: 63.34 kB / 0.4968 GB, free: 1.539 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.107, allocations: 250.7 kB / 0.497 GB, free: 1.289 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.107, allocations: 25.7 kB / 0.497 GB, free: 1.258 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1071, allocations: 243.9 kB / 0.4973 GB, free: 1.012 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.618e-05/0.1072, allocations: 82.84 kB / 0.4974 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.405e-05/0.1073, allocations: 53.98 kB / 0.4974 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.203e-05/0.1073, allocations: 342.7 kB / 0.4977 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.824e-05/0.1074, allocations: 60.53 kB / 0.4978 GB, free: 476 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.1075, allocations: 133.6 kB / 0.4979 GB, free: 312 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.1077, allocations: 212.3 kB / 0.4981 GB, free: 68 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1077, allocations: 0 / 0.4981 GB, free: 68 kB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003814/0.1081, allocations: 264.9 kB / 0.4984 GB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1082, allocations: 8 kB / 0.4984 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1082, allocations: 0 / 0.4984 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.1082, allocations: 4 kB / 0.4984 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.1084, allocations: 51.92 kB / 0.4984 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1084, allocations: 4 kB / 0.4984 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1085, allocations: 23.75 kB / 0.4985 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.1086, allocations: 12.28 kB / 0.4985 GB, free: 15.7 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.0001733/0.1087, allocations: 171.8 kB / 0.4986 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.551e-05/0.1088, allocations: 23.72 kB / 0.4987 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003222/0.1091, allocations: 198.9 kB / 0.4988 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.1091, allocations: 7.984 kB / 0.4989 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1091, allocations: 0 / 0.4989 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.1091, allocations: 3.984 kB / 0.4989 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006786/0.1098, allocations: 0.6309 MB / 0.4995 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1098, allocations: 0 / 0.4995 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.11, allocations: 39.98 kB / 0.4995 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.11, allocations: 0 / 0.4995 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.1101, allocations: 0 / 0.4995 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1101, allocations: 7.938 kB / 0.4995 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1101, allocations: 0 / 0.4995 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004398/0.1105, allocations: 365.9 kB / 0.4999 GB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.49e-05/0.1106, allocations: 104.8 kB / 0.5 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.1106, allocations: 4 kB / 0.5 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.1108, allocations: 8 kB / 0.5 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.1108, allocations: 15.92 kB / 0.5 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.1108, allocations: 8 kB / 0.5 GB, free: 14.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001688/0.111, allocations: 182 kB / 0.5002 GB, free: 13.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.111, allocations: 0 / 0.5002 GB, free: 13.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000324/0.1113, allocations: 75.53 kB / 0.5002 GB, free: 13.78 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.000689/0.112, allocations: 0.8955 MB / 0.5011 GB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002863/0.1123, allocations: 171.8 kB / 0.5013 GB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1123, allocations: 0 / 0.5013 GB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.1124, allocations: 75.92 kB / 0.5014 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.1128, allocations: 49.88 kB / 0.5014 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00317/0.116, allocations: 2.798 MB / 0.5041 GB, free: 9.637 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.1164, allocations: 0.8026 MB / 0.5049 GB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.1166, allocations: 26.28 kB / 0.5049 GB, free: 8.785 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.1167, allocations: 127.4 kB / 0.5051 GB, free: 8.66 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1168, allocations: 0 / 0.5051 GB, free: 8.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.1422, allocations: 5.016 MB / 0.51 GB, free: 3.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.529/7.671, allocations: 2.672 kB / 0.51 GB, free: 3.73 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)