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.001214/0.001214, allocations: 113.8 kB / 19.73 MB, free: 2.242 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.001924/0.001924, allocations: 219.6 kB / 23.04 MB, free: 5.074 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.364/1.364, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.1853/0.1853, allocations: 29.21 MB / 342.4 MB, free: 5.809 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.001896/0.001896, allocations: 60.19 kB / 479.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3125, allocations: 60.8 MB / 0.5273 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002711/0.3152, allocations: 1.937 MB / 0.5292 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005462/0.3158, allocations: 310.1 kB / 0.5295 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.3159, allocations: 12.41 kB / 0.5295 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.3161, allocations: 61.44 kB / 0.5296 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.127e-05/0.3162, allocations: 37.5 kB / 0.5296 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.3166, allocations: 151.5 kB / 0.5297 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.3171, allocations: 363.5 kB / 0.5301 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003598/0.3174, allocations: 215.1 kB / 0.5303 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.3175, allocations: 143.3 kB / 0.5304 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.3177, allocations: 164.4 kB / 0.5306 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.569e-05/0.3178, allocations: 49.84 kB / 0.5306 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.605e-05/0.3178, allocations: 37.53 kB / 0.5307 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.126e-05/0.3179, allocations: 91.53 kB / 0.5308 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.318, allocations: 188.2 kB / 0.5309 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003703/0.3184, allocations: 404.5 kB / 0.5313 GB, free: 5.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3184, allocations: 0 / 0.5313 GB, free: 5.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3184, allocations: 0 / 0.5313 GB, free: 5.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.3184, allocations: 0 / 0.5313 GB, free: 5.324 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.0008686/0.3193, allocations: 0.698 MB / 0.532 GB, free: 4.812 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.3193, allocations: 10.03 kB / 0.532 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.388e-05/0.3193, allocations: 18.91 kB / 0.532 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.3194, allocations: 97.34 kB / 0.5321 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.545e-05/0.3195, allocations: 54.81 kB / 0.5322 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.3199, allocations: 274.5 kB / 0.5324 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.3199, allocations: 38.91 kB / 0.5325 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.337e-05/0.32, allocations: 60.52 kB / 0.5325 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006138/0.3206, allocations: 466.6 kB / 0.533 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.3206, allocations: 1.531 kB / 0.533 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.3206, allocations: 20.8 kB / 0.533 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.3206, allocations: 12.94 kB / 0.533 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.321, allocations: 242.6 kB / 0.5332 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.3227, allocations: 1.637 MB / 0.5348 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.323, allocations: 200.2 kB / 0.535 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.3232, allocations: 85.25 kB / 0.5351 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.3232, allocations: 2.5 kB / 0.5351 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.3234, allocations: 134.2 kB / 0.5352 GB, free: 2.629 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.3234, allocations: 0 / 0.5352 GB, free: 2.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009963/0.3244, allocations: 0.6498 MB / 0.5359 GB, free: 2.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.3244, allocations: 55.34 kB / 0.5359 GB, free: 2.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.3247, allocations: 253.8 kB / 0.5362 GB, free: 2.008 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.3247, allocations: 31.66 kB / 0.5362 GB, free: 1.973 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.3248, allocations: 259.3 kB / 0.5364 GB, free: 1.762 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.3249, allocations: 100.5 kB / 0.5365 GB, free: 1.684 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.222e-05/0.3249, allocations: 63.92 kB / 0.5366 GB, free: 1.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.02e-05/0.325, allocations: 342.8 kB / 0.5369 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.3251, allocations: 69.91 kB / 0.537 GB, free: 1.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.3253, allocations: 153.5 kB / 0.5371 GB, free: 1.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002787/0.3256, allocations: 246.8 kB / 0.5374 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3256, allocations: 2.578 kB / 0.5374 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003728/0.326, allocations: 294.1 kB / 0.5377 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.326, allocations: 7.438 kB / 0.5377 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.326, allocations: 2.031 kB / 0.5377 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.326, allocations: 4.25 kB / 0.5377 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002124/0.3262, allocations: 62.95 kB / 0.5377 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.3262, allocations: 8.484 kB / 0.5377 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.91e-05/0.3263, allocations: 9.406 kB / 0.5378 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.3263, allocations: 13.58 kB / 0.5378 GB, free: 0.832 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.0001153/0.3265, allocations: 156.3 kB / 0.5379 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.105e-05/0.3265, allocations: 33.88 kB / 0.5379 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003486/0.3268, allocations: 237.2 kB / 0.5382 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3268, allocations: 2.75 kB / 0.5382 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3268, allocations: 0 / 0.5382 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.3268, allocations: 5.875 kB / 0.5382 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008024/0.3276, allocations: 0.7122 MB / 0.5389 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3276, allocations: 0.5156 kB / 0.5389 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.3279, allocations: 47.55 kB / 0.5389 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.3279, allocations: 3.406 kB / 0.5389 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.3279, allocations: 6.75 kB / 0.5389 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.3279, allocations: 1.984 kB / 0.5389 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3279, allocations: 1.438 kB / 0.5389 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005824/0.3285, allocations: 438.2 kB / 0.5394 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.3285, allocations: 21.23 kB / 0.5394 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.3286, allocations: 8.156 kB / 0.5394 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.3287, allocations: 6.984 kB / 0.5394 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.553e-05/0.3287, allocations: 26.39 kB / 0.5394 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.3288, allocations: 10.31 kB / 0.5394 GB, free: 15.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001707/0.3289, allocations: 176.6 kB / 0.5396 GB, free: 15.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3289, allocations: 0 / 0.5396 GB, free: 15.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003258/0.3293, allocations: 54.22 kB / 0.5396 GB, free: 15.62 MB / 398.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.0008342/0.3301, allocations: 0.9571 MB / 0.5406 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003525/0.3304, allocations: 198.9 kB / 0.5408 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3305, allocations: 1.094 kB / 0.5408 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.3306, allocations: 93.27 kB / 0.5409 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004233/0.331, allocations: 63.67 kB / 0.5409 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.3344, allocations: 2.949 MB / 0.5438 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.3348, allocations: 0.8096 MB / 0.5446 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.3349, allocations: 32.66 kB / 0.5446 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.3351, allocations: 132.1 kB / 0.5447 GB, free: 11.53 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3351, allocations: 0 / 0.5447 GB, free: 11.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.363, allocations: 5.562 MB / 0.5502 GB, free: 8.758 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.36, allocations: 12.33 kB / 0.5502 GB, free: 8.758 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.975079647963867] Failed to read output from testmodel.py, exit status != 0: 11.518479326972738 11.542941595 11.220283429 Calling exit ...