Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 180.9 kB / 15.43 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.66/1.66, allocations: 225.7 MB / 241.9 MB, free: 380 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000847/0.0008469, allocations: 86.41 kB / 293.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1611/0.1611, allocations: 28.84 MB / 373 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002896/0.0002896, allocations: 6.188 kB / 441.2 MB, free: 69.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0776/0.07791, allocations: 57.48 MB / 498.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.001796/0.07974, allocations: 1.934 MB / 0.4889 GB, free: 9.984 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008954/0.08067, allocations: 500 kB / 0.4894 GB, free: 9.477 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.0809, allocations: 4 kB / 0.4894 GB, free: 9.473 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.08103, allocations: 27.72 kB / 0.4894 GB, free: 9.445 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.0812, allocations: 23.8 kB / 0.4894 GB, free: 9.422 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004067/0.08162, allocations: 123.9 kB / 0.4895 GB, free: 9.301 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002544/0.08189, allocations: 300.6 kB / 0.4898 GB, free: 9.004 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002596/0.08216, allocations: 190.7 kB / 0.49 GB, free: 8.812 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.531e-05/0.08226, allocations: 99.44 kB / 0.4901 GB, free: 8.715 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.08242, allocations: 139.1 kB / 0.4902 GB, free: 8.578 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.86e-05/0.08247, allocations: 12 kB / 0.4902 GB, free: 8.566 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.084e-05/0.08257, allocations: 39.92 kB / 0.4903 GB, free: 8.527 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.093e-05/0.08267, allocations: 95.59 kB / 0.4904 GB, free: 8.434 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.08279, allocations: 200.3 kB / 0.4906 GB, free: 8.23 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.08307, allocations: 374.3 kB / 0.4909 GB, free: 7.863 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.08309, allocations: 0 / 0.4909 GB, free: 7.863 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.0831, allocations: 0 / 0.4909 GB, free: 7.863 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.08311, allocations: 0 / 0.4909 GB, free: 7.863 MB / 330.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.0009641/0.08408, allocations: 0.6962 MB / 0.4916 GB, free: 7.117 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.08412, allocations: 11.97 kB / 0.4916 GB, free: 7.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.437e-05/0.08421, allocations: 60.19 kB / 0.4917 GB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.08437, allocations: 282 kB / 0.4919 GB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.08442, allocations: 45.38 kB / 0.492 GB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.673e-05/0.08447, allocations: 40.38 kB / 0.492 GB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000665/0.08514, allocations: 458.7 kB / 0.4925 GB, free: 6.191 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.08516, allocations: 4.125 kB / 0.4925 GB, free: 6.188 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.139e-05/0.0852, allocations: 23.94 kB / 0.4925 GB, free: 6.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.08521, allocations: 15.94 kB / 0.4925 GB, free: 6.148 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006301/0.08585, allocations: 371.8 kB / 0.4929 GB, free: 5.781 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.08718, allocations: 1.152 MB / 0.494 GB, free: 4.574 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.08823, allocations: 0.5289 MB / 0.4945 GB, free: 4.027 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002607/0.0885, allocations: 177.6 kB / 0.4947 GB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.106e-05/0.08857, allocations: 36.97 kB / 0.4947 GB, free: 3.812 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004061/0.08899, allocations: 264.7 kB / 0.495 GB, free: 3.535 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 2.064e-06/0.089, allocations: 0 / 0.495 GB, free: 3.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=41): time 0.0009021/0.08991, allocations: 0.5605 MB / 0.4955 GB, free: 2.969 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.08996, allocations: 85.11 kB / 0.4956 GB, free: 2.867 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.09021, allocations: 353.6 kB / 0.4959 GB, free: 2.516 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.09024, allocations: 29.7 kB / 0.4959 GB, free: 2.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.09035, allocations: 252.3 kB / 0.4962 GB, free: 2.227 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.347e-05/0.09043, allocations: 134 kB / 0.4963 GB, free: 2.094 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/0.09045, allocations: 12 kB / 0.4963 GB, free: 2.082 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.67e-05/0.09051, allocations: 346.8 kB / 0.4967 GB, free: 1.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.09076, allocations: 143.9 kB / 0.4968 GB, free: 1.594 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.091, allocations: 193.8 kB / 0.497 GB, free: 1.395 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002397/0.09341, allocations: 0.6685 MB / 0.4976 GB, free: 0.7188 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.09343, allocations: 3.938 kB / 0.4976 GB, free: 0.7148 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005987/0.09404, allocations: 432.9 kB / 0.4981 GB, free: 292 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.09406, allocations: 4 kB / 0.4981 GB, free: 288 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.09408, allocations: 0 / 0.4981 GB, free: 288 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.0941, allocations: 7.984 kB / 0.4981 GB, free: 280 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.0944, allocations: 71.91 kB / 0.4981 GB, free: 208 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.09442, allocations: 3.938 kB / 0.4981 GB, free: 204 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.09458, allocations: 31.67 kB / 0.4982 GB, free: 172 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.09461, allocations: 12 kB / 0.4982 GB, free: 160 kB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = true ) "Discrete state variable" type: Real Eggs.level:DISCRETE(start = Eggs.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.Rawfiber.level,$PRE.Eggs.level,Eggs.level,Rawfiber.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.0002422/0.09486, allocations: 185.8 kB / 0.4984 GB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-05/0.09492, allocations: 35.53 kB / 0.4984 GB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008208/0.09575, allocations: 469 kB / 0.4988 GB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.09577, allocations: 4 kB / 0.4988 GB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.09579, allocations: 7.875 kB / 0.4988 GB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.0958, allocations: 7.984 kB / 0.4989 GB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005041/0.09631, allocations: 0.4933 MB / 0.4993 GB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.09632, allocations: 0 / 0.4993 GB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002961/0.09662, allocations: 63.91 kB / 0.4994 GB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.09664, allocations: 4 kB / 0.4994 GB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/0.09667, allocations: 15.92 kB / 0.4994 GB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.002e-06/0.09668, allocations: 7.984 kB / 0.4994 GB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.0967, allocations: 8.219 kB / 0.4994 GB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007354/0.09744, allocations: 457.8 kB / 0.4999 GB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.19e-05/0.09752, allocations: 120.5 kB / 0.5 GB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.172e-05/0.09758, allocations: 20 kB / 0.5 GB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.09775, allocations: 11.98 kB / 0.5 GB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.09783, allocations: 27.91 kB / 0.5 GB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.09786, allocations: 11.98 kB / 0.5001 GB, free: 14.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002279/0.0981, allocations: 251.2 kB / 0.5003 GB, free: 13.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09811, allocations: 0 / 0.5003 GB, free: 13.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003193/0.09843, allocations: 99.52 kB / 0.5004 GB, free: 13.78 MB / 346.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) * 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.0001673/0.0986, allocations: 123.2 kB / 0.5005 GB, free: 13.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006676/0.09928, allocations: 370.9 kB / 0.5009 GB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.0993, allocations: 0 / 0.5009 GB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003252/0.09963, allocations: 199.8 kB / 0.501 GB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.0999, allocations: 29.61 kB / 0.5011 GB, free: 13.06 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.1014, allocations: 1.045 MB / 0.5021 GB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.1018, allocations: 0.8466 MB / 0.5029 GB, free: 11.11 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.1019, allocations: 30.23 kB / 0.503 GB, free: 11.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.836e-05/0.102, allocations: 35.42 kB / 0.503 GB, free: 11.05 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.102, allocations: 0 / 0.503 GB, free: 11.05 MB / 346.7 MB Notification: Performance of Templates: time 0.005822/0.1078, allocations: 2.158 MB / 0.5051 GB, free: 8.891 MB / 346.7 MB make -j1 -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.makefile (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 -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1)