Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Hair_Lynx_Interaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Hair_Lynx_Interaction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007347/0.007347, allocations: 98.86 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 202.1 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2815/0.2815, allocations: 28.81 MB / 319.4 MB, free: 5.641 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 66.44 kB / 443.8 MB, free: 36.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08609/0.08798, allocations: 56.43 MB / 0.4885 GB, free: 8.879 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.002683/0.0907, allocations: 2.326 MB / 0.4908 GB, free: 7.039 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008919/0.09161, allocations: 0.6334 MB / 0.4914 GB, free: 6.527 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.09176, allocations: 8.062 kB / 0.4914 GB, free: 6.523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.09192, allocations: 42.27 kB / 0.4914 GB, free: 6.484 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.827e-05/0.09202, allocations: 34.5 kB / 0.4915 GB, free: 6.457 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003278/0.09236, allocations: 124.4 kB / 0.4916 GB, free: 6.355 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002342/0.09261, allocations: 274.8 kB / 0.4918 GB, free: 6.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.09284, allocations: 188.2 kB / 0.492 GB, free: 6.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.328e-05/0.09293, allocations: 103.1 kB / 0.4921 GB, free: 6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.262e-05/0.09303, allocations: 127.7 kB / 0.4922 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.188e-05/0.09308, allocations: 27.53 kB / 0.4923 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.09318, allocations: 55 kB / 0.4923 GB, free: 5.879 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.53e-05/0.09327, allocations: 75.83 kB / 0.4924 GB, free: 5.824 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.19e-05/0.09336, allocations: 150.6 kB / 0.4925 GB, free: 5.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.09366, allocations: 344.4 kB / 0.4929 GB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.09367, allocations: 0 / 0.4929 GB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09368, allocations: 0 / 0.4929 GB, free: 5.441 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.09369, allocations: 0 / 0.4929 GB, free: 5.441 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0007845/0.09448, allocations: 0.6631 MB / 0.4935 GB, free: 4.832 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.09452, allocations: 10.28 kB / 0.4935 GB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.621e-05/0.09459, allocations: 69.31 kB / 0.4936 GB, free: 4.766 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.058e-05/0.09466, allocations: 49.12 kB / 0.4936 GB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.09494, allocations: 295.3 kB / 0.4939 GB, free: 4.449 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.09497, allocations: 26.25 kB / 0.4939 GB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.09502, allocations: 30.31 kB / 0.494 GB, free: 4.426 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004941/0.09552, allocations: 356.3 kB / 0.4943 GB, free: 4.195 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.09555, allocations: 0 / 0.4943 GB, free: 4.195 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.09557, allocations: 11.75 kB / 0.4943 GB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.09559, allocations: 7.75 kB / 0.4943 GB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.09602, allocations: 236.8 kB / 0.4946 GB, free: 4.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009956/0.09702, allocations: 1.172 MB / 0.4957 GB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.09739, allocations: 218.4 kB / 0.4959 GB, free: 2.582 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.09756, allocations: 100.8 kB / 0.496 GB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.09761, allocations: 12 kB / 0.496 GB, free: 2.469 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.09789, allocations: 163.5 kB / 0.4962 GB, free: 2.297 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.0979, allocations: 0 / 0.4962 GB, free: 2.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005785/0.09848, allocations: 319.4 kB / 0.4965 GB, free: 1.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.056e-05/0.09852, allocations: 55.41 kB / 0.4965 GB, free: 1.914 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.09869, allocations: 266.7 kB / 0.4968 GB, free: 1.645 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.09872, allocations: 29.7 kB / 0.4968 GB, free: 1.609 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.712e-05/0.0988, allocations: 220.4 kB / 0.497 GB, free: 1.391 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.09884, allocations: 63.47 kB / 0.4971 GB, free: 1.328 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/0.09891, allocations: 41.7 kB / 0.4971 GB, free: 1.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.813e-05/0.09896, allocations: 342.8 kB / 0.4975 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.09915, allocations: 96.12 kB / 0.4975 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.09933, allocations: 141.8 kB / 0.4977 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/0.09969, allocations: 257.5 kB / 0.4979 GB, free: 424 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.0997, allocations: 7.938 kB / 0.4979 GB, free: 416 kB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004489/0.1002, allocations: 315 kB / 0.4982 GB, free: 88 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.1002, allocations: 37.7 kB / 0.4983 GB, free: 44 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1002, allocations: 0 / 0.4983 GB, free: 44 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1002, allocations: 4 kB / 0.4983 GB, free: 40 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.1004, allocations: 35.97 kB / 0.4983 GB, free: 4 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.725e-05/0.1004, allocations: 8.047 kB / 0.4983 GB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.1006, allocations: 31.94 kB / 0.4983 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.1006, allocations: 8 kB / 0.4984 GB, free: 15.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (Hunting.count,$PRE.Hunting.count,Hunting.T_start,$PRE.Hunting.T_start,$whenCondition1,Lynx.Integrator1.local_reset,Hare.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0001571/0.1008, allocations: 153.8 kB / 0.4985 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.554e-05/0.1008, allocations: 27.81 kB / 0.4985 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005409/0.1014, allocations: 261.6 kB / 0.4988 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1014, allocations: 0 / 0.4988 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1014, allocations: 7.984 kB / 0.4988 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1014, allocations: 3.938 kB / 0.4988 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008811/0.1023, allocations: 0.6584 MB / 0.4994 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1023, allocations: 3.938 kB / 0.4994 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.1025, allocations: 31.97 kB / 0.4995 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1025, allocations: 0 / 0.4995 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.1025, allocations: 11.94 kB / 0.4995 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1025, allocations: 0 / 0.4995 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1025, allocations: 4 kB / 0.4995 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007564/0.1033, allocations: 463.8 kB / 0.4999 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.404e-05/0.1034, allocations: 104.9 kB / 0.5 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.1034, allocations: 7.938 kB / 0.5 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.1036, allocations: 11.98 kB / 0.5 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.318e-05/0.1037, allocations: 20.05 kB / 0.5001 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.1037, allocations: 11.98 kB / 0.5001 GB, free: 14.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001804/0.1039, allocations: 190 kB / 0.5003 GB, free: 13.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1039, allocations: 0 / 0.5003 GB, free: 13.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003159/0.1042, allocations: 63.78 kB / 0.5003 GB, free: 13.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Hare.Integrator1.y,Lynx.Integrator1.y) * Number of discrete variables: 3 ($whenCondition1,Hunting.T_start,Hunting.count) * Number of discrete states: 1 (Hunting.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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.001085/0.1053, allocations: 0.9972 MB / 0.5013 GB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005578/0.1059, allocations: 275 kB / 0.5015 GB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1059, allocations: 0 / 0.5015 GB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000228/0.1061, allocations: 114.1 kB / 0.5017 GB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.1065, allocations: 40.94 kB / 0.5017 GB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/0.1102, allocations: 2.908 MB / 0.5045 GB, free: 9.363 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.1107, allocations: 0.7904 MB / 0.5053 GB, free: 8.547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.378e-05/0.1108, allocations: 21.53 kB / 0.5053 GB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.1109, allocations: 103.4 kB / 0.5054 GB, free: 8.422 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1109, allocations: 0 / 0.5054 GB, free: 8.422 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.113/1.224, allocations: 4.91 MB / 0.5102 GB, free: 3.609 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/14.03, allocations: 0 / 0.5102 GB, free: 3.609 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe ; mkfifo SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe >> ../files/SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IntroductoryExamples_Hair_Lynx_Interaction_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-10 SystemDynamics_SystemDynamics_IntroductoryExamples_Hair_Lynx_Interaction.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe 2>&1)