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.001591/0.001591, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001703/0.001703, allocations: 216 kB / 22.26 MB, free: 5.078 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.2044/0.2044, allocations: 29.23 MB / 341.7 MB, free: 5.832 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 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.002048/0.002048, allocations: 67.89 kB / 478.4 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3633, allocations: 60.8 MB / 0.5265 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003243/0.3666, allocations: 1.945 MB / 0.5284 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006819/0.3672, allocations: 305.3 kB / 0.5287 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002076/0.3674, allocations: 9.312 kB / 0.5287 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.3677, allocations: 59.95 kB / 0.5288 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.711e-05/0.3678, allocations: 38.58 kB / 0.5288 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.3682, allocations: 163 kB / 0.529 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005232/0.3687, allocations: 355.7 kB / 0.5293 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003926/0.3691, allocations: 217.2 kB / 0.5295 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.3692, allocations: 144.6 kB / 0.5297 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.3694, allocations: 169.8 kB / 0.5298 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.008e-05/0.3695, allocations: 37.44 kB / 0.5299 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.866e-05/0.3696, allocations: 42.97 kB / 0.5299 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.44e-05/0.3696, allocations: 86.53 kB / 0.53 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.3698, allocations: 196 kB / 0.5302 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.3702, allocations: 395 kB / 0.5305 GB, free: 5.332 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.3702, allocations: 5.156 kB / 0.5306 GB, free: 5.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3703, allocations: 0 / 0.5306 GB, free: 5.328 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.3703, allocations: 0 / 0.5306 GB, free: 5.328 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.0009964/0.3713, allocations: 0.6975 MB / 0.5312 GB, free: 4.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3713, allocations: 14.56 kB / 0.5312 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001236/0.3714, allocations: 95.23 kB / 0.5313 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.009e-05/0.3715, allocations: 54.02 kB / 0.5314 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004208/0.3719, allocations: 269.7 kB / 0.5316 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.372, allocations: 36.66 kB / 0.5317 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.812e-05/0.372, allocations: 48.91 kB / 0.5317 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006543/0.3727, allocations: 452.6 kB / 0.5322 GB, free: 4.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.3727, allocations: 5 kB / 0.5322 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.3727, allocations: 17.78 kB / 0.5322 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.3727, allocations: 11.69 kB / 0.5322 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003939/0.3731, allocations: 241.3 kB / 0.5324 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.3748, allocations: 1.621 MB / 0.534 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.3752, allocations: 175.4 kB / 0.5342 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.3753, allocations: 70.31 kB / 0.5342 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.3753, allocations: 2.562 kB / 0.5342 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.3755, allocations: 125.6 kB / 0.5344 GB, free: 2.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.503e-06/0.3755, allocations: 0 / 0.5344 GB, free: 2.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004235/0.3759, allocations: 236 kB / 0.5346 GB, free: 2.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.376, allocations: 53.53 kB / 0.5346 GB, free: 2.484 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/0.3762, allocations: 254.4 kB / 0.5349 GB, free: 2.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.3762, allocations: 26.83 kB / 0.5349 GB, free: 2.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.3764, allocations: 252.2 kB / 0.5351 GB, free: 2.098 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.924e-05/0.3764, allocations: 79.34 kB / 0.5352 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.663e-05/0.3765, allocations: 57.5 kB / 0.5353 GB, free: 1.992 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.166e-05/0.3766, allocations: 340.3 kB / 0.5356 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.3767, allocations: 58.95 kB / 0.5357 GB, free: 1.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.3768, allocations: 138.4 kB / 0.5358 GB, free: 1.531 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.3771, allocations: 217 kB / 0.536 GB, free: 1.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3771, allocations: 4 kB / 0.536 GB, free: 1.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003509/0.3774, allocations: 252 kB / 0.5362 GB, free: 1.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.3774, allocations: 7.5 kB / 0.5362 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.3774, allocations: 1.719 kB / 0.5362 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.3775, allocations: 11.83 kB / 0.5363 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.3777, allocations: 46.42 kB / 0.5363 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.3777, allocations: 8.625 kB / 0.5363 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.3778, allocations: 35.66 kB / 0.5363 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.3778, allocations: 8.062 kB / 0.5364 GB, free: 1.203 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.0001283/0.3779, allocations: 153.1 kB / 0.5365 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/0.378, allocations: 23.27 kB / 0.5365 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003118/0.3783, allocations: 200.6 kB / 0.5367 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3783, allocations: 6.344 kB / 0.5367 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3783, allocations: 0 / 0.5367 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3783, allocations: 3.125 kB / 0.5367 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006313/0.3789, allocations: 0.6121 MB / 0.5373 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3789, allocations: 0.5156 kB / 0.5373 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.3791, allocations: 33.44 kB / 0.5374 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3791, allocations: 0 / 0.5374 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.3791, allocations: 7.453 kB / 0.5374 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3791, allocations: 0 / 0.5374 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3791, allocations: 2.125 kB / 0.5374 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.3796, allocations: 362.6 kB / 0.5377 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.198e-05/0.3796, allocations: 24.23 kB / 0.5377 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.3796, allocations: 10.61 kB / 0.5377 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3797, allocations: 6.375 kB / 0.5377 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.3798, allocations: 15.66 kB / 0.5378 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.3798, allocations: 3.828 kB / 0.5378 GB, free: 256 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001477/0.3799, allocations: 179.1 kB / 0.5379 GB, free: 148 kB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3799, allocations: 4 kB / 0.5379 GB, free: 144 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.3803, allocations: 80.09 kB / 0.538 GB, free: 108 kB / 382.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.0007895/0.381, allocations: 0.8898 MB / 0.5389 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003626/0.3814, allocations: 164.8 kB / 0.539 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3814, allocations: 0 / 0.539 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.3815, allocations: 75.78 kB / 0.5391 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.3819, allocations: 45.02 kB / 0.5392 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003636/0.3856, allocations: 2.785 MB / 0.5419 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.386, allocations: 0.8114 MB / 0.5427 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.95e-05/0.3861, allocations: 22.33 kB / 0.5427 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.3863, allocations: 124.1 kB / 0.5428 GB, free: 12.27 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3863, allocations: 0 / 0.5428 GB, free: 12.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03899/0.4253, allocations: 5.096 MB / 0.5478 GB, free: 9.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.38, allocations: 12.36 kB / 0.5478 GB, free: 9.715 MB / 398.1 MB " [Timeout remaining time 646] (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: 17.377256482999655] Failed to read output from testmodel.py, exit status != 0: 14.490886952000437 14.519107398 14.14422283 Calling exit ...