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.001359/0.001359, 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.001487/0.001487, allocations: 212.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.353/1.353, allocations: 230.6 MB / 256 MB, free: 7.828 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.1864/0.1864, allocations: 29.23 MB / 341.7 MB, free: 5.594 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.002246/0.002246, allocations: 67.91 kB / 478.3 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3284, allocations: 60.8 MB / 0.5265 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002783/0.3312, allocations: 1.697 MB / 0.5281 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006981/0.3319, allocations: 305.9 kB / 0.5284 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.3321, allocations: 9.281 kB / 0.5284 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.3323, allocations: 68.2 kB / 0.5285 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.521e-05/0.3324, allocations: 34.81 kB / 0.5285 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.3327, allocations: 154.6 kB / 0.5287 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004962/0.3332, allocations: 359.4 kB / 0.529 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003195/0.3335, allocations: 207 kB / 0.5292 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.3337, allocations: 138.9 kB / 0.5293 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.3338, allocations: 142.1 kB / 0.5295 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.684e-05/0.3339, allocations: 37.53 kB / 0.5295 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.803e-05/0.3339, allocations: 37.09 kB / 0.5295 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.768e-05/0.334, allocations: 100.2 kB / 0.5296 GB, free: 5.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.3341, allocations: 149.1 kB / 0.5298 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.3345, allocations: 398.6 kB / 0.5302 GB, free: 5.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3345, allocations: 1.438 kB / 0.5302 GB, free: 5.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3345, allocations: 0 / 0.5302 GB, free: 5.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.3345, allocations: 0 / 0.5302 GB, free: 5.527 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.0009185/0.3355, allocations: 0.706 MB / 0.5309 GB, free: 5.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3355, allocations: 9.031 kB / 0.5309 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.3356, allocations: 93.02 kB / 0.531 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.581e-05/0.3357, allocations: 53.48 kB / 0.531 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004112/0.3361, allocations: 270.1 kB / 0.5313 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.3361, allocations: 35.72 kB / 0.5313 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/0.3362, allocations: 53.47 kB / 0.5313 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005903/0.3368, allocations: 456 kB / 0.5318 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.3368, allocations: 11.81 kB / 0.5318 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.3368, allocations: 22.09 kB / 0.5318 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.3368, allocations: 11.78 kB / 0.5318 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003652/0.3372, allocations: 233.8 kB / 0.532 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.3387, allocations: 1.537 MB / 0.5336 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.3391, allocations: 167.4 kB / 0.5337 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.3392, allocations: 70.34 kB / 0.5338 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.3392, allocations: 3.219 kB / 0.5338 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002024/0.3394, allocations: 129.8 kB / 0.5339 GB, free: 2.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.3394, allocations: 1.344 kB / 0.5339 GB, free: 2.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004253/0.3398, allocations: 236.4 kB / 0.5341 GB, free: 2.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.3399, allocations: 54.52 kB / 0.5342 GB, free: 2.695 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.3401, allocations: 258.5 kB / 0.5344 GB, free: 2.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.3401, allocations: 26.95 kB / 0.5345 GB, free: 2.508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.3402, allocations: 255 kB / 0.5347 GB, free: 2.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.129e-05/0.3402, allocations: 82.92 kB / 0.5348 GB, free: 2.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.816e-05/0.3403, allocations: 50.59 kB / 0.5348 GB, free: 2.199 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.3e-05/0.3404, allocations: 345.9 kB / 0.5352 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.3405, allocations: 57.86 kB / 0.5352 GB, free: 1.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.3406, allocations: 136 kB / 0.5353 GB, free: 1.738 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.3408, allocations: 207.5 kB / 0.5355 GB, free: 1.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3408, allocations: 4 kB / 0.5355 GB, free: 1.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003358/0.3412, allocations: 261.1 kB / 0.5358 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3412, allocations: 5.375 kB / 0.5358 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3412, allocations: 2.344 kB / 0.5358 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.3412, allocations: 5.344 kB / 0.5358 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.3414, allocations: 49.17 kB / 0.5358 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.3414, allocations: 8.766 kB / 0.5359 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.3415, allocations: 23.97 kB / 0.5359 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.3415, allocations: 10.05 kB / 0.5359 GB, free: 1.43 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.0001195/0.3417, allocations: 156.9 kB / 0.536 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.991e-05/0.3417, allocations: 33.12 kB / 0.5361 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002989/0.342, allocations: 202.3 kB / 0.5363 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.342, allocations: 6.734 kB / 0.5363 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.342, allocations: 0.7031 kB / 0.5363 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.342, allocations: 2.219 kB / 0.5363 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005976/0.3426, allocations: 0.5728 MB / 0.5368 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.3426, allocations: 4 kB / 0.5368 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.3428, allocations: 33.53 kB / 0.5369 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3428, allocations: 1.312 kB / 0.5369 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.3428, allocations: 2.219 kB / 0.5369 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3428, allocations: 5.25 kB / 0.5369 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3428, allocations: 0 / 0.5369 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/0.3432, allocations: 366.3 kB / 0.5372 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.388e-05/0.3432, allocations: 28.55 kB / 0.5373 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.3433, allocations: 6.359 kB / 0.5373 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.3434, allocations: 5.438 kB / 0.5373 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.098e-05/0.3434, allocations: 17.12 kB / 0.5373 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.3434, allocations: 12.66 kB / 0.5373 GB, free: 480 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001437/0.3436, allocations: 178 kB / 0.5375 GB, free: 372 kB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3436, allocations: 0 / 0.5375 GB, free: 372 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003055/0.3439, allocations: 72.86 kB / 0.5375 GB, free: 344 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.0007091/0.3446, allocations: 0.8951 MB / 0.5384 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.3449, allocations: 159.1 kB / 0.5386 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3449, allocations: 0.5625 kB / 0.5386 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.345, allocations: 80.59 kB / 0.5386 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003884/0.3454, allocations: 41.41 kB / 0.5387 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003423/0.3488, allocations: 2.784 MB / 0.5414 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.349, allocations: 201.9 kB / 0.5416 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.3491, allocations: 25.81 kB / 0.5416 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.3493, allocations: 127.7 kB / 0.5417 GB, free: 13.14 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3493, allocations: 1.156 kB / 0.5417 GB, free: 13.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03571/0.385, allocations: 5.388 MB / 0.547 GB, free: 10.22 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.14, allocations: 9.297 kB / 0.547 GB, free: 10.21 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 & /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.71115941600874] Failed to read output from testmodel.py, exit status != 0: 11.242333221714944 11.256725602 10.919339001 Calling exit ...