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.00112/0.00112, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001118/0.001118, allocations: 195.3 kB / 16.14 MB, free: 6.602 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.445/1.445, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3197/0.3197, allocations: 28.81 MB / 318.8 MB, free: 5.953 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 386 MB, free: 4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2828, allocations: 56.41 MB / 442.4 MB, free: 39.81 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002337/0.2851, allocations: 1.974 MB / 444.4 MB, free: 38.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004348/0.2856, allocations: 302 kB / 444.7 MB, free: 38.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.2857, allocations: 5.844 kB / 444.7 MB, free: 38.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.2859, allocations: 43.28 kB / 444.8 MB, free: 38.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.887e-05/0.286, allocations: 18.72 kB / 444.8 MB, free: 38.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002543/0.2863, allocations: 146.6 kB / 444.9 MB, free: 38.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002592/0.2865, allocations: 340.5 kB / 445.3 MB, free: 38.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.2868, allocations: 257.5 kB / 445.5 MB, free: 38.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.89e-05/0.2869, allocations: 125.1 kB / 445.6 MB, free: 38.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.287, allocations: 158.3 kB / 445.8 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.397e-05/0.2871, allocations: 23.03 kB / 445.8 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.995e-05/0.2871, allocations: 22.84 kB / 445.8 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.557e-05/0.2872, allocations: 73.22 kB / 445.9 MB, free: 38.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.796e-05/0.2873, allocations: 175 kB / 446.1 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.2875, allocations: 351.4 kB / 446.4 MB, free: 38.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2875, allocations: 0 / 446.4 MB, free: 38.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.2875, allocations: 0 / 446.4 MB, free: 38.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.988e-06/0.2875, allocations: 0 / 446.4 MB, free: 38.22 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.0006792/0.2882, allocations: 0.6775 MB / 447.1 MB, free: 37.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.2882, allocations: 12.5 kB / 447.1 MB, free: 37.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.997e-05/0.2884, allocations: 96.23 kB / 447.2 MB, free: 37.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.05e-05/0.2884, allocations: 53.69 kB / 447.2 MB, free: 37.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.2887, allocations: 312.7 kB / 447.6 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.2887, allocations: 39.62 kB / 447.6 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.581e-05/0.2888, allocations: 48.69 kB / 447.6 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000483/0.2892, allocations: 451.2 kB / 448.1 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2893, allocations: 3.938 kB / 448.1 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.2893, allocations: 22.34 kB / 448.1 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.2893, allocations: 11.5 kB / 448.1 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003199/0.2896, allocations: 234.5 kB / 448.3 MB, free: 37.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.2909, allocations: 1.688 MB / 450 MB, free: 36.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.2912, allocations: 187 kB / 450.2 MB, free: 35.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.837e-05/0.2913, allocations: 79.83 kB / 450.3 MB, free: 35.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.2914, allocations: 0 / 450.3 MB, free: 35.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/0.2916, allocations: 117.3 kB / 450.4 MB, free: 35.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.2916, allocations: 0 / 450.4 MB, free: 35.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003485/0.2919, allocations: 241.7 kB / 450.6 MB, free: 35.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.937e-05/0.2919, allocations: 54.38 kB / 450.7 MB, free: 35.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.2921, allocations: 252.5 kB / 450.9 MB, free: 35.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.2921, allocations: 32.58 kB / 451 MB, free: 35.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.999e-05/0.2922, allocations: 249.5 kB / 451.2 MB, free: 35.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.2923, allocations: 70.33 kB / 451.3 MB, free: 35.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-05/0.2923, allocations: 64.58 kB / 451.4 MB, free: 35.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.698e-05/0.2924, allocations: 339.1 kB / 451.7 MB, free: 34.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.104e-05/0.2925, allocations: 61.12 kB / 451.7 MB, free: 34.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.2926, allocations: 138.5 kB / 451.9 MB, free: 34.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.2928, allocations: 210.9 kB / 452.1 MB, free: 34.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2928, allocations: 6.938 kB / 452.1 MB, free: 34.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002998/0.2931, allocations: 256 kB / 452.3 MB, free: 34.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2932, allocations: 6.094 kB / 452.3 MB, free: 34.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2932, allocations: 4 kB / 452.4 MB, free: 34.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.2932, allocations: 5.594 kB / 452.4 MB, free: 34.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.2934, allocations: 51.64 kB / 452.4 MB, free: 34.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.2934, allocations: 3.094 kB / 452.4 MB, free: 34.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.2935, allocations: 31.59 kB / 452.4 MB, free: 34.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.2935, allocations: 8.531 kB / 452.5 MB, free: 34.41 MB / 366.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.0001065/0.2936, allocations: 162.1 kB / 452.6 MB, free: 34.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.2937, allocations: 23.34 kB / 452.6 MB, free: 34.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002608/0.2939, allocations: 203.5 kB / 452.8 MB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.2939, allocations: 0 / 452.8 MB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.2939, allocations: 2.844 kB / 452.8 MB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.2939, allocations: 0 / 452.8 MB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004886/0.2944, allocations: 0.6395 MB / 453.5 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2945, allocations: 3.984 kB / 453.5 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.2946, allocations: 32.98 kB / 453.5 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2946, allocations: 3.938 kB / 453.5 MB, free: 33.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.2947, allocations: 10.03 kB / 453.5 MB, free: 33.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2947, allocations: 0 / 453.5 MB, free: 33.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2947, allocations: 0 / 453.5 MB, free: 33.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003284/0.295, allocations: 369.5 kB / 453.9 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.551e-05/0.2951, allocations: 102.7 kB / 454 MB, free: 33.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.2951, allocations: 2.906 kB / 454 MB, free: 33.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.2952, allocations: 7.281 kB / 454 MB, free: 33.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.2952, allocations: 17.25 kB / 454 MB, free: 33.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.2953, allocations: 6.344 kB / 454 MB, free: 33.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001097/0.2954, allocations: 176.2 kB / 454.2 MB, free: 33.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2954, allocations: 0 / 454.2 MB, free: 33.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.2957, allocations: 77.02 kB / 454.3 MB, free: 33.2 MB / 366.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.0004684/0.2962, allocations: 0.8909 MB / 455.2 MB, free: 32.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000232/0.2964, allocations: 171 kB / 455.3 MB, free: 32.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2964, allocations: 0 / 455.3 MB, free: 32.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.842e-05/0.2965, allocations: 80.5 kB / 455.4 MB, free: 32.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.2969, allocations: 55.3 kB / 455.5 MB, free: 32.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.2992, allocations: 2.989 MB / 458.4 MB, free: 30.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.2994, allocations: 0.8082 MB / 459.3 MB, free: 29.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.431e-05/0.2995, allocations: 22.23 kB / 459.3 MB, free: 29.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.2996, allocations: 130.3 kB / 459.4 MB, free: 29.34 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2996, allocations: 0 / 459.4 MB, free: 29.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04464/0.3443, allocations: 4.617 MB / 464 MB, free: 28.82 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/0.3445, allocations: 194.3 kB / 464.2 MB, free: 28.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/2.158, allocations: 0 / 464.2 MB, free: 28.57 MB / 366.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)