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.001217/0.001217, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001517/0.001517, allocations: 193.7 kB / 16.14 MB, free: 6.664 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.34/1.34, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3022/0.3022, allocations: 28.81 MB / 318.8 MB, free: 5.906 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.91 kB / 386 MB, free: 3.992 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.289, allocations: 56.41 MB / 442.4 MB, free: 39.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.002939/0.292, allocations: 2.371 MB / 444.8 MB, free: 38.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009229/0.293, allocations: 0.624 MB / 445.4 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.2931, allocations: 2.875 kB / 445.4 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.2933, allocations: 31.62 kB / 445.5 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.243e-05/0.2934, allocations: 20.77 kB / 445.5 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.2937, allocations: 108.7 kB / 445.6 MB, free: 38.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001933/0.2939, allocations: 251.1 kB / 445.8 MB, free: 38.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.2941, allocations: 184.4 kB / 446 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.012e-05/0.2942, allocations: 89.3 kB / 446.1 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.706e-05/0.2943, allocations: 117 kB / 446.2 MB, free: 38.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.289e-05/0.2943, allocations: 17.31 kB / 446.2 MB, free: 38.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.349e-05/0.2944, allocations: 43.83 kB / 446.3 MB, free: 38.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.346e-05/0.2945, allocations: 75.5 kB / 446.4 MB, free: 38.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.213e-05/0.2946, allocations: 140 kB / 446.5 MB, free: 38.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.2948, allocations: 297 kB / 446.8 MB, free: 38.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2948, allocations: 4 kB / 446.8 MB, free: 38.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2949, allocations: 0 / 446.8 MB, free: 38.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.2949, allocations: 2.781 kB / 446.8 MB, free: 38.01 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.0007785/0.2956, allocations: 0.6532 MB / 447.4 MB, free: 37.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.2957, allocations: 8.469 kB / 447.4 MB, free: 37.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.153e-05/0.2958, allocations: 72.52 kB / 447.5 MB, free: 37.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.231e-05/0.2958, allocations: 39.56 kB / 447.6 MB, free: 37.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.2961, allocations: 298.4 kB / 447.8 MB, free: 37.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.2961, allocations: 20.31 kB / 447.9 MB, free: 37.19 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.216e-05/0.2961, allocations: 35.94 kB / 447.9 MB, free: 37.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004751/0.2966, allocations: 346 kB / 448.2 MB, free: 37.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.2966, allocations: 0 / 448.2 MB, free: 37.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.2967, allocations: 13.16 kB / 448.3 MB, free: 37.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.2967, allocations: 12.56 kB / 448.3 MB, free: 37.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004173/0.2971, allocations: 240.6 kB / 448.5 MB, free: 37.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.2982, allocations: 1.17 MB / 449.7 MB, free: 36.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003726/0.2986, allocations: 222.4 kB / 449.9 MB, free: 36.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.2988, allocations: 101.5 kB / 450 MB, free: 36.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.2988, allocations: 14.22 kB / 450 MB, free: 36.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003441/0.2991, allocations: 157 kB / 450.2 MB, free: 36.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 2.224e-06/0.2992, allocations: 0 / 450.2 MB, free: 36.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006281/0.2998, allocations: 332.5 kB / 450.5 MB, free: 35.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.2998, allocations: 54.19 kB / 450.5 MB, free: 35.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.3, allocations: 274.2 kB / 450.8 MB, free: 35.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.3001, allocations: 29.7 kB / 450.8 MB, free: 35.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.57e-05/0.3002, allocations: 210.8 kB / 451 MB, free: 35.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.3002, allocations: 58.5 kB / 451.1 MB, free: 35.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.785e-05/0.3003, allocations: 50.09 kB / 451.1 MB, free: 35.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.971e-05/0.3004, allocations: 339 kB / 451.5 MB, free: 35.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.3006, allocations: 94.53 kB / 451.6 MB, free: 35.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.3008, allocations: 134.2 kB / 451.7 MB, free: 34.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003575/0.3011, allocations: 255.8 kB / 451.9 MB, free: 34.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3011, allocations: 0 / 451.9 MB, free: 34.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004665/0.3016, allocations: 326.7 kB / 452.3 MB, free: 34.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.3017, allocations: 31.2 kB / 452.3 MB, free: 34.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3017, allocations: 0 / 452.3 MB, free: 34.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.3017, allocations: 2.781 kB / 452.3 MB, free: 34.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.3019, allocations: 44.39 kB / 452.3 MB, free: 34.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.3019, allocations: 6.938 kB / 452.3 MB, free: 34.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.3021, allocations: 29.81 kB / 452.4 MB, free: 34.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.3021, allocations: 9.109 kB / 452.4 MB, free: 34.63 MB / 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.0001201/0.3022, allocations: 156.6 kB / 452.5 MB, free: 34.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.789e-05/0.3022, allocations: 26.78 kB / 452.6 MB, free: 34.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004458/0.3027, allocations: 257.7 kB / 452.8 MB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3027, allocations: 2.906 kB / 452.8 MB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3027, allocations: 0 / 452.8 MB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3027, allocations: 7.219 kB / 452.8 MB, free: 34.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006365/0.3034, allocations: 0.6704 MB / 453.5 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3034, allocations: 0 / 453.5 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.3035, allocations: 26.22 kB / 453.5 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3036, allocations: 0 / 453.5 MB, free: 33.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.3036, allocations: 18.14 kB / 453.5 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3036, allocations: 0 / 453.5 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3036, allocations: 0 / 453.5 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005851/0.3042, allocations: 460.1 kB / 454 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.015e-05/0.3042, allocations: 94.08 kB / 454.1 MB, free: 33.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/0.3043, allocations: 14.47 kB / 454.1 MB, free: 33.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.3044, allocations: 12.3 kB / 454.1 MB, free: 33.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.69e-05/0.3045, allocations: 23.28 kB / 454.1 MB, free: 33.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.3045, allocations: 6.906 kB / 454.1 MB, free: 33.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001488/0.3047, allocations: 192.5 kB / 454.3 MB, free: 33.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3047, allocations: 0 / 454.3 MB, free: 33.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.305, allocations: 66.31 kB / 454.4 MB, free: 33.44 MB / 366.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.0008075/0.3058, allocations: 0.9962 MB / 455.4 MB, free: 32.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004461/0.3062, allocations: 277.7 kB / 455.7 MB, free: 32.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3063, allocations: 320 / 455.7 MB, free: 32.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.3065, allocations: 107.4 kB / 455.8 MB, free: 32.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.3068, allocations: 37.81 kB / 455.8 MB, free: 32.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.3097, allocations: 3.034 MB / 458.8 MB, free: 30.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.3099, allocations: 0.7866 MB / 459.6 MB, free: 29.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.599e-05/0.31, allocations: 17.88 kB / 459.6 MB, free: 29.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3101, allocations: 110.3 kB / 459.7 MB, free: 29.71 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.3101, allocations: 0 / 459.7 MB, free: 29.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01336/0.3235, allocations: 4.565 MB / 464.3 MB, free: 29.2 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001374/0.3237, allocations: 213.4 kB / 464.5 MB, free: 28.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.096, allocations: 3.938 kB / 464.5 MB, free: 28.94 MB / 366.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)