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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 110.1 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 215.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 252.8 MB, free: 8.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2012/0.2012, allocations: 29.23 MB / 338.1 MB, free: 6.961 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Warning: Ignoring unknown experiment annotation option: Algorithm = \"dassl\" Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 59.91 kB / 473.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3454, allocations: 60.76 MB / 0.5214 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.00297/0.3484, allocations: 1.938 MB / 0.5233 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007909/0.3492, allocations: 310.2 kB / 0.5236 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003028/0.3495, allocations: 8.844 kB / 0.5236 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000216/0.3497, allocations: 59.92 kB / 0.5237 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.3498, allocations: 33.94 kB / 0.5237 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.3502, allocations: 155.6 kB / 0.5239 GB, free: 6.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005886/0.3508, allocations: 360.9 kB / 0.5242 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004961/0.3513, allocations: 217.1 kB / 0.5244 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.3515, allocations: 144.6 kB / 0.5245 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002763/0.3518, allocations: 165.1 kB / 0.5247 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.3519, allocations: 37.88 kB / 0.5247 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.921e-05/0.352, allocations: 36.97 kB / 0.5248 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.3521, allocations: 95.7 kB / 0.5249 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.3523, allocations: 187.3 kB / 0.525 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006981/0.353, allocations: 404 kB / 0.5254 GB, free: 5.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.353, allocations: 1.031 kB / 0.5254 GB, free: 5.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.353, allocations: 0 / 0.5254 GB, free: 5.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.368e-05/0.3531, allocations: 7.938 kB / 0.5254 GB, free: 5.211 MB / 382.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.001339/0.3544, allocations: 0.6783 MB / 0.5261 GB, free: 4.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.3545, allocations: 10.42 kB / 0.5261 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001783/0.3546, allocations: 96.53 kB / 0.5262 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.3548, allocations: 52.8 kB / 0.5262 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006711/0.3555, allocations: 329.4 kB / 0.5266 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.984e-05/0.3555, allocations: 36.47 kB / 0.5266 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.3556, allocations: 48.47 kB / 0.5266 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.3569, allocations: 458.2 kB / 0.5271 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/0.3569, allocations: 8.469 kB / 0.5271 GB, free: 3.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.282e-05/0.357, allocations: 17.12 kB / 0.5271 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.266e-05/0.357, allocations: 11.88 kB / 0.5271 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000668/0.3577, allocations: 237.9 kB / 0.5273 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002701/0.3604, allocations: 1.67 MB / 0.529 GB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.3609, allocations: 171 kB / 0.5291 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.3611, allocations: 72.81 kB / 0.5292 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.3612, allocations: 6.359 kB / 0.5292 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003286/0.3615, allocations: 119.1 kB / 0.5293 GB, free: 2.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 3.136e-06/0.3615, allocations: 1.062 kB / 0.5293 GB, free: 2.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006908/0.3622, allocations: 239.7 kB / 0.5296 GB, free: 2.285 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.3622, allocations: 54.47 kB / 0.5296 GB, free: 2.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004153/0.3626, allocations: 250.8 kB / 0.5298 GB, free: 2.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.3627, allocations: 30.92 kB / 0.5299 GB, free: 2.039 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.3629, allocations: 256 kB / 0.5301 GB, free: 1.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.415e-05/0.363, allocations: 75.08 kB / 0.5302 GB, free: 1.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.3631, allocations: 53.38 kB / 0.5302 GB, free: 1.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3632, allocations: 341.5 kB / 0.5306 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.3634, allocations: 66.36 kB / 0.5306 GB, free: 1.375 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.3636, allocations: 133.5 kB / 0.5308 GB, free: 1.266 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/0.364, allocations: 214.3 kB / 0.531 GB, free: 1.105 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.364, allocations: 4 kB / 0.531 GB, free: 1.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006132/0.3646, allocations: 259.2 kB / 0.5312 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.3647, allocations: 6.922 kB / 0.5312 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.3647, allocations: 2 kB / 0.5312 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.731e-05/0.3647, allocations: 4.25 kB / 0.5312 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/0.365, allocations: 46.3 kB / 0.5313 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.365, allocations: 4.734 kB / 0.5313 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.3653, allocations: 31.53 kB / 0.5313 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.3653, allocations: 16.72 kB / 0.5313 GB, free: 0.9414 MB / 382.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.000225/0.3655, allocations: 152.1 kB / 0.5315 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.11e-05/0.3656, allocations: 24.05 kB / 0.5315 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005153/0.3661, allocations: 196.2 kB / 0.5317 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.3661, allocations: 2.156 kB / 0.5317 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3661, allocations: 1.25 kB / 0.5317 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.3661, allocations: 1.266 kB / 0.5317 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.3672, allocations: 0.6476 MB / 0.5323 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.3672, allocations: 1.25 kB / 0.5323 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/0.3675, allocations: 36.78 kB / 0.5323 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/0.3675, allocations: 1.406 kB / 0.5324 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.3676, allocations: 9.25 kB / 0.5324 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.3676, allocations: 1.781 kB / 0.5324 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.3676, allocations: 1.375 kB / 0.5324 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007087/0.3683, allocations: 354.8 kB / 0.5327 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.3684, allocations: 112.9 kB / 0.5328 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.082e-05/0.3685, allocations: 5.719 kB / 0.5328 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.3687, allocations: 3.234 kB / 0.5328 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.768e-05/0.3688, allocations: 17.92 kB / 0.5328 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.3688, allocations: 8.297 kB / 0.5328 GB, free: 15.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002828/0.3691, allocations: 176.3 kB / 0.533 GB, free: 15.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3691, allocations: 0 / 0.533 GB, free: 15.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006259/0.3697, allocations: 71.95 kB / 0.5331 GB, free: 15.72 MB / 398.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.001187/0.3709, allocations: 0.9028 MB / 0.534 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005505/0.3714, allocations: 159.1 kB / 0.5341 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.3714, allocations: 3.938 kB / 0.5341 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.3716, allocations: 73.88 kB / 0.5342 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006702/0.3723, allocations: 41.77 kB / 0.5342 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005545/0.3778, allocations: 2.79 MB / 0.537 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006535/0.3785, allocations: 0.8029 MB / 0.5377 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001801/0.3787, allocations: 21.67 kB / 0.5378 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002602/0.3789, allocations: 128.8 kB / 0.5379 GB, free: 12.08 MB / 398.1 MB Notification: Performance of SimCode: time 1.643e-06/0.3789, allocations: 0 / 0.5379 GB, free: 12.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04365/0.4226, allocations: 4.868 MB / 0.5426 GB, free: 9.824 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.126/9.549, allocations: 6.391 kB / 0.5426 GB, free: 9.82 MB / 398.1 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu_res.csv --start-time 0 --stop-time 52 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.052 SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.470970982220024] Failed to read output from testmodel.py, exit status != 0: 9.623847938608378 9.645371893 9.288972035 Calling exit ...