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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 180.2 kB / 7.65 MB, free: 1.418 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.41/1.41, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.000977/0.000977, allocations: 101.1 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1925/0.1925, allocations: 28.84 MB / 360.1 MB, free: 2.219 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.877e-05/1.88e-05, allocations: 4 kB / 423.9 MB, free: 32.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 57.49 MB / 481.4 MB, free: 6.754 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.378/0.4915, allocations: 78.68 MB / 0.5469 GB, free: 10.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.4917, allocations: 69.19 kB / 0.547 GB, free: 10.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01115/0.5029, allocations: 4.872 MB / 0.5517 GB, free: 9.973 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5029, allocations: 0 / 0.5517 GB, free: 9.973 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.503, allocations: 7.688 kB / 0.5517 GB, free: 9.973 MB / 362.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.0008115/0.5038, allocations: 0.6759 MB / 0.5524 GB, free: 9.465 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.5038, allocations: 11.64 kB / 0.5524 GB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.129e-05/0.5039, allocations: 66.11 kB / 0.5525 GB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.5042, allocations: 259.8 kB / 0.5527 GB, free: 9.176 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.5042, allocations: 15.5 kB / 0.5527 GB, free: 9.176 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.5042, allocations: 23.09 kB / 0.5528 GB, free: 9.176 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005068/0.5048, allocations: 350.9 kB / 0.5531 GB, free: 9.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006505/0.5054, allocations: 403.6 kB / 0.5535 GB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.5054, allocations: 0 / 0.5535 GB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.5055, allocations: 4.422 kB / 0.5535 GB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.5055, allocations: 13.83 kB / 0.5535 GB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.507, allocations: 1.113 MB / 0.5546 GB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.508, allocations: 0.5344 MB / 0.5551 GB, free: 8.418 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.5082, allocations: 167.1 kB / 0.5553 GB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.795e-05/0.5083, allocations: 42.39 kB / 0.5553 GB, free: 8.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.5086, allocations: 258.2 kB / 0.5555 GB, free: 8.262 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.543e-06/0.5086, allocations: 0 / 0.5555 GB, free: 8.262 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.0005689/0.5092, allocations: 415.1 kB / 0.5559 GB, free: 8.141 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.5092, allocations: 92.88 kB / 0.556 GB, free: 8.035 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.5094, allocations: 278.2 kB / 0.5563 GB, free: 7.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.5095, allocations: 29.67 kB / 0.5563 GB, free: 7.879 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.5096, allocations: 256.4 kB / 0.5566 GB, free: 7.715 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.163e-05/0.5097, allocations: 124.3 kB / 0.5567 GB, free: 7.621 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.531e-05/0.5097, allocations: 0 / 0.5567 GB, free: 7.621 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.325e-05/0.5098, allocations: 351.5 kB / 0.557 GB, free: 7.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.5099, allocations: 132.3 kB / 0.5572 GB, free: 7.281 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.5101, allocations: 180.6 kB / 0.5573 GB, free: 7.227 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/0.5103, allocations: 154.8 kB / 0.5575 GB, free: 7.195 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5103, allocations: 0 / 0.5575 GB, free: 7.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004516/0.5108, allocations: 402.8 kB / 0.5579 GB, free: 7.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.5108, allocations: 9.25 kB / 0.5579 GB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.5108, allocations: 3.938 kB / 0.5579 GB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.5108, allocations: 0 / 0.5579 GB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002989/0.5111, allocations: 85.78 kB / 0.5579 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.5112, allocations: 0 / 0.5579 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.5113, allocations: 23.25 kB / 0.558 GB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.5113, allocations: 22.89 kB / 0.558 GB, free: 7.043 MB / 362.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.0001128/0.5115, allocations: 111 kB / 0.5581 GB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000438/0.5119, allocations: 408 kB / 0.5585 GB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.512, allocations: 42.67 kB / 0.5585 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006524/0.5126, allocations: 493.3 kB / 0.559 GB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.5126, allocations: 3.844 kB / 0.559 GB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5126, allocations: 3.844 kB / 0.559 GB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.5127, allocations: 0 / 0.559 GB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003412/0.513, allocations: 440.9 kB / 0.5594 GB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.513, allocations: 0 / 0.5594 GB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/0.5133, allocations: 76.84 kB / 0.5595 GB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.5133, allocations: 3.844 kB / 0.5595 GB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.5133, allocations: 7.828 kB / 0.5595 GB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.5133, allocations: 0 / 0.5595 GB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5133, allocations: 3.953 kB / 0.5595 GB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004729/0.5138, allocations: 469.9 kB / 0.56 GB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.674e-05/0.5139, allocations: 120.2 kB / 0.5601 GB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.609e-05/0.5139, allocations: 3.5 kB / 0.5601 GB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.5141, allocations: 15.66 kB / 0.5601 GB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.263e-05/0.5142, allocations: 23.44 kB / 0.5601 GB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.5142, allocations: 19.36 kB / 0.5601 GB, free: 6.047 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00014/0.5143, allocations: 227.6 kB / 0.5604 GB, free: 5.949 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5143, allocations: 0 / 0.5604 GB, free: 5.949 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002745/0.5146, allocations: 80.97 kB / 0.5604 GB, free: 5.926 MB / 362.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.0008008/0.5154, allocations: 1.236 MB / 0.5616 GB, free: 5.148 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003358/0.5158, allocations: 317 kB / 0.5619 GB, free: 5.121 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5158, allocations: 0 / 0.5619 GB, free: 5.121 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.516, allocations: 180.8 kB / 0.5621 GB, free: 5.098 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/0.5161, allocations: 16.38 kB / 0.5621 GB, free: 5.086 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009489/0.5171, allocations: 0.6841 MB / 0.5628 GB, free: 4.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.5174, allocations: 0.8675 MB / 0.5636 GB, free: 3.969 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.5175, allocations: 25.55 kB / 0.5637 GB, free: 3.957 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.5177, allocations: 166.2 kB / 0.5638 GB, free: 3.938 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5177, allocations: 0 / 0.5638 GB, free: 3.938 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.5405, allocations: 5.438 MB / 0.5691 GB, free: 1.41 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/0.5407, allocations: 141.3 kB / 0.5693 GB, free: 1.215 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.936/2.477, allocations: 2.859 kB / 0.5693 GB, free: 1.215 MB / 362.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)