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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 169 kB / 12.72 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 221.4 MB / 234.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 86.72 kB / 285.6 MB, free: 12.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4786/0.4786, allocations: 28.82 MB / 365.3 MB, free: 42.05 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 3.942e-05/3.984e-05, allocations: 8 kB / 430.8 MB, free: 4.309 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1417, allocations: 57.47 MB / 488.2 MB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4924/0.6341, allocations: 79.43 MB / 0.5544 GB, free: 25.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.6344, allocations: 60.66 kB / 0.5544 GB, free: 25.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01482/0.6493, allocations: 5.348 MB / 0.5596 GB, free: 22.44 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.6493, allocations: 0 / 0.5596 GB, free: 22.44 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.586e-05/0.6494, allocations: 12 kB / 0.5597 GB, free: 22.43 MB / 394.7 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.001067/0.6505, allocations: 0.5841 MB / 0.5602 GB, free: 21.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.6505, allocations: 9.25 kB / 0.5602 GB, free: 21.88 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002148/0.6507, allocations: 99.83 kB / 0.5603 GB, free: 21.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.6509, allocations: 59.05 kB / 0.5604 GB, free: 21.76 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.6514, allocations: 308.8 kB / 0.5607 GB, free: 21.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.6515, allocations: 39.56 kB / 0.5607 GB, free: 21.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.817e-05/0.6515, allocations: 49.62 kB / 0.5608 GB, free: 21.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007307/0.6523, allocations: 431.4 kB / 0.5612 GB, free: 21.13 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.6523, allocations: 0 / 0.5612 GB, free: 21.13 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.6524, allocations: 26.73 kB / 0.5612 GB, free: 21.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.6524, allocations: 12 kB / 0.5612 GB, free: 21.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003836/0.6528, allocations: 225.8 kB / 0.5614 GB, free: 20.96 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.6549, allocations: 1.701 MB / 0.5631 GB, free: 19.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003387/0.6552, allocations: 173.2 kB / 0.5633 GB, free: 19.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.6554, allocations: 74.98 kB / 0.5633 GB, free: 19.42 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.6554, allocations: 7.938 kB / 0.5633 GB, free: 19.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.6556, allocations: 110.8 kB / 0.5634 GB, free: 19.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=21): time 2.274e-06/0.6556, allocations: 0 / 0.5634 GB, free: 19.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003464/0.656, allocations: 183.6 kB / 0.5636 GB, free: 19.19 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.656, allocations: 51.41 kB / 0.5637 GB, free: 19.13 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.6562, allocations: 222.3 kB / 0.5639 GB, free: 18.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.6563, allocations: 29.73 kB / 0.5639 GB, free: 18.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.6564, allocations: 254 kB / 0.5641 GB, free: 18.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.498e-05/0.6565, allocations: 70.56 kB / 0.5642 GB, free: 18.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.088e-05/0.6565, allocations: 4 kB / 0.5642 GB, free: 18.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.6566, allocations: 345.4 kB / 0.5645 GB, free: 18.35 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.6567, allocations: 64.19 kB / 0.5646 GB, free: 18.31 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.6568, allocations: 126 kB / 0.5647 GB, free: 18.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.657, allocations: 75.3 kB / 0.5648 GB, free: 18.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.657, allocations: 3.938 kB / 0.5648 GB, free: 18.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003724/0.6573, allocations: 249.3 kB / 0.565 GB, free: 17.96 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.6574, allocations: 9.031 kB / 0.565 GB, free: 17.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.6574, allocations: 0 / 0.565 GB, free: 17.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.6574, allocations: 4 kB / 0.5651 GB, free: 17.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.6576, allocations: 53.72 kB / 0.5651 GB, free: 17.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.6576, allocations: 4 kB / 0.5651 GB, free: 17.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.6578, allocations: 24.8 kB / 0.5651 GB, free: 17.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.6578, allocations: 12 kB / 0.5651 GB, free: 17.88 MB / 394.7 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 () * 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.0001121/0.6579, allocations: 124.5 kB / 0.5653 GB, free: 17.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.128e-05/0.658, allocations: 27.75 kB / 0.5653 GB, free: 17.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003496/0.6583, allocations: 196.4 kB / 0.5655 GB, free: 17.61 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.6584, allocations: 3.984 kB / 0.5655 GB, free: 17.61 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.6584, allocations: 3.375 kB / 0.5655 GB, free: 17.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.6584, allocations: 9.016 kB / 0.5655 GB, free: 17.6 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000727/0.6591, allocations: 0.6393 MB / 0.5661 GB, free: 17.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.6591, allocations: 7 kB / 0.5661 GB, free: 17.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.6593, allocations: 28.27 kB / 0.5661 GB, free: 17.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.6593, allocations: 0 / 0.5661 GB, free: 17.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.6594, allocations: 11.94 kB / 0.5662 GB, free: 17.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.145e-06/0.6594, allocations: 0 / 0.5662 GB, free: 17.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.6594, allocations: 0 / 0.5662 GB, free: 17.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004127/0.6598, allocations: 355.6 kB / 0.5665 GB, free: 16.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.6599, allocations: 106.2 kB / 0.5666 GB, free: 16.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.046e-05/0.6599, allocations: 5.062 kB / 0.5666 GB, free: 16.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.66, allocations: 7.812 kB / 0.5666 GB, free: 16.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.585e-05/0.6601, allocations: 9.297 kB / 0.5666 GB, free: 16.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.6601, allocations: 11.94 kB / 0.5666 GB, free: 16.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001807/0.6603, allocations: 174.7 kB / 0.5668 GB, free: 16.53 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6603, allocations: 0 / 0.5668 GB, free: 16.53 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003453/0.6607, allocations: 80.19 kB / 0.5669 GB, free: 16.46 MB / 394.7 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 () * 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.0007581/0.6615, allocations: 0.8931 MB / 0.5677 GB, free: 15.63 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002754/0.6617, allocations: 168.1 kB / 0.5679 GB, free: 15.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.6618, allocations: 0 / 0.5679 GB, free: 15.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.6619, allocations: 80.58 kB / 0.568 GB, free: 15.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.6622, allocations: 35.59 kB / 0.568 GB, free: 15.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.6634, allocations: 0.5367 MB / 0.5685 GB, free: 14.99 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.6637, allocations: 0.8163 MB / 0.5693 GB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.6638, allocations: 24.52 kB / 0.5694 GB, free: 14.19 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.664, allocations: 121.8 kB / 0.5695 GB, free: 14.17 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.664, allocations: 0 / 0.5695 GB, free: 14.17 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/0.6854, allocations: 4.482 MB / 0.5739 GB, free: 11.33 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/0.6858, allocations: 157.4 kB / 0.574 GB, free: 11.11 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/2.528, allocations: 0 / 0.574 GB, free: 11.11 MB / 394.7 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)