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.007065/0.00707, allocations: 102 kB / 15.73 MB, free: 6.051 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.001684/0.001684, allocations: 195 kB / 16.68 MB, free: 5.969 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 4.125 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2974/0.2974, allocations: 28.81 MB / 319.3 MB, free: 5.508 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 64.25 kB / 443.8 MB, free: 37.12 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09234/0.09352, allocations: 56.42 MB / 0.4885 GB, free: 8.93 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.002776/0.09633, allocations: 2.328 MB / 0.4908 GB, free: 7.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009966/0.09735, allocations: 0.6297 MB / 0.4914 GB, free: 6.578 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.09751, allocations: 8.062 kB / 0.4914 GB, free: 6.574 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.09769, allocations: 47.64 kB / 0.4914 GB, free: 6.531 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.29e-05/0.09782, allocations: 33.12 kB / 0.4915 GB, free: 6.504 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003586/0.09818, allocations: 128.4 kB / 0.4916 GB, free: 6.398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002432/0.09844, allocations: 271.2 kB / 0.4918 GB, free: 6.234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.09869, allocations: 187.8 kB / 0.492 GB, free: 6.117 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.894e-05/0.09878, allocations: 102.9 kB / 0.4921 GB, free: 6.047 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.022e-05/0.09888, allocations: 127.7 kB / 0.4922 GB, free: 5.941 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.09893, allocations: 27 kB / 0.4923 GB, free: 5.941 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.09904, allocations: 56.25 kB / 0.4923 GB, free: 5.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.091e-05/0.09913, allocations: 75.11 kB / 0.4924 GB, free: 5.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.064e-05/0.09922, allocations: 155 kB / 0.4925 GB, free: 5.746 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.09951, allocations: 331.3 kB / 0.4929 GB, free: 5.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.09953, allocations: 0 / 0.4929 GB, free: 5.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.09954, allocations: 0 / 0.4929 GB, free: 5.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.09955, allocations: 5.438 kB / 0.4929 GB, free: 5.496 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.0007944/0.1003, allocations: 0.6614 MB / 0.4935 GB, free: 4.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.1004, allocations: 10.19 kB / 0.4935 GB, free: 4.891 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.677e-05/0.1005, allocations: 69.25 kB / 0.4936 GB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.937e-05/0.1005, allocations: 40.72 kB / 0.4936 GB, free: 4.805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1008, allocations: 295.7 kB / 0.4939 GB, free: 4.516 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.1009, allocations: 22 kB / 0.4939 GB, free: 4.504 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.1009, allocations: 38.62 kB / 0.494 GB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004869/0.1014, allocations: 346.9 kB / 0.4943 GB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1014, allocations: 1.656 kB / 0.4943 GB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.1015, allocations: 14.75 kB / 0.4943 GB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1015, allocations: 7.656 kB / 0.4943 GB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004186/0.1019, allocations: 241.1 kB / 0.4945 GB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.1029, allocations: 1.156 MB / 0.4957 GB, free: 2.902 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.1033, allocations: 218.3 kB / 0.4959 GB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.1034, allocations: 104.8 kB / 0.496 GB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.904e-05/0.1035, allocations: 19.98 kB / 0.496 GB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.1038, allocations: 155.5 kB / 0.4961 GB, free: 2.391 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 1.593e-06/0.1038, allocations: 0 / 0.4961 GB, free: 2.391 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005632/0.1043, allocations: 327.4 kB / 0.4965 GB, free: 2.066 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.1044, allocations: 55.41 kB / 0.4965 GB, free: 2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.1046, allocations: 266.7 kB / 0.4968 GB, free: 1.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.1046, allocations: 25.7 kB / 0.4968 GB, free: 1.699 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.179e-05/0.1047, allocations: 215.9 kB / 0.497 GB, free: 1.484 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.1047, allocations: 55.25 kB / 0.497 GB, free: 1.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.028e-05/0.1048, allocations: 49.61 kB / 0.4971 GB, free: 1.375 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/0.1048, allocations: 342.8 kB / 0.4974 GB, free: 1.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.105, allocations: 92.19 kB / 0.4975 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.1052, allocations: 133.8 kB / 0.4976 GB, free: 0.793 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.1055, allocations: 252.2 kB / 0.4979 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1055, allocations: 3.938 kB / 0.4979 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004228/0.106, allocations: 319.5 kB / 0.4982 GB, free: 204 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.106, allocations: 33.83 kB / 0.4982 GB, free: 164 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.106, allocations: 4 kB / 0.4982 GB, free: 160 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.106, allocations: 7.938 kB / 0.4982 GB, free: 152 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.1063, allocations: 39.97 kB / 0.4983 GB, free: 112 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1063, allocations: 4 kB / 0.4983 GB, free: 108 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.1064, allocations: 35.7 kB / 0.4983 GB, free: 72 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.1064, allocations: 8 kB / 0.4983 GB, free: 64 kB / 366.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.0001588/0.1066, allocations: 157.7 kB / 0.4985 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/0.1066, allocations: 23.72 kB / 0.4985 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004873/0.1071, allocations: 269.8 kB / 0.4987 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1072, allocations: 0 / 0.4987 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.1072, allocations: 0 / 0.4987 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1072, allocations: 7.922 kB / 0.4988 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007649/0.1079, allocations: 0.6544 MB / 0.4994 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.108, allocations: 0 / 0.4994 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.1081, allocations: 43.91 kB / 0.4994 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.1081, allocations: 0 / 0.4994 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.1082, allocations: 7.938 kB / 0.4994 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.1082, allocations: 0 / 0.4994 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1082, allocations: 0 / 0.4994 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006949/0.1089, allocations: 456.6 kB / 0.4999 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.395e-05/0.109, allocations: 104.8 kB / 0.5 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.109, allocations: 7.875 kB / 0.5 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.1092, allocations: 15.98 kB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.092e-05/0.1092, allocations: 19.92 kB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.1092, allocations: 7.984 kB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001659/0.1094, allocations: 186 kB / 0.5002 GB, free: 14.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1094, allocations: 0 / 0.5002 GB, free: 14.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003249/0.1098, allocations: 71.59 kB / 0.5003 GB, free: 13.95 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.001006/0.1108, allocations: 0.9993 MB / 0.5012 GB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005154/0.1113, allocations: 279.3 kB / 0.5015 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1113, allocations: 0 / 0.5015 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000216/0.1115, allocations: 103.9 kB / 0.5016 GB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.1119, allocations: 39.03 kB / 0.5016 GB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.1157, allocations: 2.911 MB / 0.5045 GB, free: 9.477 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.1161, allocations: 0.7904 MB / 0.5053 GB, free: 8.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.042e-05/0.1162, allocations: 13.55 kB / 0.5053 GB, free: 8.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.1163, allocations: 107.3 kB / 0.5054 GB, free: 8.539 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1163, allocations: 0 / 0.5054 GB, free: 8.539 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.1392, allocations: 4.968 MB / 0.5102 GB, free: 3.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.526/7.666, allocations: 9.297 kB / 0.5102 GB, free: 3.66 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)