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.001268/0.001267, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001257/0.001257, allocations: 195.7 kB / 16.26 MB, free: 6.625 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.277/1.277, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3173/0.3173, allocations: 28.8 MB / 318.9 MB, free: 5.828 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 55.91 kB / 386.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.313, allocations: 56.41 MB / 442.6 MB, free: 39.61 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.003125/0.3162, allocations: 2.367 MB / 445 MB, free: 38.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000905/0.3171, allocations: 0.6193 MB / 445.6 MB, free: 38.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.3173, allocations: 2.719 kB / 445.6 MB, free: 38.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001812/0.3175, allocations: 30.94 kB / 445.6 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.187e-05/0.3176, allocations: 24.22 kB / 445.7 MB, free: 38.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.318, allocations: 106.7 kB / 445.8 MB, free: 38.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.3182, allocations: 279.5 kB / 446 MB, free: 38.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.3185, allocations: 184.6 kB / 446.2 MB, free: 38.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.587e-05/0.3186, allocations: 105 kB / 446.3 MB, free: 38.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.3187, allocations: 123.6 kB / 446.4 MB, free: 38.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.806e-05/0.3188, allocations: 26.25 kB / 446.5 MB, free: 38.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.3189, allocations: 53.03 kB / 446.5 MB, free: 38.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.746e-05/0.319, allocations: 93.81 kB / 446.6 MB, free: 38.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.3191, allocations: 147.1 kB / 446.8 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.3194, allocations: 312.3 kB / 447.1 MB, free: 37.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3194, allocations: 0 / 447.1 MB, free: 37.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3194, allocations: 0 / 447.1 MB, free: 37.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.3194, allocations: 3.938 kB / 447.1 MB, free: 37.96 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.000825/0.3202, allocations: 0.6493 MB / 447.7 MB, free: 37.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.3203, allocations: 15.75 kB / 447.7 MB, free: 37.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.905e-05/0.3203, allocations: 74.11 kB / 447.8 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.403e-05/0.3204, allocations: 40.66 kB / 447.8 MB, free: 37.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.3207, allocations: 293.8 kB / 448.1 MB, free: 37.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.3207, allocations: 23.81 kB / 448.2 MB, free: 37.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.3207, allocations: 36.75 kB / 448.2 MB, free: 37.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000497/0.3212, allocations: 347.9 kB / 448.5 MB, free: 36.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.3213, allocations: 2.906 kB / 448.5 MB, free: 36.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.3213, allocations: 14.97 kB / 448.5 MB, free: 36.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.3213, allocations: 9.844 kB / 448.6 MB, free: 36.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004033/0.3217, allocations: 239.3 kB / 448.8 MB, free: 36.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.3228, allocations: 1.167 MB / 450 MB, free: 36.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.3232, allocations: 217.7 kB / 450.2 MB, free: 36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.3234, allocations: 107.2 kB / 450.3 MB, free: 35.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.3234, allocations: 12.28 kB / 450.3 MB, free: 35.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.3237, allocations: 159.9 kB / 450.4 MB, free: 35.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 1.442e-06/0.3237, allocations: 0 / 450.4 MB, free: 35.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005697/0.3243, allocations: 326.4 kB / 450.8 MB, free: 35.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.3243, allocations: 58.25 kB / 450.8 MB, free: 35.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.3245, allocations: 269.4 kB / 451.1 MB, free: 35.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.3245, allocations: 32.64 kB / 451.1 MB, free: 35.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.902e-05/0.3246, allocations: 211.4 kB / 451.3 MB, free: 35.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.326e-05/0.3247, allocations: 55.55 kB / 451.4 MB, free: 35.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.988e-05/0.3247, allocations: 50.03 kB / 451.4 MB, free: 35.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.411e-05/0.3248, allocations: 338.2 kB / 451.8 MB, free: 34.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.325, allocations: 97.5 kB / 451.8 MB, free: 34.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.3252, allocations: 133.2 kB / 452 MB, free: 34.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.3255, allocations: 256.3 kB / 452.2 MB, free: 34.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3255, allocations: 0 / 452.2 MB, free: 34.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004505/0.326, allocations: 321 kB / 452.5 MB, free: 34.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.326, allocations: 31.42 kB / 452.6 MB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.326, allocations: 6.75 kB / 452.6 MB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.326, allocations: 6.781 kB / 452.6 MB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.3262, allocations: 39.02 kB / 452.6 MB, free: 34.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.3262, allocations: 2.812 kB / 452.6 MB, free: 34.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.3264, allocations: 30.77 kB / 452.7 MB, free: 34.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.3264, allocations: 5.75 kB / 452.7 MB, free: 34.5 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.000117/0.3265, allocations: 160.9 kB / 452.8 MB, free: 34.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.3266, allocations: 31.31 kB / 452.9 MB, free: 34.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004409/0.327, allocations: 261.5 kB / 453.1 MB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.327, allocations: 0 / 453.1 MB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.327, allocations: 2.625 kB / 453.1 MB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.327, allocations: 3.938 kB / 453.1 MB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000635/0.3277, allocations: 0.672 MB / 453.8 MB, free: 33.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3277, allocations: 4 kB / 453.8 MB, free: 33.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.3279, allocations: 29.25 kB / 453.8 MB, free: 33.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3279, allocations: 2.844 kB / 453.8 MB, free: 33.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.3279, allocations: 11.17 kB / 453.8 MB, free: 33.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3279, allocations: 0 / 453.8 MB, free: 33.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3279, allocations: 3.062 kB / 453.8 MB, free: 33.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005811/0.3285, allocations: 457.5 kB / 454.3 MB, free: 33.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.731e-05/0.3285, allocations: 97.48 kB / 454.4 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.3286, allocations: 11.94 kB / 454.4 MB, free: 33.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.3287, allocations: 9.016 kB / 454.4 MB, free: 33.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.3288, allocations: 27.22 kB / 454.4 MB, free: 33.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.3288, allocations: 3 kB / 454.4 MB, free: 33.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001248/0.329, allocations: 196.1 kB / 454.6 MB, free: 33.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.329, allocations: 0 / 454.6 MB, free: 33.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002847/0.3292, allocations: 66.56 kB / 454.7 MB, free: 33.29 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.0007581/0.33, allocations: 0.9874 MB / 455.7 MB, free: 32.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00046/0.3305, allocations: 286 kB / 455.9 MB, free: 32.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3305, allocations: 0 / 455.9 MB, free: 32.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.3307, allocations: 108.8 kB / 456.1 MB, free: 32.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.331, allocations: 35.66 kB / 456.1 MB, free: 32.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.3339, allocations: 3.037 MB / 459.1 MB, free: 30.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.3341, allocations: 0.7927 MB / 459.9 MB, free: 29.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.933e-05/0.3342, allocations: 12.91 kB / 459.9 MB, free: 29.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.3343, allocations: 107.9 kB / 460 MB, free: 29.56 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3343, allocations: 0 / 460 MB, free: 29.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.365/0.6993, allocations: 4.675 MB / 464.7 MB, free: 29.05 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/0.6994, allocations: 216.4 kB / 464.9 MB, free: 28.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.264/2.964, allocations: 4 kB / 464.9 MB, free: 28.8 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)