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.001239/0.001239, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001433/0.001433, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.31/0.31, allocations: 28.83 MB / 319.8 MB, free: 6.246 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002912/0.0002912, allocations: 8 kB / 387.9 MB, free: 3.434 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2862, allocations: 57.48 MB / 445.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.001592/0.2879, allocations: 1.491 MB / 446.8 MB, free: 31.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004433/0.2884, allocations: 294.8 kB / 447.1 MB, free: 31.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.2885, allocations: 6 kB / 447.1 MB, free: 31.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.653e-05/0.2886, allocations: 33.05 kB / 447.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.2887, allocations: 24.91 kB / 447.2 MB, free: 31.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.2889, allocations: 102.5 kB / 447.3 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.2892, allocations: 220 kB / 447.5 MB, free: 31.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/0.2894, allocations: 210.6 kB / 447.7 MB, free: 31.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.303e-05/0.2895, allocations: 75.22 kB / 447.8 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.2896, allocations: 109.8 kB / 447.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.2896, allocations: 8.125 kB / 447.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.083e-05/0.2896, allocations: 8.125 kB / 447.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.132e-05/0.2897, allocations: 45.16 kB / 448 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.176e-05/0.2897, allocations: 83.23 kB / 448 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.2899, allocations: 256 kB / 448.3 MB, free: 30.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.2899, allocations: 0 / 448.3 MB, free: 30.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2899, allocations: 7.938 kB / 448.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.2899, allocations: 0 / 448.3 MB, free: 30.89 MB / 350.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.000623/0.2906, allocations: 0.594 MB / 448.9 MB, free: 30.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2906, allocations: 9 kB / 448.9 MB, free: 30.4 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.237e-05/0.2907, allocations: 91.45 kB / 449 MB, free: 30.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.359e-05/0.2908, allocations: 57.23 kB / 449 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.2911, allocations: 311.5 kB / 449.3 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.2911, allocations: 37.11 kB / 449.4 MB, free: 30.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.176e-05/0.2912, allocations: 47.25 kB / 449.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004986/0.2917, allocations: 447.2 kB / 449.9 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2917, allocations: 0 / 449.9 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.2917, allocations: 17.81 kB / 449.9 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.2917, allocations: 15.42 kB / 449.9 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003051/0.292, allocations: 233.5 kB / 450.1 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.2934, allocations: 1.684 MB / 451.8 MB, free: 28.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.2937, allocations: 186.3 kB / 452 MB, free: 28.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.2937, allocations: 6.531 kB / 452 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.2939, allocations: 111.1 kB / 452.1 MB, free: 28.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.2939, allocations: 0 / 452.1 MB, free: 28.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003558/0.2943, allocations: 234 kB / 452.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/0.2943, allocations: 54.03 kB / 452.4 MB, free: 28.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.2946, allocations: 259 kB / 452.6 MB, free: 27.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.2946, allocations: 32.3 kB / 452.7 MB, free: 27.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.2947, allocations: 244.2 kB / 452.9 MB, free: 27.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.605e-05/0.2947, allocations: 71.84 kB / 453 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.097e-06/0.2948, allocations: 4 kB / 453 MB, free: 27.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.874e-05/0.2948, allocations: 343.1 kB / 453.3 MB, free: 27.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.948e-05/0.2949, allocations: 62.06 kB / 453.4 MB, free: 27.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.2951, allocations: 135.6 kB / 453.5 MB, free: 27.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.2952, allocations: 79.91 kB / 453.6 MB, free: 27.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2952, allocations: 0 / 453.6 MB, free: 27.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003074/0.2955, allocations: 256.9 kB / 453.8 MB, free: 26.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2955, allocations: 6.156 kB / 453.8 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2955, allocations: 2.562 kB / 453.9 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.2956, allocations: 5.344 kB / 453.9 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.2957, allocations: 49.86 kB / 453.9 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.2958, allocations: 9.812 kB / 453.9 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2959, allocations: 25.84 kB / 453.9 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.2959, allocations: 13.31 kB / 454 MB, free: 26.89 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.296, allocations: 149.5 kB / 454.1 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.296, allocations: 35.83 kB / 454.1 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002694/0.2963, allocations: 195.3 kB / 454.3 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2963, allocations: 2.625 kB / 454.3 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2963, allocations: 8 kB / 454.3 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.2964, allocations: 6.047 kB / 454.3 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005196/0.2969, allocations: 0.6417 MB / 455 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2969, allocations: 0 / 455 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.2971, allocations: 33.59 kB / 455 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2971, allocations: 0 / 455 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.2971, allocations: 7.156 kB / 455 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2971, allocations: 0 / 455 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2971, allocations: 0 / 455 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003546/0.2975, allocations: 368 kB / 455.4 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.612e-05/0.2975, allocations: 94.2 kB / 455.5 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.2976, allocations: 9.672 kB / 455.5 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.2977, allocations: 6.625 kB / 455.5 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.2977, allocations: 8.797 kB / 455.5 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.2977, allocations: 9.406 kB / 455.5 MB, free: 25.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.2979, allocations: 181.9 kB / 455.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2979, allocations: 0 / 455.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003101/0.2982, allocations: 83.41 kB / 455.8 MB, free: 25.67 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005153/0.2987, allocations: 0.8863 MB / 456.7 MB, free: 24.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002612/0.299, allocations: 164.1 kB / 456.8 MB, free: 24.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.299, allocations: 4.062 kB / 456.8 MB, free: 24.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.2991, allocations: 79.58 kB / 456.9 MB, free: 24.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.2994, allocations: 38.64 kB / 456.9 MB, free: 24.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.3017, allocations: 3.074 MB / 460 MB, free: 22.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.3019, allocations: 0.8145 MB / 460.8 MB, free: 21.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.187e-05/0.302, allocations: 23.52 kB / 460.8 MB, free: 21.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.3022, allocations: 129.8 kB / 461 MB, free: 21.56 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3022, allocations: 0 / 461 MB, free: 21.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01676/0.3189, allocations: 4.443 MB / 465.4 MB, free: 21.15 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001313/0.3191, allocations: 184.6 kB / 465.6 MB, free: 20.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.052, allocations: 0 / 465.6 MB, free: 20.91 MB / 350.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/linux/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) Environment - environmentSimulation: