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.0008568/0.0008568, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.004931/0.004931, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.166/1.166, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2588/0.2588, allocations: 28.84 MB / 320.3 MB, free: 6.188 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002813, allocations: 12 kB / 388.6 MB, free: 3.078 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2436, allocations: 57.48 MB / 446.1 MB, free: 32.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.001661/0.2454, allocations: 1.588 MB / 447.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004823/0.2459, allocations: 297.5 kB / 447.9 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.246, allocations: 6.156 kB / 448 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.2462, allocations: 43.98 kB / 448 MB, free: 31.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.733e-05/0.2463, allocations: 18.97 kB / 448 MB, free: 31.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.2466, allocations: 133.1 kB / 448.1 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.2468, allocations: 351 kB / 448.5 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.2471, allocations: 246.7 kB / 448.7 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.475e-05/0.2472, allocations: 84.44 kB / 448.8 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.2473, allocations: 113.8 kB / 448.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/0.2474, allocations: 8.875 kB / 448.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.975e-05/0.2474, allocations: 8.906 kB / 448.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.946e-05/0.2474, allocations: 49.22 kB / 449 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.522e-05/0.2475, allocations: 163.9 kB / 449.1 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.2478, allocations: 335.5 kB / 449.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2478, allocations: 0 / 449.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2478, allocations: 0 / 449.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.2478, allocations: 2.812 kB / 449.5 MB, free: 30.55 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.0007096/0.2485, allocations: 0.5915 MB / 450.1 MB, free: 30.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.2486, allocations: 12.56 kB / 450.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.2487, allocations: 94.98 kB / 450.2 MB, free: 29.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.348e-05/0.2487, allocations: 51.12 kB / 450.2 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002839/0.249, allocations: 317.7 kB / 450.5 MB, free: 29.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.2491, allocations: 37.75 kB / 450.6 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.315e-05/0.2491, allocations: 48 kB / 450.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005193/0.2497, allocations: 450.8 kB / 451.1 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.2497, allocations: 7.875 kB / 451.1 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.2497, allocations: 21.91 kB / 451.1 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.2497, allocations: 19.58 kB / 451.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003095/0.25, allocations: 231.1 kB / 451.3 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.2514, allocations: 1.69 MB / 453 MB, free: 27.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.2517, allocations: 188.6 kB / 453.2 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.2518, allocations: 77.2 kB / 453.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.2519, allocations: 3.062 kB / 453.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.2521, allocations: 115.8 kB / 453.4 MB, free: 27.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.2521, allocations: 4 kB / 453.4 MB, free: 27.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003537/0.2524, allocations: 233.9 kB / 453.6 MB, free: 27.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.2525, allocations: 53.91 kB / 453.7 MB, free: 27.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.2527, allocations: 253.5 kB / 453.9 MB, free: 27.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.2527, allocations: 29.7 kB / 454 MB, free: 27.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.74e-05/0.2528, allocations: 253.6 kB / 454.2 MB, free: 27.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.2528, allocations: 69.97 kB / 454.3 MB, free: 27.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.474e-05/0.2529, allocations: 35.98 kB / 454.3 MB, free: 27.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.051e-05/0.2529, allocations: 346.4 kB / 454.6 MB, free: 26.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.292e-05/0.253, allocations: 60.25 kB / 454.7 MB, free: 26.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.2532, allocations: 135.2 kB / 454.8 MB, free: 26.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.2534, allocations: 211.8 kB / 455 MB, free: 26.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2534, allocations: 4 kB / 455 MB, free: 26.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002968/0.2537, allocations: 252.7 kB / 455.3 MB, free: 26.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.2537, allocations: 5.906 kB / 455.3 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.2537, allocations: 2.969 kB / 455.3 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.2538, allocations: 2.594 kB / 455.3 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.2539, allocations: 48.19 kB / 455.4 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.2539, allocations: 13.83 kB / 455.4 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.2541, allocations: 29 kB / 455.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.2541, allocations: 8.031 kB / 455.4 MB, free: 26.34 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.2542, allocations: 165.5 kB / 455.6 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.2542, allocations: 23.22 kB / 455.6 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.2545, allocations: 196.1 kB / 455.8 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2545, allocations: 2.625 kB / 455.8 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.2545, allocations: 0 / 455.8 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2545, allocations: 3.422 kB / 455.8 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004963/0.255, allocations: 0.644 MB / 456.4 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2551, allocations: 2.75 kB / 456.4 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.2552, allocations: 40.62 kB / 456.5 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.2552, allocations: 0 / 456.5 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.2552, allocations: 2.562 kB / 456.5 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2553, allocations: 0 / 456.5 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2553, allocations: 0 / 456.5 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003355/0.2556, allocations: 372.9 kB / 456.8 MB, free: 25.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.605e-05/0.2556, allocations: 101 kB / 456.9 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.2557, allocations: 4 kB / 456.9 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.2558, allocations: 10.48 kB / 456.9 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.272e-05/0.2558, allocations: 12.66 kB / 457 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.2558, allocations: 9.594 kB / 457 MB, free: 25.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.256, allocations: 181.1 kB / 457.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.256, allocations: 0 / 457.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.2563, allocations: 77.73 kB / 457.2 MB, free: 25.12 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 (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.0004976/0.2568, allocations: 0.8922 MB / 458.1 MB, free: 24.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002433/0.257, allocations: 168.5 kB / 458.3 MB, free: 24.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.257, allocations: 0.5625 kB / 458.3 MB, free: 24.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.903e-05/0.2571, allocations: 76.83 kB / 458.4 MB, free: 24.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.2575, allocations: 51.97 kB / 458.4 MB, free: 24.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.26, allocations: 2.999 MB / 461.4 MB, free: 22.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.2602, allocations: 0.8051 MB / 462.2 MB, free: 21.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.907e-05/0.2603, allocations: 21.05 kB / 462.2 MB, free: 21.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.2605, allocations: 126 kB / 462.4 MB, free: 21.27 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2605, allocations: 1.125 kB / 462.4 MB, free: 21.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.2844, allocations: 4.525 MB / 466.9 MB, free: 20.85 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000133/0.2846, allocations: 201.9 kB / 467.1 MB, free: 20.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/1.94, allocations: 0 / 467.1 MB, free: 20.59 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/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)