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.004935/0.004935, allocations: 98.97 kB / 15.73 MB, free: 6.043 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.001283/0.001283, allocations: 199.1 kB / 16.68 MB, free: 5.965 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.288/0.288, allocations: 28.8 MB / 319.4 MB, free: 5.613 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 62.97 kB / 443.8 MB, free: 36.89 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08218/0.08406, allocations: 56.44 MB / 0.4885 GB, free: 8.98 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.002697/0.08679, allocations: 2.334 MB / 0.4908 GB, free: 7.129 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008998/0.08771, allocations: 0.6257 MB / 0.4914 GB, free: 6.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.08784, allocations: 4.125 kB / 0.4914 GB, free: 6.625 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.08803, allocations: 47.64 kB / 0.4914 GB, free: 6.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.156e-05/0.08813, allocations: 37.11 kB / 0.4915 GB, free: 6.551 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003355/0.08847, allocations: 124.4 kB / 0.4916 GB, free: 6.449 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000248/0.08873, allocations: 267.2 kB / 0.4918 GB, free: 6.289 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002415/0.08898, allocations: 184.5 kB / 0.492 GB, free: 6.176 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.306e-05/0.08908, allocations: 106 kB / 0.4921 GB, free: 6.102 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.795e-05/0.08919, allocations: 124.2 kB / 0.4922 GB, free: 6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/0.08923, allocations: 26.88 kB / 0.4923 GB, free: 6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.08935, allocations: 57 kB / 0.4923 GB, free: 5.984 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.741e-05/0.08943, allocations: 78.25 kB / 0.4924 GB, free: 5.926 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.725e-05/0.08954, allocations: 154 kB / 0.4925 GB, free: 5.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003024/0.08985, allocations: 333.2 kB / 0.4929 GB, free: 5.551 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.08986, allocations: 3.938 kB / 0.4929 GB, free: 5.547 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.08986, allocations: 0 / 0.4929 GB, free: 5.547 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.08987, allocations: 0.9375 kB / 0.4929 GB, free: 5.547 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.0007878/0.09067, allocations: 0.6629 MB / 0.4935 GB, free: 4.938 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.09071, allocations: 13.27 kB / 0.4935 GB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.244e-05/0.09079, allocations: 68.94 kB / 0.4936 GB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.476e-05/0.09086, allocations: 45.47 kB / 0.4936 GB, free: 4.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002698/0.09113, allocations: 296.6 kB / 0.4939 GB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.09117, allocations: 26.03 kB / 0.4939 GB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.09122, allocations: 33.09 kB / 0.494 GB, free: 4.527 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005121/0.09173, allocations: 344.5 kB / 0.4943 GB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.09176, allocations: 0 / 0.4943 GB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.09179, allocations: 15.84 kB / 0.4943 GB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.0918, allocations: 8.062 kB / 0.4943 GB, free: 4.289 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004183/0.09222, allocations: 242.4 kB / 0.4946 GB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.09324, allocations: 1.168 MB / 0.4957 GB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000383/0.09364, allocations: 222.4 kB / 0.4959 GB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/0.09382, allocations: 104.8 kB / 0.496 GB, free: 2.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.756e-05/0.09387, allocations: 19.97 kB / 0.496 GB, free: 2.469 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.09414, allocations: 151.5 kB / 0.4962 GB, free: 2.309 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 1.843e-06/0.09415, allocations: 0 / 0.4962 GB, free: 2.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006148/0.09477, allocations: 327.1 kB / 0.4965 GB, free: 1.984 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.435e-05/0.09481, allocations: 55.41 kB / 0.4965 GB, free: 1.918 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.09499, allocations: 266.6 kB / 0.4968 GB, free: 1.648 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.09502, allocations: 33.7 kB / 0.4968 GB, free: 1.609 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.327e-05/0.09511, allocations: 212.4 kB / 0.497 GB, free: 1.398 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.09515, allocations: 63.47 kB / 0.4971 GB, free: 1.336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-05/0.09522, allocations: 45.7 kB / 0.4971 GB, free: 1.285 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.108e-05/0.09527, allocations: 342.8 kB / 0.4975 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.09546, allocations: 88.19 kB / 0.4975 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.09566, allocations: 129.9 kB / 0.4977 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.09602, allocations: 261.6 kB / 0.4979 GB, free: 444 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.09604, allocations: 0 / 0.4979 GB, free: 444 kB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004666/0.09651, allocations: 327 kB / 0.4982 GB, free: 104 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.09654, allocations: 29.7 kB / 0.4983 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.09655, allocations: 7.984 kB / 0.4983 GB, free: 60 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.09657, allocations: 0 / 0.4983 GB, free: 60 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.09676, allocations: 47.92 kB / 0.4983 GB, free: 12 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.09678, allocations: 4 kB / 0.4983 GB, free: 8 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.09696, allocations: 27.81 kB / 0.4983 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.09699, allocations: 8 kB / 0.4983 GB, free: 15.97 MB / 382.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.0001801/0.09718, allocations: 165.7 kB / 0.4985 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.09722, allocations: 27.81 kB / 0.4985 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005739/0.0978, allocations: 254.4 kB / 0.4988 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.09782, allocations: 4 kB / 0.4988 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.09783, allocations: 0 / 0.4988 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.09784, allocations: 3.938 kB / 0.4988 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009258/0.09877, allocations: 0.6661 MB / 0.4994 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.09879, allocations: 3.984 kB / 0.4994 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.09897, allocations: 23.98 kB / 0.4995 GB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.09898, allocations: 4 kB / 0.4995 GB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.099, allocations: 3.938 kB / 0.4995 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.09901, allocations: 0 / 0.4995 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.09902, allocations: 0 / 0.4995 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000801/0.09982, allocations: 471 kB / 0.4999 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.908e-05/0.09991, allocations: 100.9 kB / 0.5 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.09995, allocations: 7.938 kB / 0.5 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.1001, allocations: 11.98 kB / 0.5 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.281e-05/0.1002, allocations: 19.97 kB / 0.5 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.1002, allocations: 4 kB / 0.5001 GB, free: 14.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.1004, allocations: 197.9 kB / 0.5002 GB, free: 13.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1004, allocations: 0 / 0.5002 GB, free: 13.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000325/0.1008, allocations: 71.83 kB / 0.5003 GB, free: 13.86 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.001177/0.1019, allocations: 0.9939 MB / 0.5013 GB, free: 12.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005794/0.1025, allocations: 279.1 kB / 0.5015 GB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1025, allocations: 0 / 0.5015 GB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.1028, allocations: 107.8 kB / 0.5016 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.1032, allocations: 39.67 kB / 0.5017 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004013/0.1072, allocations: 2.92 MB / 0.5045 GB, free: 9.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.1077, allocations: 0.7904 MB / 0.5053 GB, free: 8.555 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.576e-05/0.1078, allocations: 13.55 kB / 0.5053 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.1079, allocations: 107.4 kB / 0.5054 GB, free: 8.434 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1079, allocations: 0 / 0.5054 GB, free: 8.434 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02774/0.1357, allocations: 4.902 MB / 0.5102 GB, free: 3.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.874/8.01, allocations: 6.328 kB / 0.5102 GB, free: 3.621 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 & 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)