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.0012/0.0012, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001123, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3036/0.3036, allocations: 28.8 MB / 319.2 MB, free: 5.758 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 55.91 kB / 386.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2657, allocations: 56.42 MB / 443.1 MB, free: 39.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002628/0.2684, allocations: 1.936 MB / 445.1 MB, free: 38.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000524/0.269, allocations: 309.2 kB / 445.4 MB, free: 38.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.2691, allocations: 9.625 kB / 445.4 MB, free: 38.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.2693, allocations: 62.7 kB / 445.5 MB, free: 38.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.2694, allocations: 34.28 kB / 445.5 MB, free: 38.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003019/0.2697, allocations: 151.7 kB / 445.6 MB, free: 38.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.27, allocations: 373.1 kB / 446 MB, free: 38.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.2703, allocations: 271.5 kB / 446.3 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.486e-05/0.2704, allocations: 137.1 kB / 446.4 MB, free: 38.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.2706, allocations: 168 kB / 446.6 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.658e-05/0.2706, allocations: 39.69 kB / 446.6 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.823e-05/0.2707, allocations: 36.25 kB / 446.6 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.009e-05/0.2707, allocations: 91.83 kB / 446.7 MB, free: 38.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.2709, allocations: 196 kB / 446.9 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002703/0.2711, allocations: 370.4 kB / 447.3 MB, free: 38.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2711, allocations: 0 / 447.3 MB, free: 38.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2712, allocations: 6.125 kB / 447.3 MB, free: 38.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.2712, allocations: 0 / 447.3 MB, free: 38.12 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.000846/0.272, allocations: 0.6686 MB / 448 MB, free: 37.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.2721, allocations: 11.95 kB / 448 MB, free: 37.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.2722, allocations: 94.69 kB / 448.1 MB, free: 37.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.258e-05/0.2723, allocations: 54.53 kB / 448.1 MB, free: 37.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.2726, allocations: 319.5 kB / 448.4 MB, free: 37.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.2726, allocations: 37.94 kB / 448.5 MB, free: 37.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.988e-05/0.2727, allocations: 56.56 kB / 448.5 MB, free: 37.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004953/0.2732, allocations: 446.4 kB / 449 MB, free: 37.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2732, allocations: 6.938 kB / 449 MB, free: 37.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.917e-05/0.2732, allocations: 26.31 kB / 449 MB, free: 37.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.2732, allocations: 13.84 kB / 449 MB, free: 37.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003173/0.2735, allocations: 233.4 kB / 449.2 MB, free: 37.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.2749, allocations: 1.686 MB / 450.9 MB, free: 35.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003056/0.2752, allocations: 177.5 kB / 451.1 MB, free: 35.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.756e-05/0.2753, allocations: 80.5 kB / 451.2 MB, free: 35.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.2753, allocations: 2.906 kB / 451.2 MB, free: 35.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.2755, allocations: 122.9 kB / 451.3 MB, free: 35.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.703e-06/0.2756, allocations: 0 / 451.3 MB, free: 35.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003522/0.2759, allocations: 229 kB / 451.5 MB, free: 35.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.2759, allocations: 54.38 kB / 451.6 MB, free: 35.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.2761, allocations: 252.8 kB / 451.8 MB, free: 35.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.2762, allocations: 36.48 kB / 451.8 MB, free: 35.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.585e-05/0.2762, allocations: 251.4 kB / 452.1 MB, free: 35.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.2763, allocations: 70.3 kB / 452.2 MB, free: 34.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.475e-05/0.2764, allocations: 52.84 kB / 452.2 MB, free: 34.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.807e-05/0.2764, allocations: 342.8 kB / 452.5 MB, free: 34.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.28e-05/0.2765, allocations: 62.61 kB / 452.6 MB, free: 34.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.2766, allocations: 139.7 kB / 452.7 MB, free: 34.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.2769, allocations: 212.5 kB / 453 MB, free: 34.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2769, allocations: 2.719 kB / 453 MB, free: 34.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003108/0.2772, allocations: 259.6 kB / 453.2 MB, free: 34.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2772, allocations: 5.375 kB / 453.2 MB, free: 34.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.2772, allocations: 2.938 kB / 453.2 MB, free: 34.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.2772, allocations: 2.906 kB / 453.2 MB, free: 34.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.2774, allocations: 51.81 kB / 453.3 MB, free: 34.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.2774, allocations: 7.031 kB / 453.3 MB, free: 34.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.2775, allocations: 28.09 kB / 453.3 MB, free: 34.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.2776, allocations: 16.17 kB / 453.3 MB, free: 34.13 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.0001152/0.2777, allocations: 161.8 kB / 453.5 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.2777, allocations: 28.16 kB / 453.5 MB, free: 33.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.278, allocations: 199.8 kB / 453.7 MB, free: 33.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.278, allocations: 2.875 kB / 453.7 MB, free: 33.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.278, allocations: 0 / 453.7 MB, free: 33.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.278, allocations: 3.281 kB / 453.7 MB, free: 33.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005159/0.2786, allocations: 0.6476 MB / 454.4 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.2786, allocations: 0 / 454.4 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.2788, allocations: 34.77 kB / 454.4 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2788, allocations: 4 kB / 454.4 MB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.2788, allocations: 6.625 kB / 454.4 MB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2788, allocations: 0 / 454.4 MB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2788, allocations: 0 / 454.4 MB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000353/0.2792, allocations: 367 kB / 454.8 MB, free: 33.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.2792, allocations: 107.8 kB / 454.9 MB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.2793, allocations: 6.719 kB / 454.9 MB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.2794, allocations: 4 kB / 454.9 MB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.107e-05/0.2794, allocations: 16.64 kB / 454.9 MB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.2794, allocations: 8.562 kB / 454.9 MB, free: 33.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001138/0.2796, allocations: 177.8 kB / 455.1 MB, free: 32.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2796, allocations: 0 / 455.1 MB, free: 32.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.2799, allocations: 73.62 kB / 455.1 MB, free: 32.91 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.0004926/0.2804, allocations: 0.8938 MB / 456 MB, free: 32.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002797/0.2807, allocations: 179.8 kB / 456.2 MB, free: 32.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2807, allocations: 0 / 456.2 MB, free: 32.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.117e-05/0.2808, allocations: 76.95 kB / 456.3 MB, free: 32.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/0.2812, allocations: 48.91 kB / 456.3 MB, free: 32.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.2838, allocations: 2.82 MB / 459.2 MB, free: 30.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.284, allocations: 0.7999 MB / 460 MB, free: 29.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.686e-05/0.2841, allocations: 23.75 kB / 460 MB, free: 29.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.2843, allocations: 129.5 kB / 460.1 MB, free: 29.23 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.2843, allocations: 2.781 kB / 460.1 MB, free: 29.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.3061, allocations: 4.834 MB / 464.9 MB, free: 28.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.525/7.831, allocations: 2.5 kB / 464.9 MB, free: 28.59 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)