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.001344/0.001344, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001522/0.001522, allocations: 218 kB / 22.25 MB, free: 5.125 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.45/1.45, allocations: 230.6 MB / 256 MB, free: 7.988 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.1904/0.1904, allocations: 29.23 MB / 341.7 MB, free: 5.789 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.002038/0.002038, allocations: 71.88 kB / 478.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3209, allocations: 60.79 MB / 0.5265 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003357/0.3243, allocations: 2.39 MB / 0.5289 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.3253, allocations: 461 kB / 0.5293 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.3254, allocations: 4.438 kB / 0.5293 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.3256, allocations: 49.58 kB / 0.5294 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.3257, allocations: 30.19 kB / 0.5294 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.3261, allocations: 146.3 kB / 0.5295 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.3264, allocations: 322.8 kB / 0.5298 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002896/0.3267, allocations: 162.6 kB / 0.53 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.3269, allocations: 145.2 kB / 0.5301 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.3271, allocations: 173.4 kB / 0.5303 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.3272, allocations: 35.16 kB / 0.5303 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.3273, allocations: 73.56 kB / 0.5304 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.3275, allocations: 124.4 kB / 0.5305 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.3276, allocations: 217.1 kB / 0.5307 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000394/0.328, allocations: 439.3 kB / 0.5311 GB, free: 4.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.328, allocations: 7.938 kB / 0.5311 GB, free: 4.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.328, allocations: 0 / 0.5311 GB, free: 4.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.328, allocations: 0 / 0.5311 GB, free: 4.938 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.001094/0.3291, allocations: 0.7193 MB / 0.5319 GB, free: 4.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3291, allocations: 10 kB / 0.5319 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.867e-05/0.3292, allocations: 86.17 kB / 0.5319 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.3294, allocations: 72.02 kB / 0.532 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.3295, allocations: 226.1 kB / 0.5322 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.3295, allocations: 32.91 kB / 0.5323 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.715e-05/0.3296, allocations: 44.66 kB / 0.5323 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008026/0.3304, allocations: 464.6 kB / 0.5327 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.3304, allocations: 7.938 kB / 0.5328 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.796e-05/0.3304, allocations: 20.48 kB / 0.5328 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.3304, allocations: 11.62 kB / 0.5328 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007715/0.3312, allocations: 374.3 kB / 0.5331 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.3325, allocations: 1.118 MB / 0.5342 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.3337, allocations: 0.4888 MB / 0.5347 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.3339, allocations: 163.6 kB / 0.5349 GB, free: 2.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.597e-05/0.334, allocations: 34.95 kB / 0.5349 GB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005355/0.3345, allocations: 274.4 kB / 0.5352 GB, free: 2.758 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.734e-06/0.3345, allocations: 0 / 0.5352 GB, free: 2.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009603/0.3355, allocations: 0.5616 MB / 0.5357 GB, free: 2.566 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.3355, allocations: 91.61 kB / 0.5358 GB, free: 2.465 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.3359, allocations: 347.5 kB / 0.5361 GB, free: 2.289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.3359, allocations: 37.02 kB / 0.5362 GB, free: 2.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.336, allocations: 255.7 kB / 0.5364 GB, free: 2.047 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.3362, allocations: 144.4 kB / 0.5365 GB, free: 1.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.844e-05/0.3362, allocations: 55.7 kB / 0.5366 GB, free: 1.891 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.935e-05/0.3363, allocations: 352.4 kB / 0.5369 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.3365, allocations: 150.5 kB / 0.5371 GB, free: 1.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.3368, allocations: 192.8 kB / 0.5373 GB, free: 1.379 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002491/0.3393, allocations: 0.6609 MB / 0.5379 GB, free: 1.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3393, allocations: 0.6875 kB / 0.5379 GB, free: 1.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007685/0.3401, allocations: 430.6 kB / 0.5383 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3401, allocations: 5.438 kB / 0.5383 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3401, allocations: 5.062 kB / 0.5383 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3401, allocations: 6.125 kB / 0.5383 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.3404, allocations: 69.66 kB / 0.5384 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.3404, allocations: 2.75 kB / 0.5384 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.3405, allocations: 32 kB / 0.5384 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.3405, allocations: 7.875 kB / 0.5384 GB, free: 0.832 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.000186/0.3407, allocations: 193.6 kB / 0.5386 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.3408, allocations: 38.98 kB / 0.5387 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008043/0.3416, allocations: 464.1 kB / 0.5391 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.3416, allocations: 12.17 kB / 0.5391 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3416, allocations: 0.9375 kB / 0.5391 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3416, allocations: 1.094 kB / 0.5391 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003798/0.342, allocations: 495.9 kB / 0.5396 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.342, allocations: 0 / 0.5396 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.3422, allocations: 63.31 kB / 0.5397 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3422, allocations: 2.312 kB / 0.5397 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.099e-05/0.3423, allocations: 6.312 kB / 0.5397 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.898e-06/0.3423, allocations: 6.031 kB / 0.5397 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.3423, allocations: 5.062 kB / 0.5397 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008056/0.3431, allocations: 470.6 kB / 0.5401 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.3432, allocations: 39 kB / 0.5402 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/0.3432, allocations: 15.64 kB / 0.5402 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.3434, allocations: 18.22 kB / 0.5402 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.515e-05/0.3434, allocations: 28.84 kB / 0.5402 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.3435, allocations: 8.5 kB / 0.5402 GB, free: 15.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002637/0.3437, allocations: 260.6 kB / 0.5405 GB, free: 15.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3437, allocations: 0 / 0.5405 GB, free: 15.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004491/0.3442, allocations: 93.67 kB / 0.5406 GB, free: 15.5 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.001559/0.3457, allocations: 1.222 MB / 0.5418 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006634/0.3464, allocations: 363 kB / 0.5421 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3464, allocations: 3.938 kB / 0.5421 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.3467, allocations: 180.2 kB / 0.5423 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.347, allocations: 27.38 kB / 0.5423 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005172/0.3521, allocations: 3.778 MB / 0.546 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005547/0.3527, allocations: 0.8542 MB / 0.5468 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.3528, allocations: 30.59 kB / 0.5469 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.353, allocations: 179.6 kB / 0.547 GB, free: 11 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.353, allocations: 0 / 0.547 GB, free: 11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0368/0.3898, allocations: 6.766 MB / 0.5536 GB, free: 5.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.76, allocations: 10.5 kB / 0.5536 GB, free: 5.27 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.460460559930652] Failed to read output from testmodel.py, exit status != 0: 11.870472787879407 11.896427871 11.563719609 Calling exit ...