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.001449/0.001449, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001631/0.001631, allocations: 219.3 kB / 23.03 MB, free: 4.945 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.309/1.309, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 179] 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.1689/0.1689, allocations: 29.23 MB / 342.4 MB, free: 5.598 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Influenza.Flu,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu",fmuType="cs",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.001846/0.001846, allocations: 74.7 kB / 479.1 MB, free: 428 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3079, allocations: 60.79 MB / 0.5272 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002838/0.3107, allocations: 1.705 MB / 0.5289 GB, free: 6.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005909/0.3113, allocations: 305.2 kB / 0.5292 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.3114, allocations: 9.5 kB / 0.5292 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.3116, allocations: 60 kB / 0.5292 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.631e-05/0.3117, allocations: 34.38 kB / 0.5293 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.3121, allocations: 155.9 kB / 0.5294 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004882/0.3125, allocations: 366.4 kB / 0.5298 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003281/0.3129, allocations: 215.7 kB / 0.53 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.313, allocations: 147.4 kB / 0.5301 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.3132, allocations: 164.9 kB / 0.5303 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.953e-05/0.3133, allocations: 37.53 kB / 0.5303 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.496e-05/0.3133, allocations: 37.03 kB / 0.5303 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.49e-05/0.3134, allocations: 92.23 kB / 0.5304 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.3135, allocations: 144 kB / 0.5306 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004214/0.3139, allocations: 407.7 kB / 0.531 GB, free: 5.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3139, allocations: 1.25 kB / 0.531 GB, free: 5.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3139, allocations: 4.609 kB / 0.531 GB, free: 5.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.3139, allocations: 0 / 0.531 GB, free: 5.684 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.0009261/0.3149, allocations: 0.694 MB / 0.5316 GB, free: 5.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.3149, allocations: 9.812 kB / 0.5317 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.985e-05/0.3149, allocations: 18.5 kB / 0.5317 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.3151, allocations: 99.39 kB / 0.5318 GB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.438e-05/0.3151, allocations: 57.69 kB / 0.5318 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.3155, allocations: 270.1 kB / 0.5321 GB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.3155, allocations: 42.69 kB / 0.5321 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.521e-05/0.3156, allocations: 53.02 kB / 0.5322 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006424/0.3162, allocations: 469.8 kB / 0.5326 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.3163, allocations: 1.062 kB / 0.5326 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.3163, allocations: 25.2 kB / 0.5326 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.3163, allocations: 12.56 kB / 0.5327 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003972/0.3167, allocations: 242.4 kB / 0.5329 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.3182, allocations: 1.554 MB / 0.5344 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.3185, allocations: 202.1 kB / 0.5346 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.3187, allocations: 87.25 kB / 0.5347 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.3187, allocations: 4.094 kB / 0.5347 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002204/0.3189, allocations: 127.1 kB / 0.5348 GB, free: 3.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.503e-06/0.3189, allocations: 0 / 0.5348 GB, free: 3.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009737/0.3199, allocations: 0.657 MB / 0.5354 GB, free: 2.605 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.335e-05/0.3199, allocations: 56.02 kB / 0.5355 GB, free: 2.543 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.3202, allocations: 253.5 kB / 0.5357 GB, free: 2.391 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.3202, allocations: 36.19 kB / 0.5358 GB, free: 2.352 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3203, allocations: 246.8 kB / 0.536 GB, free: 2.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.449e-05/0.3203, allocations: 101.1 kB / 0.5361 GB, free: 2.074 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.932e-05/0.3204, allocations: 66.2 kB / 0.5362 GB, free: 2.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.104e-05/0.3205, allocations: 337.4 kB / 0.5365 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.3206, allocations: 69.72 kB / 0.5366 GB, free: 1.684 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.3207, allocations: 152.1 kB / 0.5367 GB, free: 1.566 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00026/0.321, allocations: 244.5 kB / 0.5369 GB, free: 1.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.321, allocations: 1.812 kB / 0.5369 GB, free: 1.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000369/0.3214, allocations: 302.8 kB / 0.5372 GB, free: 1.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3214, allocations: 6.875 kB / 0.5372 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3214, allocations: 2.75 kB / 0.5372 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.3214, allocations: 4.734 kB / 0.5372 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.3216, allocations: 56.83 kB / 0.5373 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.3216, allocations: 4.922 kB / 0.5373 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.786e-05/0.3217, allocations: 8.781 kB / 0.5373 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.3218, allocations: 14.8 kB / 0.5373 GB, free: 1.234 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 (41): * Single equations (assignments): 41 * 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.0001255/0.3219, allocations: 161.9 kB / 0.5375 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.162e-05/0.3219, allocations: 36.06 kB / 0.5375 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003628/0.3223, allocations: 237.7 kB / 0.5377 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3223, allocations: 2.156 kB / 0.5377 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3223, allocations: 1.609 kB / 0.5377 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.3223, allocations: 1.453 kB / 0.5377 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007878/0.3231, allocations: 0.6838 MB / 0.5384 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3231, allocations: 6.203 kB / 0.5384 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002182/0.3233, allocations: 51.8 kB / 0.5385 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3233, allocations: 1.25 kB / 0.5385 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.3233, allocations: 7.969 kB / 0.5385 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.3233, allocations: 1.219 kB / 0.5385 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.3233, allocations: 1.125 kB / 0.5385 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.3238, allocations: 437.3 kB / 0.5389 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.77e-05/0.3238, allocations: 20.62 kB / 0.5389 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.3238, allocations: 7.266 kB / 0.5389 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.324, allocations: 7.312 kB / 0.5389 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/0.324, allocations: 23.62 kB / 0.539 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.324, allocations: 14.81 kB / 0.539 GB, free: 156 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.3241, allocations: 176.1 kB / 0.5391 GB, free: 32 kB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3241, allocations: 1.375 kB / 0.5391 GB, free: 32 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.3244, allocations: 53.25 kB / 0.5392 GB, free: 20 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 ($outputAlias_Sick_pop,$outputAlias_Immune_pop,Non_infected.Integrator1.y,Infected.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 (29): * Single equations (assignments): 29 * 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.0008362/0.3253, allocations: 0.9599 MB / 0.5401 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003476/0.3256, allocations: 191.5 kB / 0.5403 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3256, allocations: 0.5625 kB / 0.5403 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.3258, allocations: 98.14 kB / 0.5404 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.3262, allocations: 54.53 kB / 0.5405 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.3295, allocations: 2.945 MB / 0.5433 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/0.3297, allocations: 210.1 kB / 0.5435 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.3298, allocations: 38.06 kB / 0.5436 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.33, allocations: 135.1 kB / 0.5437 GB, free: 12.56 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.33, allocations: 0 / 0.5437 GB, free: 12.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/0.3583, allocations: 5.536 MB / 0.5491 GB, free: 9.789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.38, allocations: 3.719 kB / 0.5491 GB, free: 9.789 MB / 398.1 MB " [Timeout remaining time 648] (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 --stepSize=0.052 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.944236235925928] Failed to read output from testmodel.py, exit status != 0: 11.54200244799722 11.566724689 11.248516948 Calling exit ...