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.001685/0.001685, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002029/0.002029, allocations: 213.7 kB / 22.24 MB, free: 5.262 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.357/1.357, allocations: 230.6 MB / 256 MB, free: 7.781 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.1814/0.1814, allocations: 29.23 MB / 341.7 MB, free: 5.551 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.001946/0.001946, allocations: 75.88 kB / 478.3 MB, free: 388 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.324, allocations: 60.79 MB / 0.5265 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.00281/0.3268, allocations: 1.713 MB / 0.5281 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006039/0.3274, allocations: 302.1 kB / 0.5284 GB, free: 6.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.3276, allocations: 13.03 kB / 0.5284 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.3278, allocations: 60.98 kB / 0.5285 GB, free: 6.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.693e-05/0.3279, allocations: 33.78 kB / 0.5285 GB, free: 6.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003438/0.3282, allocations: 151.8 kB / 0.5287 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00049/0.3287, allocations: 371.2 kB / 0.529 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003151/0.329, allocations: 197.3 kB / 0.5292 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.3291, allocations: 144.9 kB / 0.5293 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.3293, allocations: 145.4 kB / 0.5295 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.884e-05/0.3293, allocations: 38.28 kB / 0.5295 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.883e-05/0.3294, allocations: 36.84 kB / 0.5296 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.982e-05/0.3295, allocations: 88.17 kB / 0.5296 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.3296, allocations: 146.7 kB / 0.5298 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.33, allocations: 408.9 kB / 0.5302 GB, free: 5.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.33, allocations: 0 / 0.5302 GB, free: 5.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.33, allocations: 1.125 kB / 0.5302 GB, free: 5.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.33, allocations: 4 kB / 0.5302 GB, free: 5.496 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.0009045/0.3309, allocations: 0.6902 MB / 0.5308 GB, free: 4.992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3309, allocations: 14.12 kB / 0.5309 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.331, allocations: 95.84 kB / 0.531 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.012e-05/0.3311, allocations: 53.8 kB / 0.531 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.3315, allocations: 273 kB / 0.5313 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.3315, allocations: 38.34 kB / 0.5313 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.101e-05/0.3316, allocations: 47.41 kB / 0.5313 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005934/0.3322, allocations: 452.1 kB / 0.5318 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.3322, allocations: 8.969 kB / 0.5318 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.3322, allocations: 16.47 kB / 0.5318 GB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.3322, allocations: 13.78 kB / 0.5318 GB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/0.3326, allocations: 240.7 kB / 0.532 GB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.3341, allocations: 1.546 MB / 0.5336 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.3344, allocations: 162.9 kB / 0.5337 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.3345, allocations: 70.23 kB / 0.5338 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3345, allocations: 6.781 kB / 0.5338 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.3347, allocations: 121.5 kB / 0.5339 GB, free: 2.855 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.3347, allocations: 0 / 0.5339 GB, free: 2.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003961/0.3351, allocations: 231 kB / 0.5341 GB, free: 2.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.3352, allocations: 54.5 kB / 0.5342 GB, free: 2.684 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.3354, allocations: 262.2 kB / 0.5344 GB, free: 2.523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.3354, allocations: 35.08 kB / 0.5345 GB, free: 2.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.3355, allocations: 248.7 kB / 0.5347 GB, free: 2.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.459e-05/0.3355, allocations: 86.31 kB / 0.5348 GB, free: 2.215 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.755e-05/0.3356, allocations: 50.22 kB / 0.5348 GB, free: 2.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.3357, allocations: 342.1 kB / 0.5351 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.3358, allocations: 66.03 kB / 0.5352 GB, free: 1.824 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.3359, allocations: 135.3 kB / 0.5353 GB, free: 1.715 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.3361, allocations: 210.9 kB / 0.5355 GB, free: 1.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3361, allocations: 1.281 kB / 0.5355 GB, free: 1.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003222/0.3365, allocations: 267.6 kB / 0.5358 GB, free: 1.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.3365, allocations: 6.969 kB / 0.5358 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3365, allocations: 2.406 kB / 0.5358 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3365, allocations: 3.906 kB / 0.5358 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.3367, allocations: 45.36 kB / 0.5359 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.3367, allocations: 5.484 kB / 0.5359 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.3368, allocations: 23.45 kB / 0.5359 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.3368, allocations: 12.72 kB / 0.5359 GB, free: 1.402 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.0001156/0.3369, allocations: 156.3 kB / 0.536 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.3369, allocations: 27.61 kB / 0.5361 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002906/0.3372, allocations: 203.8 kB / 0.5363 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3372, allocations: 3.062 kB / 0.5363 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3372, allocations: 1.5 kB / 0.5363 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3372, allocations: 5.156 kB / 0.5363 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000594/0.3378, allocations: 0.5784 MB / 0.5368 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3378, allocations: 0 / 0.5368 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.338, allocations: 30.69 kB / 0.5369 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.338, allocations: 1.281 kB / 0.5369 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.338, allocations: 6.219 kB / 0.5369 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.338, allocations: 5.312 kB / 0.5369 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.338, allocations: 4 kB / 0.5369 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003768/0.3384, allocations: 363.2 kB / 0.5372 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.245e-05/0.3384, allocations: 28.38 kB / 0.5373 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.3385, allocations: 6.812 kB / 0.5373 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.3386, allocations: 3 kB / 0.5373 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.979e-05/0.3386, allocations: 18.53 kB / 0.5373 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.3386, allocations: 5.828 kB / 0.5373 GB, free: 460 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.3388, allocations: 177.5 kB / 0.5375 GB, free: 352 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3388, allocations: 0 / 0.5375 GB, free: 352 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.3391, allocations: 77.61 kB / 0.5375 GB, free: 320 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.0006794/0.3397, allocations: 0.8945 MB / 0.5384 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002924/0.34, allocations: 155.6 kB / 0.5386 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.34, allocations: 0 / 0.5386 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.3401, allocations: 72.38 kB / 0.5386 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.3405, allocations: 44.86 kB / 0.5387 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/0.3438, allocations: 2.791 MB / 0.5414 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.344, allocations: 200.4 kB / 0.5416 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.686e-05/0.3441, allocations: 22.94 kB / 0.5416 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.3442, allocations: 124.7 kB / 0.5417 GB, free: 13.11 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3442, allocations: 0 / 0.5417 GB, free: 13.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0334/0.3776, allocations: 5.393 MB / 0.547 GB, free: 10.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.05, allocations: 7.422 kB / 0.547 GB, free: 10.19 MB / 398.1 MB " [Timeout remaining time 649] (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: 13.70484044868499] Failed to read output from testmodel.py, exit status != 0: 11.155353609938174 11.179376825 10.844965173 Calling exit ...