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.0008853/0.0008855, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.005471/0.005471, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.186/1.186, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2472/0.2472, allocations: 28.84 MB / 320.3 MB, free: 6.195 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002945, allocations: 8.234 kB / 388.6 MB, free: 3.066 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2301, allocations: 57.49 MB / 446.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.001598/0.2318, allocations: 1.99 MB / 448.1 MB, free: 31.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007407/0.2325, allocations: 0.6192 MB / 448.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.992e-05/0.2326, allocations: 3 kB / 448.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.2328, allocations: 34.34 kB / 448.7 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.825e-05/0.2328, allocations: 18.11 kB / 448.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.2331, allocations: 109.9 kB / 448.8 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.2333, allocations: 251 kB / 449.1 MB, free: 30.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.2335, allocations: 170.8 kB / 449.3 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.704e-05/0.2336, allocations: 62.28 kB / 449.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.362e-05/0.2337, allocations: 92.45 kB / 449.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.2337, allocations: 5.812 kB / 449.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.309e-05/0.2338, allocations: 36.2 kB / 449.4 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.011e-05/0.2338, allocations: 53.42 kB / 449.5 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.021e-05/0.2339, allocations: 142.8 kB / 449.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.2341, allocations: 290.4 kB / 449.9 MB, free: 30.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2341, allocations: 0 / 449.9 MB, free: 30.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2341, allocations: 0 / 449.9 MB, free: 30.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2341, allocations: 0 / 449.9 MB, free: 30.2 MB / 350.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.0006319/0.2348, allocations: 0.5969 MB / 450.5 MB, free: 29.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.2348, allocations: 11.31 kB / 450.5 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.927e-05/0.2349, allocations: 67.22 kB / 450.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/0.2349, allocations: 46.19 kB / 450.6 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/0.2351, allocations: 290.7 kB / 450.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.2352, allocations: 23.44 kB / 450.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.2352, allocations: 38.09 kB / 451 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004524/0.2357, allocations: 352.8 kB / 451.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.2357, allocations: 2.844 kB / 451.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.2357, allocations: 10.84 kB / 451.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.2357, allocations: 8.75 kB / 451.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003965/0.2361, allocations: 251.5 kB / 451.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009634/0.2371, allocations: 1.179 MB / 452.8 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003449/0.2375, allocations: 236.7 kB / 453 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.2376, allocations: 104.2 kB / 453.1 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.2377, allocations: 16.98 kB / 453.1 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002698/0.2379, allocations: 162.6 kB / 453.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 2.225e-06/0.238, allocations: 0 / 453.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.000562/0.2385, allocations: 345.4 kB / 453.6 MB, free: 27.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/0.2386, allocations: 54.25 kB / 453.7 MB, free: 27.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.2387, allocations: 271.8 kB / 453.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.2388, allocations: 31.89 kB / 454 MB, free: 27.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.866e-05/0.2388, allocations: 211.2 kB / 454.2 MB, free: 27.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.2389, allocations: 66.03 kB / 454.2 MB, free: 27.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.2389, allocations: 26.47 kB / 454.3 MB, free: 27.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.663e-05/0.239, allocations: 333.5 kB / 454.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.2392, allocations: 99.38 kB / 454.7 MB, free: 27.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.2393, allocations: 138.3 kB / 454.8 MB, free: 26.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/0.2397, allocations: 264.7 kB / 455.1 MB, free: 26.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2397, allocations: 6.625 kB / 455.1 MB, free: 26.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004384/0.2402, allocations: 332.5 kB / 455.4 MB, free: 26.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.2402, allocations: 36.86 kB / 455.4 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.2402, allocations: 128 / 455.4 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.2402, allocations: 6.625 kB / 455.5 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.2404, allocations: 42 kB / 455.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.2404, allocations: 2.625 kB / 455.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.2405, allocations: 36.23 kB / 455.5 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.2406, allocations: 7.875 kB / 455.5 MB, free: 26.62 MB / 350.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.0001018/0.2407, allocations: 163 kB / 455.7 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.2407, allocations: 26.22 kB / 455.7 MB, free: 26.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004178/0.2411, allocations: 271.5 kB / 456 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2411, allocations: 0 / 456 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2411, allocations: 0 / 456 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2411, allocations: 6.812 kB / 456 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005927/0.2417, allocations: 0.6801 MB / 456.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2418, allocations: 0 / 456.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/0.2419, allocations: 32.53 kB / 456.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2419, allocations: 4 kB / 456.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.2419, allocations: 10.69 kB / 456.7 MB, free: 25.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2419, allocations: 0 / 456.7 MB, free: 25.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.242, allocations: 3.938 kB / 456.7 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005538/0.2425, allocations: 478.7 kB / 457.2 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.034e-05/0.2425, allocations: 94.48 kB / 457.3 MB, free: 25.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.2426, allocations: 14.69 kB / 457.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.2427, allocations: 11.72 kB / 457.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.2428, allocations: 21.42 kB / 457.3 MB, free: 25.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/0.2428, allocations: 4.312 kB / 457.3 MB, free: 25.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.2429, allocations: 195.9 kB / 457.5 MB, free: 25.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2429, allocations: 0 / 457.5 MB, free: 25.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.2432, allocations: 63.34 kB / 457.6 MB, free: 25.43 MB / 350.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.0007276/0.2439, allocations: 1.016 MB / 458.6 MB, free: 24.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004038/0.2443, allocations: 287.7 kB / 458.9 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.2443, allocations: 3.938 kB / 458.9 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.2445, allocations: 109.2 kB / 459 MB, free: 24.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.2449, allocations: 27.41 kB / 459 MB, free: 24.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.2477, allocations: 3.078 MB / 462.1 MB, free: 22.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001851/0.2479, allocations: 0.7878 MB / 462.9 MB, free: 21.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.494e-05/0.248, allocations: 14.66 kB / 462.9 MB, free: 21.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.2481, allocations: 106 kB / 463 MB, free: 21.68 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2481, allocations: 0 / 463 MB, free: 21.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01341/0.2615, allocations: 4.457 MB / 467.5 MB, free: 21.29 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001313/0.2617, allocations: 211.6 kB / 467.7 MB, free: 21.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/1.905, allocations: 0 / 467.7 MB, free: 21.03 MB / 350.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)