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.001456/0.001457, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002323/0.002323, allocations: 192.5 kB / 16.25 MB, free: 6.625 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.567/1.567, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3021/0.3021, allocations: 28.8 MB / 318.9 MB, free: 5.84 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.91 kB / 386.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3642, allocations: 56.41 MB / 442.6 MB, free: 39.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002843/0.3671, allocations: 1.969 MB / 444.6 MB, free: 38.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005155/0.3677, allocations: 301.7 kB / 444.9 MB, free: 38.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.3678, allocations: 9.562 kB / 444.9 MB, free: 38.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.368, allocations: 46.47 kB / 444.9 MB, free: 38.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.722e-05/0.3681, allocations: 14.94 kB / 445 MB, free: 38.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.3684, allocations: 133 kB / 445.1 MB, free: 38.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003154/0.3688, allocations: 373.7 kB / 445.5 MB, free: 38.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003231/0.3691, allocations: 265.1 kB / 445.7 MB, free: 38.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.389e-05/0.3692, allocations: 143.8 kB / 445.9 MB, free: 38.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.3693, allocations: 166.3 kB / 446 MB, free: 38.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.832e-05/0.3694, allocations: 39.88 kB / 446.1 MB, free: 38.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.127e-05/0.3694, allocations: 41.12 kB / 446.1 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.043e-05/0.3695, allocations: 92.34 kB / 446.2 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.3696, allocations: 188.5 kB / 446.4 MB, free: 38.24 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.3699, allocations: 369.4 kB / 446.7 MB, free: 38.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.37, allocations: 0 / 446.7 MB, free: 38.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.37, allocations: 0 / 446.7 MB, free: 38.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.37, allocations: 0 / 446.7 MB, free: 38.15 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.0007906/0.3708, allocations: 0.677 MB / 447.4 MB, free: 37.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.3708, allocations: 14.97 kB / 447.4 MB, free: 37.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.3709, allocations: 87.83 kB / 447.5 MB, free: 37.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.49e-05/0.371, allocations: 54.34 kB / 447.6 MB, free: 37.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002917/0.3713, allocations: 316.4 kB / 447.9 MB, free: 37.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.3713, allocations: 38.25 kB / 447.9 MB, free: 37.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.3714, allocations: 51.53 kB / 448 MB, free: 37.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005151/0.3719, allocations: 451.6 kB / 448.4 MB, free: 37.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.3719, allocations: 7.875 kB / 448.4 MB, free: 37.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.372, allocations: 19.16 kB / 448.4 MB, free: 37.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.372, allocations: 18.09 kB / 448.4 MB, free: 37.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/0.3723, allocations: 232.2 kB / 448.7 MB, free: 37.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.3736, allocations: 1.693 MB / 450.4 MB, free: 35.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.3739, allocations: 177.7 kB / 450.5 MB, free: 35.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.374, allocations: 73.89 kB / 450.6 MB, free: 35.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.374, allocations: 2.906 kB / 450.6 MB, free: 35.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.3742, allocations: 126.5 kB / 450.7 MB, free: 35.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.3742, allocations: 0 / 450.7 MB, free: 35.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003523/0.3746, allocations: 238 kB / 451 MB, free: 35.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.3746, allocations: 54.34 kB / 451 MB, free: 35.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.3748, allocations: 254.7 kB / 451.3 MB, free: 35.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.3748, allocations: 29.7 kB / 451.3 MB, free: 35.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.3749, allocations: 253.5 kB / 451.5 MB, free: 35.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.3749, allocations: 67.22 kB / 451.6 MB, free: 35.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.788e-05/0.375, allocations: 64.47 kB / 451.7 MB, free: 35.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.31e-05/0.3751, allocations: 346.1 kB / 452 MB, free: 34.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.907e-05/0.3751, allocations: 54.73 kB / 452.1 MB, free: 34.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.3753, allocations: 137.9 kB / 452.2 MB, free: 34.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.3755, allocations: 214.4 kB / 452.4 MB, free: 34.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.3755, allocations: 2.844 kB / 452.4 MB, free: 34.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002995/0.3758, allocations: 254.7 kB / 452.7 MB, free: 34.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.3758, allocations: 5.25 kB / 452.7 MB, free: 34.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3758, allocations: 2.781 kB / 452.7 MB, free: 34.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3758, allocations: 9.438 kB / 452.7 MB, free: 34.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.376, allocations: 50.11 kB / 452.7 MB, free: 34.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.376, allocations: 9.125 kB / 452.7 MB, free: 34.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.3761, allocations: 31.41 kB / 452.8 MB, free: 34.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.3762, allocations: 8.75 kB / 452.8 MB, free: 34.24 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.0001195/0.3763, allocations: 157.9 kB / 452.9 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.3763, allocations: 27.81 kB / 453 MB, free: 34.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002747/0.3766, allocations: 192.8 kB / 453.1 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3766, allocations: 10.88 kB / 453.2 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3766, allocations: 0 / 453.2 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3766, allocations: 3.234 kB / 453.2 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005191/0.3771, allocations: 0.6349 MB / 453.8 MB, free: 33.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3772, allocations: 0 / 453.8 MB, free: 33.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.3773, allocations: 37.5 kB / 453.8 MB, free: 33.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.3773, allocations: 2.438 kB / 453.8 MB, free: 33.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.3774, allocations: 4 kB / 453.8 MB, free: 33.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3774, allocations: 2.562 kB / 453.8 MB, free: 33.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3774, allocations: 0 / 453.8 MB, free: 33.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003639/0.3777, allocations: 363.1 kB / 454.2 MB, free: 33.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.3778, allocations: 104.9 kB / 454.3 MB, free: 33.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.3778, allocations: 2.656 kB / 454.3 MB, free: 33.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.3779, allocations: 6.719 kB / 454.3 MB, free: 33.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.378, allocations: 15.97 kB / 454.3 MB, free: 33.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.378, allocations: 9.844 kB / 454.3 MB, free: 33.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.3781, allocations: 177.6 kB / 454.5 MB, free: 33.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3781, allocations: 7.938 kB / 454.5 MB, free: 33.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002924/0.3784, allocations: 73.94 kB / 454.6 MB, free: 33.02 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.0005667/0.379, allocations: 0.8892 MB / 455.5 MB, free: 32.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002922/0.3793, allocations: 182.6 kB / 455.7 MB, free: 32.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3793, allocations: 2.688 kB / 455.7 MB, free: 32.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.004e-05/0.3794, allocations: 78.66 kB / 455.7 MB, free: 32.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.3798, allocations: 53.14 kB / 455.8 MB, free: 32.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.3824, allocations: 2.991 MB / 458.8 MB, free: 29.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.3826, allocations: 0.804 MB / 459.6 MB, free: 29.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.221e-05/0.3827, allocations: 24.31 kB / 459.6 MB, free: 29.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.3829, allocations: 124 kB / 459.7 MB, free: 29.17 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3829, allocations: 0 / 459.7 MB, free: 29.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3047/0.6876, allocations: 4.744 MB / 464.5 MB, free: 28.64 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.6878, allocations: 203.5 kB / 464.7 MB, free: 28.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.982/2.67, allocations: 2.109 kB / 464.7 MB, free: 28.38 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)