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.001551/0.001551, allocations: 119.6 kB / 17.16 MB, free: 5.914 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.001442/0.001442, allocations: 211 kB / 20.13 MB, free: 2.969 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.375/1.375, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1835/0.1835, allocations: 29.23 MB / 338.8 MB, free: 11.77 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.001899/0.001899, allocations: 69.12 kB / 473.9 MB, free: 27.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1096, allocations: 60.76 MB / 0.5221 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.003222/0.1128, allocations: 1.928 MB / 0.524 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006221/0.1135, allocations: 310.8 kB / 0.5243 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.1136, allocations: 7.938 kB / 0.5243 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.1138, allocations: 67.31 kB / 0.5244 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.767e-05/0.1139, allocations: 31.56 kB / 0.5244 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.1143, allocations: 159.8 kB / 0.5245 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004003/0.1147, allocations: 368.3 kB / 0.5249 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003439/0.115, allocations: 208.9 kB / 0.5251 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.1152, allocations: 147.3 kB / 0.5252 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.1153, allocations: 167 kB / 0.5254 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.955e-05/0.1154, allocations: 36 kB / 0.5254 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.431e-05/0.1154, allocations: 40 kB / 0.5255 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.486e-05/0.1155, allocations: 87.69 kB / 0.5256 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.1157, allocations: 190.8 kB / 0.5257 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004185/0.1161, allocations: 394 kB / 0.5261 GB, free: 0.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1161, allocations: 0 / 0.5261 GB, free: 0.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1161, allocations: 0 / 0.5261 GB, free: 0.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.1161, allocations: 0 / 0.5261 GB, free: 0.668 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.0009703/0.1171, allocations: 0.6821 MB / 0.5268 GB, free: 15.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1171, allocations: 16.03 kB / 0.5268 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.973e-05/0.1172, allocations: 21.08 kB / 0.5268 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.1173, allocations: 95.66 kB / 0.5269 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.947e-05/0.1174, allocations: 56.55 kB / 0.527 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.1178, allocations: 339.2 kB / 0.5273 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.384e-05/0.1178, allocations: 41.38 kB / 0.5273 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.902e-05/0.1179, allocations: 52.38 kB / 0.5274 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006567/0.1186, allocations: 468.4 kB / 0.5278 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1186, allocations: 4 kB / 0.5278 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.1186, allocations: 20 kB / 0.5278 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.1186, allocations: 12 kB / 0.5278 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003924/0.119, allocations: 243.8 kB / 0.5281 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.1208, allocations: 1.674 MB / 0.5297 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003609/0.1212, allocations: 195.1 kB / 0.5299 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.1213, allocations: 93.3 kB / 0.53 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.1214, allocations: 12.17 kB / 0.53 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002284/0.1216, allocations: 131.6 kB / 0.5301 GB, free: 12.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 1.673e-06/0.1216, allocations: 0 / 0.5301 GB, free: 12.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001237/0.1228, allocations: 0.8014 MB / 0.5309 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.1229, allocations: 55.41 kB / 0.531 GB, free: 11.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.1231, allocations: 254.7 kB / 0.5312 GB, free: 11.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.1232, allocations: 29.7 kB / 0.5312 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.1233, allocations: 248.3 kB / 0.5315 GB, free: 10.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.506e-05/0.1234, allocations: 127 kB / 0.5316 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.561e-05/0.1235, allocations: 66.08 kB / 0.5317 GB, free: 10.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1237, allocations: 342.8 kB / 0.532 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.1238, allocations: 72.72 kB / 0.5321 GB, free: 10.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001902/0.124, allocations: 157.8 kB / 0.5322 GB, free: 10.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.1243, allocations: 260.2 kB / 0.5325 GB, free: 9.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1243, allocations: 0 / 0.5325 GB, free: 9.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000446/0.1248, allocations: 320.9 kB / 0.5328 GB, free: 9.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1248, allocations: 4 kB / 0.5328 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1248, allocations: 4 kB / 0.5328 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.1248, allocations: 4 kB / 0.5328 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.1251, allocations: 67.91 kB / 0.5328 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1251, allocations: 7.938 kB / 0.5328 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.1252, allocations: 8 kB / 0.5328 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.1252, allocations: 16 kB / 0.5329 GB, free: 9.332 MB / 398.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 (45): * Single equations (assignments): 45 * 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.0001602/0.1253, allocations: 156.8 kB / 0.533 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/0.1254, allocations: 35.75 kB / 0.533 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004256/0.1258, allocations: 268.6 kB / 0.5333 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1258, allocations: 4 kB / 0.5333 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1258, allocations: 0 / 0.5333 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1258, allocations: 0 / 0.5333 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009682/0.1268, allocations: 0.7988 MB / 0.5341 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1268, allocations: 8 kB / 0.5341 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.127, allocations: 59.91 kB / 0.5342 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1271, allocations: 4 kB / 0.5342 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.1271, allocations: 8 kB / 0.5342 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1271, allocations: 0 / 0.5342 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.1271, allocations: 7.938 kB / 0.5342 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.1277, allocations: 467.5 kB / 0.5346 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.901e-05/0.1277, allocations: 105 kB / 0.5347 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.1278, allocations: 8 kB / 0.5347 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.1279, allocations: 4.094 kB / 0.5347 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.641e-05/0.1279, allocations: 35.89 kB / 0.5348 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.128, allocations: 11.94 kB / 0.5348 GB, free: 7.246 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.1281, allocations: 178 kB / 0.5349 GB, free: 7.078 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1281, allocations: 4 kB / 0.5349 GB, free: 7.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.1284, allocations: 52 kB / 0.535 GB, free: 7.023 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 ($outputAlias_Non_inf_pop,$outputAlias_Inf_pop,$outputAlias_Sick_pop,$outputAlias_Immune_pop) * 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 (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 Backend phase and start with SimCode phase: time 0.0008661/0.1293, allocations: 1.001 MB / 0.536 GB, free: 5.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000367/0.1297, allocations: 208 kB / 0.5362 GB, free: 5.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1297, allocations: 8.5 kB / 0.5362 GB, free: 5.773 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.1298, allocations: 103.8 kB / 0.5363 GB, free: 5.672 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.1302, allocations: 40.53 kB / 0.5363 GB, free: 5.629 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003398/0.1336, allocations: 3.041 MB / 0.5393 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.134, allocations: 0.811 MB / 0.5401 GB, free: 1.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.412e-05/0.1341, allocations: 26.97 kB / 0.5401 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001742/0.1343, allocations: 135.4 kB / 0.5402 GB, free: 1.43 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1343, allocations: 4 kB / 0.5402 GB, free: 1.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.159, allocations: 5.492 MB / 0.5456 GB, free: 12.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.059/8.218, allocations: 6.125 kB / 0.5456 GB, free: 12.04 MB / 414.1 MB " [Timeout remaining time 652] (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: 10.900431858957745] Failed to read output from testmodel.py, exit status != 0: 8.350354049995076 8.363272597 8.244617384 Calling exit ...