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.001641/0.001641, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003862/0.003862, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.778/2.778, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.7744/0.7744, allocations: 28.81 MB / 319.2 MB, free: 5.684 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.002866/0.002866, allocations: 59.91 kB / 386.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5125/0.5154, allocations: 56.42 MB / 443.1 MB, free: 39.55 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.005941/0.5214, allocations: 2.313 MB / 445.5 MB, free: 38.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.5232, allocations: 0.6425 MB / 446.1 MB, free: 38.22 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002966/0.5235, allocations: 2.906 kB / 446.1 MB, free: 38.22 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002826/0.5239, allocations: 44.11 kB / 446.1 MB, free: 38.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.5241, allocations: 39.44 kB / 446.2 MB, free: 38.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006552/0.5248, allocations: 117.1 kB / 446.3 MB, free: 38.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004922/0.5253, allocations: 265.8 kB / 446.6 MB, free: 38.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004457/0.5258, allocations: 193.1 kB / 446.7 MB, free: 38.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.526, allocations: 104.1 kB / 446.8 MB, free: 38.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.5262, allocations: 126.7 kB / 447 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.56e-05/0.5263, allocations: 29.06 kB / 447 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.5265, allocations: 51.17 kB / 447.1 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.5266, allocations: 82.78 kB / 447.1 MB, free: 38.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.5268, allocations: 146.1 kB / 447.3 MB, free: 37.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004103/0.5272, allocations: 319.8 kB / 447.6 MB, free: 37.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.5272, allocations: 0 / 447.6 MB, free: 37.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5272, allocations: 0 / 447.6 MB, free: 37.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.5273, allocations: 0 / 447.6 MB, free: 37.88 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.001198/0.5285, allocations: 0.657 MB / 448.2 MB, free: 37.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.5285, allocations: 10.84 kB / 448.3 MB, free: 37.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.5287, allocations: 78.95 kB / 448.3 MB, free: 37.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.5288, allocations: 45.12 kB / 448.4 MB, free: 37.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.5292, allocations: 289.5 kB / 448.7 MB, free: 37.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/0.5293, allocations: 27.91 kB / 448.7 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.5294, allocations: 28.97 kB / 448.7 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008447/0.5302, allocations: 352.4 kB / 449.1 MB, free: 36.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.5303, allocations: 2.688 kB / 449.1 MB, free: 36.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.5303, allocations: 10.81 kB / 449.1 MB, free: 36.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.5304, allocations: 5.812 kB / 449.1 MB, free: 36.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000823/0.5312, allocations: 240.7 kB / 449.3 MB, free: 36.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.5332, allocations: 1.169 MB / 450.5 MB, free: 35.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007173/0.534, allocations: 223.6 kB / 450.7 MB, free: 35.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/0.5343, allocations: 99.44 kB / 450.8 MB, free: 35.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.565e-05/0.5344, allocations: 13.83 kB / 450.8 MB, free: 35.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005299/0.535, allocations: 155.1 kB / 451 MB, free: 35.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 3.055e-06/0.535, allocations: 4 kB / 451 MB, free: 35.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.001119/0.5361, allocations: 323.8 kB / 451.3 MB, free: 35.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.5362, allocations: 58.28 kB / 451.3 MB, free: 35.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.5366, allocations: 268.1 kB / 451.6 MB, free: 35.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.5366, allocations: 32.61 kB / 451.6 MB, free: 35.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.5368, allocations: 212.9 kB / 451.8 MB, free: 35.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.885e-05/0.5369, allocations: 62.52 kB / 451.9 MB, free: 35.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.5371, allocations: 50 kB / 452 MB, free: 35.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.34e-05/0.5372, allocations: 335.6 kB / 452.3 MB, free: 34.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003312/0.5375, allocations: 94.97 kB / 452.4 MB, free: 34.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.5379, allocations: 133.5 kB / 452.5 MB, free: 34.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007099/0.5386, allocations: 255.4 kB / 452.8 MB, free: 34.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.5387, allocations: 0 / 452.8 MB, free: 34.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009569/0.5396, allocations: 326.2 kB / 453.1 MB, free: 34.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.171e-05/0.5397, allocations: 38.95 kB / 453.1 MB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5397, allocations: 0 / 453.1 MB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.547e-05/0.5398, allocations: 3.125 kB / 453.1 MB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003392/0.5401, allocations: 35.92 kB / 453.1 MB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.5402, allocations: 2.781 kB / 453.1 MB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.5405, allocations: 29.33 kB / 453.2 MB, free: 34.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.5405, allocations: 9.375 kB / 453.2 MB, free: 34.35 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.0002301/0.5408, allocations: 162.5 kB / 453.3 MB, free: 34.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.513e-05/0.5408, allocations: 27.12 kB / 453.4 MB, free: 34.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008216/0.5417, allocations: 256.8 kB / 453.6 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.5417, allocations: 2.875 kB / 453.6 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.5417, allocations: 0 / 453.6 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.5417, allocations: 3.938 kB / 453.6 MB, free: 34.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.543, allocations: 0.6685 MB / 454.3 MB, free: 33.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.543, allocations: 6.906 kB / 454.3 MB, free: 33.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003033/0.5433, allocations: 33.27 kB / 454.3 MB, free: 33.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.5433, allocations: 0 / 454.3 MB, free: 33.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.5434, allocations: 10.81 kB / 454.3 MB, free: 33.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.5434, allocations: 0 / 454.3 MB, free: 33.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5434, allocations: 0 / 454.3 MB, free: 33.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.5445, allocations: 458.5 kB / 454.8 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.446e-05/0.5446, allocations: 98.89 kB / 454.9 MB, free: 33.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.5447, allocations: 10.94 kB / 454.9 MB, free: 33.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.545, allocations: 13.48 kB / 454.9 MB, free: 33.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.058e-05/0.5451, allocations: 20.23 kB / 454.9 MB, free: 33.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.5452, allocations: 8.719 kB / 454.9 MB, free: 33.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002564/0.5454, allocations: 193.9 kB / 455.1 MB, free: 33.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5454, allocations: 0 / 455.1 MB, free: 33.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006285/0.5461, allocations: 63.94 kB / 455.2 MB, free: 33.16 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.001417/0.5475, allocations: 0.9968 MB / 456.2 MB, free: 32.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009033/0.5485, allocations: 286.6 kB / 456.5 MB, free: 32.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.5485, allocations: 2.875 kB / 456.5 MB, free: 32.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003671/0.5489, allocations: 105 kB / 456.6 MB, free: 32.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006712/0.5496, allocations: 29.12 kB / 456.6 MB, free: 32.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005259/0.5548, allocations: 2.907 MB / 459.5 MB, free: 30.35 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.5552, allocations: 0.7894 MB / 460.3 MB, free: 29.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.5553, allocations: 16.72 kB / 460.3 MB, free: 29.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.5555, allocations: 112 kB / 460.4 MB, free: 29.55 MB / 366.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5555, allocations: 0 / 460.4 MB, free: 29.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/0.6684, allocations: 4.79 MB / 465.2 MB, free: 28.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.8/19.47, allocations: 2.938 kB / 465.2 MB, free: 28.91 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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.024 SystemDynamics_SystemDynamics_IntroductoryExamples_Hair_Lynx_Interaction.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe 2>&1)