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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 106 kB / 18.84 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 188.4 kB / 22.1 MB, free: 5.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 225.6 MB / 250.8 MB, free: 13.06 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.1835/0.1835, allocations: 29.24 MB / 335.3 MB, free: 11.33 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.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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) [Timeout 660] "Warning: Ignoring unknown experiment annotation option: Algorithm = \"dassl\" Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 71.88 kB / 469.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3293, allocations: 59.6 MB / 0.5167 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002813/0.3322, allocations: 1.957 MB / 0.5186 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006598/0.3328, allocations: 317 kB / 0.5189 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.333, allocations: 9.375 kB / 0.5189 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.3332, allocations: 61.7 kB / 0.519 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.3333, allocations: 38.91 kB / 0.519 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.3337, allocations: 151.3 kB / 0.5192 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004283/0.3341, allocations: 382.7 kB / 0.5195 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003311/0.3345, allocations: 221.8 kB / 0.5197 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.3346, allocations: 146 kB / 0.5199 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.3348, allocations: 170.1 kB / 0.52 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.938e-05/0.3348, allocations: 38.47 kB / 0.5201 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.579e-05/0.3349, allocations: 37.84 kB / 0.5201 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.613e-05/0.335, allocations: 87.58 kB / 0.5202 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.3351, allocations: 188.5 kB / 0.5204 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004682/0.3356, allocations: 407.7 kB / 0.5208 GB, free: 7.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3356, allocations: 0 / 0.5208 GB, free: 7.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3356, allocations: 5.312 kB / 0.5208 GB, free: 7.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.3356, allocations: 0 / 0.5208 GB, free: 7.133 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.001019/0.3366, allocations: 0.7722 MB / 0.5215 GB, free: 6.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.3366, allocations: 10.69 kB / 0.5215 GB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.3368, allocations: 99.47 kB / 0.5216 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.499e-05/0.3368, allocations: 54.05 kB / 0.5217 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.3373, allocations: 332.6 kB / 0.522 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.3373, allocations: 37.84 kB / 0.522 GB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.94e-05/0.3374, allocations: 48.39 kB / 0.5221 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006543/0.338, allocations: 457.6 kB / 0.5225 GB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.3381, allocations: 5.312 kB / 0.5225 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.3381, allocations: 16.64 kB / 0.5225 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.3381, allocations: 11.84 kB / 0.5225 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000406/0.3385, allocations: 238 kB / 0.5228 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.3402, allocations: 1.672 MB / 0.5244 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003701/0.3405, allocations: 177.1 kB / 0.5246 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.3406, allocations: 69.77 kB / 0.5246 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.3407, allocations: 2.688 kB / 0.5246 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.3409, allocations: 117.9 kB / 0.5247 GB, free: 4.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 2.154e-06/0.3409, allocations: 4 kB / 0.5248 GB, free: 4.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004644/0.3414, allocations: 239.5 kB / 0.525 GB, free: 4.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.3414, allocations: 54.86 kB / 0.525 GB, free: 4.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.3416, allocations: 245.1 kB / 0.5253 GB, free: 3.945 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.3417, allocations: 31.97 kB / 0.5253 GB, free: 3.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.3418, allocations: 250.9 kB / 0.5255 GB, free: 3.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.3418, allocations: 79.78 kB / 0.5256 GB, free: 3.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.197e-05/0.3419, allocations: 57.77 kB / 0.5257 GB, free: 3.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.688e-05/0.342, allocations: 341.2 kB / 0.526 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.3421, allocations: 61.94 kB / 0.5261 GB, free: 3.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.3422, allocations: 134.1 kB / 0.5262 GB, free: 3.137 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/0.3425, allocations: 212.5 kB / 0.5264 GB, free: 2.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3425, allocations: 7.938 kB / 0.5264 GB, free: 2.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003825/0.3429, allocations: 252.8 kB / 0.5266 GB, free: 2.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3429, allocations: 6.562 kB / 0.5266 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.3429, allocations: 2.219 kB / 0.5266 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.3429, allocations: 8.531 kB / 0.5266 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.3431, allocations: 45.67 kB / 0.5267 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.3431, allocations: 8.688 kB / 0.5267 GB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.3433, allocations: 36.38 kB / 0.5267 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.3433, allocations: 9.125 kB / 0.5267 GB, free: 2.812 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.000146/0.3434, allocations: 159.6 kB / 0.5269 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.398e-05/0.3435, allocations: 23.33 kB / 0.5269 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003244/0.3438, allocations: 208 kB / 0.5271 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3438, allocations: 2.844 kB / 0.5271 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.3438, allocations: 0 / 0.5271 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.3438, allocations: 1.266 kB / 0.5271 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006648/0.3445, allocations: 0.6449 MB / 0.5278 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3445, allocations: 0 / 0.5278 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002073/0.3447, allocations: 33.7 kB / 0.5278 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3447, allocations: 0 / 0.5278 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.3447, allocations: 3.406 kB / 0.5278 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3447, allocations: 1.594 kB / 0.5278 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3447, allocations: 0 / 0.5278 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004763/0.3452, allocations: 369.8 kB / 0.5281 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.892e-05/0.3452, allocations: 101.4 kB / 0.5282 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.127e-05/0.3453, allocations: 6.234 kB / 0.5282 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.3454, allocations: 6.297 kB / 0.5282 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/0.3455, allocations: 14.81 kB / 0.5283 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.3455, allocations: 9.875 kB / 0.5283 GB, free: 1.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.3456, allocations: 177.3 kB / 0.5284 GB, free: 1.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3456, allocations: 1.062 kB / 0.5284 GB, free: 1.613 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003693/0.346, allocations: 73.89 kB / 0.5285 GB, free: 1.586 MB / 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.0005919/0.3466, allocations: 0.892 MB / 0.5294 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003376/0.3469, allocations: 163.1 kB / 0.5295 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3469, allocations: 0 / 0.5295 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.347, allocations: 76.53 kB / 0.5296 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.3475, allocations: 54.33 kB / 0.5297 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003612/0.3511, allocations: 2.799 MB / 0.5324 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/0.3516, allocations: 0.8016 MB / 0.5332 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.3517, allocations: 19.81 kB / 0.5332 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.3519, allocations: 132.2 kB / 0.5333 GB, free: 13.94 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3519, allocations: 0 / 0.5333 GB, free: 13.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03246/0.3843, allocations: 5.122 MB / 0.5383 GB, free: 12.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.186/8.57, allocations: 5.688 kB / 0.5383 GB, free: 12.7 MB / 398.1 MB " [Timeout remaining time 651] (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: 11.30150116700679] Failed to read output from testmodel.py, exit status != 0: 8.641297069145367 8.659434881 8.320360656 Calling exit ...