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.0007148/0.0007149, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008175/0.0008176, allocations: 168.7 kB / 15.95 MB, free: 204 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.237/1.237, allocations: 223.2 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2693/0.2693, allocations: 28.84 MB / 319.9 MB, free: 6.277 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003235, allocations: 8 kB / 388 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2433, allocations: 57.49 MB / 445.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.001488/0.2448, allocations: 1.47 MB / 446.9 MB, free: 31.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005518/0.2454, allocations: 293.1 kB / 447.2 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.2456, allocations: 9.812 kB / 447.2 MB, free: 31.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.2457, allocations: 43.8 kB / 447.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.485e-05/0.2458, allocations: 15.14 kB / 447.3 MB, free: 31.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.246, allocations: 101.5 kB / 447.4 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.2463, allocations: 329.5 kB / 447.7 MB, free: 31.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002534/0.2466, allocations: 210 kB / 447.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.882e-05/0.2466, allocations: 80.97 kB / 448 MB, free: 31.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.863e-05/0.2467, allocations: 106.3 kB / 448.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.2468, allocations: 8.469 kB / 448.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.095e-05/0.2468, allocations: 8.938 kB / 448.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.098e-05/0.2468, allocations: 46.52 kB / 448.2 MB, free: 31.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.064e-05/0.2469, allocations: 83.02 kB / 448.2 MB, free: 30.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001588/0.247, allocations: 248.8 kB / 448.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2471, allocations: 0 / 448.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2471, allocations: 0 / 448.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.2471, allocations: 0 / 448.5 MB, free: 30.88 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.0005686/0.2477, allocations: 0.6111 MB / 449.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.2477, allocations: 10.12 kB / 449.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.664e-05/0.2478, allocations: 87.31 kB / 449.2 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.887e-05/0.2478, allocations: 57.23 kB / 449.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.2481, allocations: 305.5 kB / 449.5 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.2481, allocations: 36.28 kB / 449.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.2482, allocations: 50.53 kB / 449.6 MB, free: 29.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000489/0.2487, allocations: 444.2 kB / 450.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2487, allocations: 0 / 450.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.2487, allocations: 21.69 kB / 450.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.2488, allocations: 19.08 kB / 450.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/0.2491, allocations: 233.2 kB / 450.3 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.2503, allocations: 1.694 MB / 452 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.2506, allocations: 173 kB / 452.2 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.501e-05/0.2507, allocations: 81.89 kB / 452.3 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.2507, allocations: 3.375 kB / 452.3 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.2509, allocations: 114.2 kB / 452.4 MB, free: 28.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.2509, allocations: 0 / 452.4 MB, free: 28.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003127/0.2512, allocations: 232.9 kB / 452.6 MB, free: 28.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.62e-05/0.2513, allocations: 58.16 kB / 452.7 MB, free: 27.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.2514, allocations: 252.3 kB / 452.9 MB, free: 27.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.2515, allocations: 39.83 kB / 453 MB, free: 27.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.377e-05/0.2516, allocations: 248.9 kB / 453.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.2516, allocations: 74.03 kB / 453.3 MB, free: 27.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.748e-06/0.2516, allocations: 6.938 kB / 453.3 MB, free: 27.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.629e-05/0.2517, allocations: 339.7 kB / 453.6 MB, free: 27.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.485e-05/0.2518, allocations: 56.69 kB / 453.7 MB, free: 27.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.976e-05/0.2519, allocations: 135.8 kB / 453.8 MB, free: 27.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.252, allocations: 76.94 kB / 453.9 MB, free: 26.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.252, allocations: 4 kB / 453.9 MB, free: 26.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002908/0.2523, allocations: 255.7 kB / 454.1 MB, free: 26.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.2523, allocations: 4.938 kB / 454.1 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2523, allocations: 6 kB / 454.1 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.2523, allocations: 4.969 kB / 454.1 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.2525, allocations: 47.88 kB / 454.2 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.2525, allocations: 9.188 kB / 454.2 MB, free: 26.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.57e-05/0.2526, allocations: 28.91 kB / 454.2 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.2526, allocations: 11.28 kB / 454.2 MB, free: 26.83 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.0001053/0.2528, allocations: 157.7 kB / 454.4 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.395e-05/0.2528, allocations: 25.94 kB / 454.4 MB, free: 26.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002576/0.2531, allocations: 199.8 kB / 454.6 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.2531, allocations: 6.547 kB / 454.6 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2531, allocations: 0 / 454.6 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.2531, allocations: 0 / 454.6 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004902/0.2536, allocations: 0.6386 MB / 455.3 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2536, allocations: 3.938 kB / 455.3 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.2538, allocations: 37.52 kB / 455.3 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2538, allocations: 2.625 kB / 455.3 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.2538, allocations: 8 kB / 455.3 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2538, allocations: 5.906 kB / 455.3 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2538, allocations: 0 / 455.3 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.2541, allocations: 355.6 kB / 455.7 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.2542, allocations: 101.4 kB / 455.8 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.2542, allocations: 2.625 kB / 455.8 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.2543, allocations: 6.625 kB / 455.8 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/0.2543, allocations: 15.81 kB / 455.8 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2544, allocations: 5.25 kB / 455.8 MB, free: 25.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.2545, allocations: 173.8 kB / 456 MB, free: 25.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2545, allocations: 3.938 kB / 456 MB, free: 25.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.2548, allocations: 82.69 kB / 456 MB, free: 25.61 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.0004857/0.2553, allocations: 0.8987 MB / 456.9 MB, free: 24.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.2555, allocations: 167.5 kB / 457.1 MB, free: 24.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2555, allocations: 0.5625 kB / 457.1 MB, free: 24.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.895e-05/0.2556, allocations: 75.08 kB / 457.2 MB, free: 24.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.256, allocations: 45.08 kB / 457.2 MB, free: 24.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.2577, allocations: 1.734 MB / 459 MB, free: 23.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/0.2579, allocations: 0.8083 MB / 459.8 MB, free: 22.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.98e-05/0.258, allocations: 21.19 kB / 459.8 MB, free: 22.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.2581, allocations: 129.4 kB / 459.9 MB, free: 22.84 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2581, allocations: 0 / 459.9 MB, free: 22.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01457/0.2727, allocations: 4.465 MB / 464.4 MB, free: 22.42 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001227/0.2728, allocations: 181.7 kB / 464.6 MB, free: 22.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.602/1.875, allocations: 1.531 kB / 464.6 MB, free: 22.19 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: