Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.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.001682/0.001682, allocations: 115.9 kB / 17.16 MB, free: 5.895 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.001875/0.001875, allocations: 215 kB / 20.13 MB, free: 2.949 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.35/1.35, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1756/0.1756, allocations: 29.23 MB / 338.8 MB, free: 11.79 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.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "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.00186/0.00186, allocations: 64.52 kB / 473.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1046, allocations: 60.75 MB / 0.5221 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003438/0.108, allocations: 2.397 MB / 0.5245 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009391/0.109, allocations: 442.7 kB / 0.5249 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.1091, allocations: 7.938 kB / 0.5249 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.1092, allocations: 47.41 kB / 0.5249 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.1094, allocations: 35.61 kB / 0.525 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004475/0.1098, allocations: 151.7 kB / 0.5251 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003195/0.1101, allocations: 316.7 kB / 0.5254 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.1104, allocations: 155 kB / 0.5256 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.1105, allocations: 143.4 kB / 0.5257 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.1107, allocations: 175.1 kB / 0.5259 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.394e-05/0.1108, allocations: 36 kB / 0.5259 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.1109, allocations: 67.91 kB / 0.526 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.111, allocations: 131.6 kB / 0.5261 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.1112, allocations: 214.5 kB / 0.5263 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000453/0.1117, allocations: 437.6 kB / 0.5267 GB, free: 176 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1117, allocations: 0 / 0.5267 GB, free: 176 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1117, allocations: 0 / 0.5267 GB, free: 176 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1117, allocations: 0 / 0.5267 GB, free: 176 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001223/0.1129, allocations: 0.8004 MB / 0.5275 GB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.1129, allocations: 12.03 kB / 0.5275 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.039e-05/0.113, allocations: 17.12 kB / 0.5275 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.1131, allocations: 91.66 kB / 0.5276 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001545/0.1132, allocations: 64.56 kB / 0.5277 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.1135, allocations: 290.3 kB / 0.5279 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.1135, allocations: 37.38 kB / 0.528 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.281e-05/0.1136, allocations: 44.38 kB / 0.528 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007533/0.1143, allocations: 482.4 kB / 0.5285 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1144, allocations: 0 / 0.5285 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.1144, allocations: 20 kB / 0.5285 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.1144, allocations: 12 kB / 0.5285 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006844/0.1151, allocations: 383.7 kB / 0.5289 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.1166, allocations: 1.181 MB / 0.53 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.1178, allocations: 0.4961 MB / 0.5305 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003116/0.1181, allocations: 178.4 kB / 0.5307 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.802e-05/0.1182, allocations: 37.3 kB / 0.5307 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004836/0.1186, allocations: 283.2 kB / 0.531 GB, free: 11.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.553e-06/0.1186, allocations: 0 / 0.531 GB, free: 11.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=56): time 0.002654/0.1213, allocations: 1.545 MB / 0.5325 GB, free: 9.996 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.1214, allocations: 89.55 kB / 0.5326 GB, free: 9.887 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.1217, allocations: 345.7 kB / 0.5329 GB, free: 9.539 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.1217, allocations: 37.7 kB / 0.5329 GB, free: 9.496 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.1219, allocations: 253.3 kB / 0.5332 GB, free: 9.246 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.122, allocations: 198.3 kB / 0.5334 GB, free: 9.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1222, allocations: 74.27 kB / 0.5334 GB, free: 8.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1223, allocations: 366.7 kB / 0.5338 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.1227, allocations: 221.4 kB / 0.534 GB, free: 8.387 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000391/0.1231, allocations: 268.5 kB / 0.5343 GB, free: 8.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/0.126, allocations: 0.8928 MB / 0.5351 GB, free: 7.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.126, allocations: 11.94 kB / 0.5351 GB, free: 7.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009163/0.1269, allocations: 0.609 MB / 0.5357 GB, free: 6.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.127, allocations: 4 kB / 0.5357 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.127, allocations: 7.984 kB / 0.5358 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.127, allocations: 0 / 0.5358 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003796/0.1274, allocations: 95.89 kB / 0.5358 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1274, allocations: 4 kB / 0.5359 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.1275, allocations: 20.03 kB / 0.5359 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/0.1276, allocations: 28.14 kB / 0.5359 GB, free: 6.434 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: Eggs.level:DISCRETE(start = Eggs.x0 fixed = true ) \"Discrete state variable\" type: Real Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = true ) \"Discrete state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.Eggs.level,$PRE.Rawfiber.level,Rawfiber.level,Eggs.level) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 58 * 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.0002564/0.1278, allocations: 197.6 kB / 0.5361 GB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.075e-05/0.1279, allocations: 43.72 kB / 0.5361 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.129, allocations: 0.6885 MB / 0.5368 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.129, allocations: 8 kB / 0.5368 GB, free: 5.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.129, allocations: 0 / 0.5368 GB, free: 5.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.1291, allocations: 3.984 kB / 0.5368 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.1309, allocations: 1.495 MB / 0.5383 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.1309, allocations: 4 kB / 0.5383 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.1313, allocations: 99.83 kB / 0.5384 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-06/0.1313, allocations: 8 kB / 0.5384 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.1313, allocations: 19.98 kB / 0.5384 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.1313, allocations: 4 kB / 0.5384 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.1313, allocations: 7.938 kB / 0.5384 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.1324, allocations: 0.8428 MB / 0.5392 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.793e-05/0.1324, allocations: 124.8 kB / 0.5393 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/0.1325, allocations: 12 kB / 0.5394 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.1327, allocations: 15.98 kB / 0.5394 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.657e-05/0.1328, allocations: 51.89 kB / 0.5394 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.1329, allocations: 24 kB / 0.5394 GB, free: 2.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002392/0.1331, allocations: 259.1 kB / 0.5397 GB, free: 2.367 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1331, allocations: 0 / 0.5397 GB, free: 2.367 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004133/0.1335, allocations: 83.94 kB / 0.5398 GB, free: 2.285 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,Eggs.level,Rawfiber.level) * Number of discrete states: 2 (Eggs.level,Rawfiber.level) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001866/0.1354, allocations: 1.745 MB / 0.5415 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000857/0.1362, allocations: 0.5294 MB / 0.542 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1362, allocations: 0 / 0.542 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004396/0.1367, allocations: 287.9 kB / 0.5423 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.1371, allocations: 43.73 kB / 0.5423 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005831/0.1429, allocations: 4.89 MB / 0.5471 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004779/0.1434, allocations: 0.8661 MB / 0.5479 GB, free: 9.695 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001887/0.1436, allocations: 66.95 kB / 0.548 GB, free: 9.633 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.1439, allocations: 207.4 kB / 0.5482 GB, free: 9.43 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1439, allocations: 0 / 0.5482 GB, free: 9.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.1687, allocations: 7.921 MB / 0.5559 GB, free: 1.605 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.375/8.544, allocations: 11.44 kB / 0.5559 GB, free: 1.598 MB / 414.1 MB " [Timeout remaining time 651] (rm -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe ; mkfifo SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe >> ../files/SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM_fmu --startTime=1949 --stopTime=1978 --stepSize=0.0116 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM.fmu > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.149248759029433] Failed to read output from testmodel.py, exit status != 0: 8.67034076602431 8.692277995 8.576621625 Calling exit ...