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.001351/0.001351, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001688/0.001688, allocations: 207.5 kB / 22.99 MB, free: 4.984 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.2006/0.2006, allocations: 29.23 MB / 342.4 MB, free: 5.562 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: translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") [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.001991/0.001991, allocations: 67.89 kB / 479.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3612, allocations: 60.79 MB / 0.5277 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003393/0.3646, allocations: 2.184 MB / 0.5298 GB, free: 6.594 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009391/0.3656, allocations: 438 kB / 0.5302 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.3657, allocations: 5.062 kB / 0.5302 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.3659, allocations: 46.28 kB / 0.5303 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.366, allocations: 37.34 kB / 0.5303 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005198/0.3665, allocations: 155.1 kB / 0.5305 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003359/0.3669, allocations: 313.6 kB / 0.5308 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.3672, allocations: 161.3 kB / 0.5309 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.3673, allocations: 140.8 kB / 0.531 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.3675, allocations: 177.9 kB / 0.5312 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.62e-05/0.3676, allocations: 34.84 kB / 0.5313 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.3677, allocations: 70.36 kB / 0.5313 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.3679, allocations: 131.2 kB / 0.5314 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.368, allocations: 161.3 kB / 0.5316 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005169/0.3685, allocations: 447.8 kB / 0.532 GB, free: 5.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3685, allocations: 0 / 0.532 GB, free: 5.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.3685, allocations: 1.953 kB / 0.532 GB, free: 5.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.3685, allocations: 0 / 0.532 GB, free: 5.34 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001195/0.3697, allocations: 0.726 MB / 0.5327 GB, free: 4.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.3698, allocations: 9.5 kB / 0.5327 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.37, allocations: 71.83 kB / 0.5328 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.3702, allocations: 222.8 kB / 0.533 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.3702, allocations: 36.34 kB / 0.5331 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.083e-05/0.3703, allocations: 45.17 kB / 0.5331 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007581/0.371, allocations: 460.7 kB / 0.5335 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.3711, allocations: 4.188 kB / 0.5335 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.3711, allocations: 24.36 kB / 0.5336 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.3711, allocations: 11.75 kB / 0.5336 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006699/0.3718, allocations: 370.9 kB / 0.5339 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.3731, allocations: 0.9569 MB / 0.5349 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.3742, allocations: 492.7 kB / 0.5353 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003128/0.3745, allocations: 159.8 kB / 0.5355 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.089e-05/0.3746, allocations: 39.03 kB / 0.5355 GB, free: 3.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005316/0.3751, allocations: 275.9 kB / 0.5358 GB, free: 3.297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.984e-06/0.3751, allocations: 4 kB / 0.5358 GB, free: 3.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001054/0.3762, allocations: 0.5508 MB / 0.5363 GB, free: 3.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.3762, allocations: 91 kB / 0.5364 GB, free: 3.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.3765, allocations: 345.8 kB / 0.5368 GB, free: 2.824 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.3765, allocations: 36.45 kB / 0.5368 GB, free: 2.785 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.3767, allocations: 257.5 kB / 0.537 GB, free: 2.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.842e-05/0.3767, allocations: 145.9 kB / 0.5372 GB, free: 2.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.569e-05/0.3768, allocations: 59.7 kB / 0.5372 GB, free: 2.387 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.43e-05/0.3769, allocations: 353.7 kB / 0.5376 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.3771, allocations: 146.1 kB / 0.5377 GB, free: 1.984 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002507/0.3774, allocations: 181.7 kB / 0.5379 GB, free: 1.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002324/0.3797, allocations: 0.6699 MB / 0.5385 GB, free: 1.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3797, allocations: 0 / 0.5385 GB, free: 1.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006608/0.3804, allocations: 423 kB / 0.5389 GB, free: 1.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3804, allocations: 5.188 kB / 0.5389 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3804, allocations: 5.188 kB / 0.5389 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-05/0.3804, allocations: 2.312 kB / 0.5389 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.3807, allocations: 73.67 kB / 0.539 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.3807, allocations: 2.75 kB / 0.539 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.3809, allocations: 27 kB / 0.539 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.3809, allocations: 16.3 kB / 0.5391 GB, free: 1.34 MB / 382.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 (43): * Single equations (assignments): 43 * 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.0002375/0.3811, allocations: 182.2 kB / 0.5392 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/0.3812, allocations: 41.69 kB / 0.5393 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008068/0.382, allocations: 470.1 kB / 0.5397 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.382, allocations: 3.906 kB / 0.5397 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.382, allocations: 1.062 kB / 0.5397 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.382, allocations: 12.98 kB / 0.5397 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004423/0.3824, allocations: 380.9 kB / 0.5401 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3824, allocations: 1.438 kB / 0.5401 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.3827, allocations: 74.91 kB / 0.5402 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3827, allocations: 1.375 kB / 0.5402 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.3827, allocations: 10.7 kB / 0.5402 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.3827, allocations: 2.688 kB / 0.5402 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3827, allocations: 3.938 kB / 0.5402 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006959/0.3834, allocations: 469.6 kB / 0.5406 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.3835, allocations: 39 kB / 0.5407 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.622e-05/0.3835, allocations: 15.75 kB / 0.5407 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.3837, allocations: 17.97 kB / 0.5407 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.3838, allocations: 25.17 kB / 0.5407 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.3838, allocations: 13.03 kB / 0.5407 GB, free: 308 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002397/0.384, allocations: 254.3 kB / 0.541 GB, free: 144 kB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.384, allocations: 0 / 0.541 GB, free: 144 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.3844, allocations: 93.8 kB / 0.5411 GB, free: 108 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (41): * Single equations (assignments): 39 * 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.0001432/0.3845, allocations: 108.2 kB / 0.5412 GB, free: 4 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007234/0.3852, allocations: 363.9 kB / 0.5415 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3852, allocations: 0 / 0.5415 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.3856, allocations: 184.4 kB / 0.5417 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.3859, allocations: 27.39 kB / 0.5417 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.3873, allocations: 0.8371 MB / 0.5425 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.3876, allocations: 243.9 kB / 0.5428 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.3878, allocations: 28.69 kB / 0.5428 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.919e-05/0.3878, allocations: 32.2 kB / 0.5428 GB, free: 15.07 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3878, allocations: 0 / 0.5428 GB, free: 15.07 MB / 398.1 MB Notification: Performance of Templates: time 0.007109/0.3949, allocations: 2.675 MB / 0.5455 GB, free: 13.71 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.makefile [Timeout 660] (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 & ./SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.79143905302044] Failed to read output from testmodel.py, exit status != 0: 0.404453401977662 0.417951279 0.046532189 Calling exit ...