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.0008277/0.0008277, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008315/0.0008315, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 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 0.8839/0.8839, allocations: 177.2 MB / 202.8 MB, free: 5.555 MB / 186.7 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.1223/0.1223, allocations: 21.79 MB / 281 MB, free: 7.277 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.505e-06/2.505e-06, allocations: 0 / 417.7 MB, free: 9.461 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.901e-05/2.151e-05, allocations: 3.688 kB / 417.7 MB, free: 9.457 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.002952/0.002974, allocations: 1.698 MB / 419.4 MB, free: 7.758 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007713/0.003745, allocations: 314.8 kB / 419.7 MB, free: 7.449 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.003951, allocations: 7.938 kB / 419.7 MB, free: 7.441 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.004158, allocations: 67.25 kB / 419.8 MB, free: 7.375 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.004275, allocations: 35.56 kB / 419.8 MB, free: 7.34 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.004636, allocations: 155.8 kB / 420 MB, free: 7.188 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.005037, allocations: 368.2 kB / 420.3 MB, free: 6.828 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003481/0.005385, allocations: 201.2 kB / 420.5 MB, free: 6.629 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.005591, allocations: 215.5 kB / 420.7 MB, free: 6.418 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.005748, allocations: 103.6 kB / 420.8 MB, free: 6.316 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.204e-05/0.00582, allocations: 40 kB / 420.9 MB, free: 6.277 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.403e-05/0.005864, allocations: 39.94 kB / 420.9 MB, free: 6.238 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 7.257e-05/0.005937, allocations: 91.59 kB / 421 MB, free: 6.148 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.006039, allocations: 119.7 kB / 421.1 MB, free: 6.031 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004175/0.006457, allocations: 402.5 kB / 421.5 MB, free: 5.637 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.006459, allocations: 0 / 421.5 MB, free: 5.637 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.00646, allocations: 0 / 421.5 MB, free: 5.637 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.006467, allocations: 0 / 421.5 MB, free: 5.637 MB / 394.7 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.0009321/0.007399, allocations: 0.6942 MB / 422.2 MB, free: 4.898 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.007444, allocations: 12.03 kB / 422.2 MB, free: 4.887 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.007583, allocations: 103.6 kB / 422.3 MB, free: 4.777 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.761e-05/0.00766, allocations: 56.61 kB / 422.4 MB, free: 4.723 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000415/0.008075, allocations: 268.7 kB / 422.6 MB, free: 4.434 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.008107, allocations: 33.38 kB / 422.7 MB, free: 4.402 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.907e-05/0.008166, allocations: 48.38 kB / 422.7 MB, free: 4.355 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006364/0.008803, allocations: 456.7 kB / 423.2 MB, free: 3.879 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.008818, allocations: 4.188 kB / 423.2 MB, free: 3.875 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.008852, allocations: 16.38 kB / 423.2 MB, free: 3.859 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.008866, allocations: 16.12 kB / 423.2 MB, free: 3.844 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.009269, allocations: 235.8 kB / 423.4 MB, free: 3.613 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.01054, allocations: 1.528 MB / 425 MB, free: 2.004 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.0108, allocations: 170.4 kB / 425.1 MB, free: 1.828 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.913e-05/0.01088, allocations: 72.84 kB / 425.2 MB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.0109, allocations: 4 kB / 425.2 MB, free: 1.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001458/0.01104, allocations: 122.3 kB / 425.3 MB, free: 1.621 MB / 394.7 MB Notification: Performance of pre-optimization done (n=21): time 1.243e-06/0.01104, allocations: 0 / 425.3 MB, free: 1.621 MB / 394.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002942/0.01134, allocations: 233.7 kB / 425.6 MB, free: 1.387 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.689e-05/0.01136, allocations: 55.41 kB / 425.6 MB, free: 1.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.01153, allocations: 257.8 kB / 425.9 MB, free: 1.059 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.01154, allocations: 29.7 kB / 425.9 MB, free: 1.023 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.01165, allocations: 256.3 kB / 426.1 MB, free: 0.7695 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.749e-05/0.01169, allocations: 79.36 kB / 426.2 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.368e-05/0.01174, allocations: 53.94 kB / 426.3 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.617e-05/0.01183, allocations: 334.8 kB / 426.6 MB, free: 300 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.13e-05/0.0119, allocations: 64.48 kB / 426.7 MB, free: 236 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.012, allocations: 142.5 kB / 426.8 MB, free: 64 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.0122, allocations: 210.5 kB / 427 MB, free: 15.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.0122, allocations: 3.938 kB / 427 MB, free: 15.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002417/0.01244, allocations: 261 kB / 427.3 MB, free: 15.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.01245, allocations: 6.812 kB / 427.3 MB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.01246, allocations: 4 kB / 427.3 MB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.01247, allocations: 4 kB / 427.3 MB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.01258, allocations: 47.91 kB / 427.3 MB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.01259, allocations: 4 kB / 427.3 MB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.46e-05/0.01265, allocations: 28.08 kB / 427.4 MB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.01266, allocations: 16 kB / 427.4 MB, free: 15.46 MB / 410.7 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.0001065/0.01277, allocations: 157.6 kB / 427.5 MB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.914e-05/0.01279, allocations: 23.86 kB / 427.5 MB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002185/0.01301, allocations: 207 kB / 427.8 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.01301, allocations: 0 / 427.8 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.01301, allocations: 0 / 427.8 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.01302, allocations: 7.922 kB / 427.8 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004263/0.01344, allocations: 0.5832 MB / 428.3 MB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.01345, allocations: 0 / 428.3 MB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.979e-05/0.01354, allocations: 31.98 kB / 428.4 MB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.01355, allocations: 4 kB / 428.4 MB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.01356, allocations: 12 kB / 428.4 MB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.01356, allocations: 0 / 428.4 MB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01356, allocations: 0 / 428.4 MB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.01386, allocations: 359.1 kB / 428.7 MB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.95e-05/0.01388, allocations: 23.86 kB / 428.8 MB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.01389, allocations: 0 / 428.8 MB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.805e-05/0.01395, allocations: 12.03 kB / 428.8 MB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.932e-05/0.01398, allocations: 7.984 kB / 428.8 MB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.01399, allocations: 8 kB / 428.8 MB, free: 13.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001029/0.01409, allocations: 185.2 kB / 429 MB, free: 13.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01409, allocations: 0 / 429 MB, free: 13.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001984/0.01429, allocations: 79.62 kB / 429 MB, free: 13.7 MB / 410.7 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.0004497/0.01474, allocations: 0.8949 MB / 429.9 MB, free: 12.78 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002037/0.01494, allocations: 163.6 kB / 430.1 MB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.01494, allocations: 4 kB / 430.1 MB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.949e-05/0.01501, allocations: 71.86 kB / 430.2 MB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.01525, allocations: 42.86 kB / 430.2 MB, free: 12.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.0173, allocations: 2.789 MB / 433 MB, free: 9.578 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.01743, allocations: 194.8 kB / 433.2 MB, free: 9.367 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.634e-05/0.01749, allocations: 26.28 kB / 433.2 MB, free: 9.344 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.0176, allocations: 128.5 kB / 433.3 MB, free: 9.219 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.0176, allocations: 0 / 433.3 MB, free: 9.219 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01676/0.03436, allocations: 5.537 MB / 438.9 MB, free: 3.797 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.81/6.844, allocations: 5.938 kB / 438.9 MB, free: 3.793 MB / 410.7 MB " [Timeout remaining time 653] (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: 8.930630195885897] Failed to read output from testmodel.py, exit status != 0: 6.928141452372074 7.1086494909999995 7.100658818 Calling exit ...