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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004059/0.004059, allocations: 184.1 kB / 7.458 MB, free: 2.246 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 221.4 MB / 229.3 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009617/0.0009616, allocations: 99.75 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1906/0.1906, allocations: 28.84 MB / 359.7 MB, free: 1.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2312/0.4219, allocations: 63.59 MB / 423.3 MB, free: 44.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.5341, allocations: 57.48 MB / 480.8 MB, free: 2.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.336/0.8702, allocations: 78.6 MB / 0.5463 GB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.8705, allocations: 72.84 kB / 0.5463 GB, free: 10.86 MB / 378.7 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.01456/0.8851, allocations: 5.243 MB / 0.5515 GB, free: 5.578 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.8852, allocations: 8 kB / 0.5515 GB, free: 5.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.743e-05/0.8853, allocations: 63.25 kB / 0.5515 GB, free: 5.508 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.8855, allocations: 263.6 kB / 0.5518 GB, free: 5.211 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.648e-05/0.8856, allocations: 16 kB / 0.5518 GB, free: 5.195 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.322e-05/0.8856, allocations: 27.94 kB / 0.5518 GB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005873/0.8862, allocations: 365.8 kB / 0.5522 GB, free: 4.812 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006167/0.8869, allocations: 404.2 kB / 0.5526 GB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.8869, allocations: 0 / 0.5526 GB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.8869, allocations: 4 kB / 0.5526 GB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.8869, allocations: 11.91 kB / 0.5526 GB, free: 4.391 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.8889, allocations: 1.12 MB / 0.5537 GB, free: 3.223 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.8902, allocations: 0.5579 MB / 0.5542 GB, free: 2.645 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.8904, allocations: 173.6 kB / 0.5544 GB, free: 2.469 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.549e-05/0.8905, allocations: 36.75 kB / 0.5544 GB, free: 2.434 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003621/0.8909, allocations: 265.6 kB / 0.5547 GB, free: 2.156 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.356e-06/0.8909, allocations: 0 / 0.5547 GB, free: 2.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.0007146/0.8916, allocations: 420.8 kB / 0.5551 GB, free: 1.738 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.8917, allocations: 81.11 kB / 0.5551 GB, free: 1.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.892, allocations: 282.1 kB / 0.5554 GB, free: 1.359 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.8921, allocations: 33.69 kB / 0.5554 GB, free: 1.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.8922, allocations: 204.2 kB / 0.5556 GB, free: 1.113 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.8924, allocations: 130.1 kB / 0.5558 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.604e-05/0.8924, allocations: 3.938 kB / 0.5558 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.8925, allocations: 346.8 kB / 0.5561 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.8927, allocations: 143.9 kB / 0.5562 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.893, allocations: 190.3 kB / 0.5564 GB, free: 304 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/0.8933, allocations: 160.8 kB / 0.5566 GB, free: 144 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.8933, allocations: 4 kB / 0.5566 GB, free: 140 kB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007089/0.894, allocations: 426.9 kB / 0.557 GB, free: 15.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.894, allocations: 4 kB / 0.557 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.8941, allocations: 0 / 0.557 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.8941, allocations: 4 kB / 0.557 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003817/0.8945, allocations: 71.91 kB / 0.5571 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.8945, allocations: 4 kB / 0.5571 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.8947, allocations: 31.7 kB / 0.5571 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.867e-05/0.8947, allocations: 20 kB / 0.5571 GB, free: 15.58 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = false ) "Discrete state variable" type: Real Eggs.level:DISCRETE(start = Eggs.x0 fixed = false ) "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,Eggs.level,$PRE.Rawfiber.level,Rawfiber.level) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001662/0.8949, allocations: 108.9 kB / 0.5572 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.686e-05/0.895, allocations: 39.44 kB / 0.5573 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008571/0.8958, allocations: 0.5088 MB / 0.5577 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.8958, allocations: 4 kB / 0.5578 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.8959, allocations: 0 / 0.5578 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.8959, allocations: 0 / 0.5578 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005322/0.8964, allocations: 449.5 kB / 0.5582 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.8964, allocations: 3.938 kB / 0.5582 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003315/0.8968, allocations: 71.91 kB / 0.5583 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.8968, allocations: 4 kB / 0.5583 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.8968, allocations: 7.984 kB / 0.5583 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.8968, allocations: 4 kB / 0.5583 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.8968, allocations: 4 kB / 0.5583 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006231/0.8975, allocations: 471.4 kB / 0.5587 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001365/0.8988, allocations: 1.312 MB / 0.56 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.085e-05/0.8989, allocations: 116.5 kB / 0.5601 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.212e-05/0.899, allocations: 4 kB / 0.5601 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.8992, allocations: 11.98 kB / 0.5601 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.8993, allocations: 31.86 kB / 0.5602 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.8993, allocations: 16 kB / 0.5602 GB, free: 12.31 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002272/0.8996, allocations: 236.5 kB / 0.5604 GB, free: 12.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009291/0.9005, allocations: 83.53 kB / 0.5605 GB, free: 12 MB / 394.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000198/0.9007, allocations: 112.1 kB / 0.5606 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004628/0.9012, allocations: 320.3 kB / 0.5609 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.9012, allocations: 0 / 0.5609 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.9014, allocations: 183.3 kB / 0.5611 GB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.9017, allocations: 13.2 kB / 0.5611 GB, free: 11.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.9029, allocations: 0.6039 MB / 0.5617 GB, free: 10.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005386/0.9034, allocations: 0.9011 MB / 0.5626 GB, free: 9.809 MB / 394.7 MB Notification: Performance of SimCode: time 5.11e-07/0.9035, allocations: 0 / 0.5626 GB, free: 9.809 MB / 394.7 MB (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/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM_fmu --startTime=1949 --stopTime=1978 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM.fmu > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)