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.001355/0.001355, 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.001589/0.001589, allocations: 215.5 kB / 22.25 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.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.1764/0.1764, allocations: 29.23 MB / 341.7 MB, free: 5.598 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="me",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.002251/0.002251, allocations: 63.91 kB / 478.3 MB, free: 444 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3131, allocations: 60.8 MB / 0.5265 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002896/0.316, allocations: 2.18 MB / 0.5286 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009378/0.3169, allocations: 446.8 kB / 0.529 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.317, allocations: 4.375 kB / 0.529 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.3172, allocations: 49.61 kB / 0.5291 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.3173, allocations: 29.91 kB / 0.5291 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004569/0.3177, allocations: 151.7 kB / 0.5292 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003/0.318, allocations: 322.3 kB / 0.5295 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002431/0.3183, allocations: 149.6 kB / 0.5297 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.3184, allocations: 138.4 kB / 0.5298 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.3186, allocations: 152.1 kB / 0.53 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.3186, allocations: 34.84 kB / 0.53 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.3188, allocations: 70.28 kB / 0.5301 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.3189, allocations: 131.7 kB / 0.5302 GB, free: 5.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.319, allocations: 165.8 kB / 0.5304 GB, free: 5.344 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004318/0.3194, allocations: 449.7 kB / 0.5308 GB, free: 5.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3194, allocations: 0.6562 kB / 0.5308 GB, free: 5.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.3194, allocations: 0 / 0.5308 GB, free: 5.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3195, allocations: 1.281 kB / 0.5308 GB, free: 5.113 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.001038/0.3205, allocations: 0.7209 MB / 0.5315 GB, free: 4.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.3205, allocations: 10.53 kB / 0.5315 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.871e-05/0.3206, allocations: 86.44 kB / 0.5316 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.3208, allocations: 68.02 kB / 0.5316 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.3209, allocations: 226.4 kB / 0.5319 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.321, allocations: 36.81 kB / 0.5319 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.287e-05/0.321, allocations: 46.08 kB / 0.5319 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006848/0.3217, allocations: 468.7 kB / 0.5324 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3217, allocations: 7.938 kB / 0.5324 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.805e-05/0.3217, allocations: 20.19 kB / 0.5324 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.3218, allocations: 11.22 kB / 0.5324 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006333/0.3224, allocations: 373.4 kB / 0.5328 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.3237, allocations: 1.04 MB / 0.5338 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.3248, allocations: 491.7 kB / 0.5343 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/0.325, allocations: 159.6 kB / 0.5344 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.878e-05/0.3251, allocations: 36.5 kB / 0.5345 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004504/0.3255, allocations: 270 kB / 0.5347 GB, free: 2.949 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.573e-06/0.3255, allocations: 4 kB / 0.5347 GB, free: 2.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009585/0.3265, allocations: 0.5643 MB / 0.5353 GB, free: 2.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.3265, allocations: 87.36 kB / 0.5353 GB, free: 2.656 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/0.3268, allocations: 347.2 kB / 0.5357 GB, free: 2.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.3268, allocations: 38.34 kB / 0.5357 GB, free: 2.445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.327, allocations: 255.7 kB / 0.536 GB, free: 2.242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.62e-05/0.327, allocations: 141.8 kB / 0.5361 GB, free: 2.129 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.353e-05/0.3271, allocations: 61.11 kB / 0.5362 GB, free: 2.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.084e-05/0.3272, allocations: 350.5 kB / 0.5365 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.3274, allocations: 153.4 kB / 0.5366 GB, free: 1.707 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.3277, allocations: 190.2 kB / 0.5368 GB, free: 1.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002321/0.33, allocations: 0.6614 MB / 0.5375 GB, free: 1.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.33, allocations: 0 / 0.5375 GB, free: 1.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006159/0.3306, allocations: 431 kB / 0.5379 GB, free: 1.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.3306, allocations: 5.5 kB / 0.5379 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3306, allocations: 4.031 kB / 0.5379 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.3306, allocations: 7.125 kB / 0.5379 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.3309, allocations: 73.05 kB / 0.538 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.3309, allocations: 2.188 kB / 0.538 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.3311, allocations: 28.62 kB / 0.538 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.3311, allocations: 12.75 kB / 0.538 GB, free: 1.055 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.0002077/0.3313, allocations: 185.8 kB / 0.5382 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.622e-05/0.3314, allocations: 42.52 kB / 0.5382 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007498/0.3321, allocations: 462 kB / 0.5387 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3321, allocations: 7.5 kB / 0.5387 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3321, allocations: 9.047 kB / 0.5387 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3321, allocations: 1.156 kB / 0.5387 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004074/0.3325, allocations: 452.1 kB / 0.5391 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3325, allocations: 0 / 0.5391 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.3328, allocations: 67.41 kB / 0.5392 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.3328, allocations: 5.438 kB / 0.5392 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.3328, allocations: 15.67 kB / 0.5392 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.3328, allocations: 5 kB / 0.5392 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3328, allocations: 1.156 kB / 0.5392 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000631/0.3335, allocations: 468.7 kB / 0.5396 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.577e-05/0.3335, allocations: 39.38 kB / 0.5397 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.045e-05/0.3336, allocations: 11.48 kB / 0.5397 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.3337, allocations: 22.23 kB / 0.5397 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.3338, allocations: 25.55 kB / 0.5397 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.3338, allocations: 19.98 kB / 0.5398 GB, free: 15.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002382/0.3341, allocations: 249.2 kB / 0.54 GB, free: 15.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3341, allocations: 0 / 0.54 GB, free: 15.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.3344, allocations: 93.58 kB / 0.5401 GB, free: 15.76 MB / 398.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.001419/0.3358, allocations: 1.228 MB / 0.5413 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006584/0.3365, allocations: 355.4 kB / 0.5416 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3365, allocations: 0 / 0.5416 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003178/0.3368, allocations: 188.8 kB / 0.5418 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.337, allocations: 22.94 kB / 0.5418 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004824/0.3419, allocations: 3.787 MB / 0.5455 GB, free: 12.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.3421, allocations: 251.4 kB / 0.5458 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.3422, allocations: 28.53 kB / 0.5458 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002138/0.3424, allocations: 168.9 kB / 0.5459 GB, free: 11.89 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3424, allocations: 0 / 0.5459 GB, free: 11.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03458/0.377, allocations: 6.983 MB / 0.5528 GB, free: 5.926 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.12, allocations: 13.7 kB / 0.5528 GB, free: 5.918 MB / 398.1 MB " [Timeout remaining time 649] (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 sys.exit(0), Time elapsed: 13.713607049081475] Failed to read output from testmodel.py, exit status != 0: 11.233630634844303 11.248599464 10.926211139 Calling exit ...