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.004464/0.004464, allocations: 102.1 kB / 15.73 MB, free: 6.066 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.001101/0.001101, allocations: 193.7 kB / 16.68 MB, free: 5.973 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1586/0.1586, allocations: 28.79 MB / 319.3 MB, free: 1.879 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 59.91 kB / 443.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09536/0.09674, allocations: 56.41 MB / 0.4885 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.003474/0.1002, allocations: 2.332 MB / 0.4907 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.1015, allocations: 0.631 MB / 0.4913 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002022/0.1017, allocations: 7.938 kB / 0.4914 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.102, allocations: 43.52 kB / 0.4914 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.1021, allocations: 27.69 kB / 0.4914 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004297/0.1026, allocations: 127.8 kB / 0.4915 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.1029, allocations: 276.1 kB / 0.4918 GB, free: 7.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.1032, allocations: 190 kB / 0.492 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.1034, allocations: 103.6 kB / 0.4921 GB, free: 6.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.1035, allocations: 119.3 kB / 0.4922 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.34e-05/0.1036, allocations: 28 kB / 0.4922 GB, free: 6.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.1037, allocations: 55.97 kB / 0.4923 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.1038, allocations: 87.62 kB / 0.4924 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.104, allocations: 151 kB / 0.4925 GB, free: 6.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004373/0.1044, allocations: 334.4 kB / 0.4928 GB, free: 6.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1044, allocations: 0 / 0.4928 GB, free: 6.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1044, allocations: 0 / 0.4928 GB, free: 6.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.1044, allocations: 0 / 0.4928 GB, free: 6.113 MB / 382.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.001031/0.1055, allocations: 0.66 MB / 0.4935 GB, free: 5.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1055, allocations: 8.031 kB / 0.4935 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.127e-05/0.1056, allocations: 71.38 kB / 0.4935 GB, free: 5.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.64e-05/0.1057, allocations: 48.66 kB / 0.4936 GB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004044/0.1061, allocations: 295.5 kB / 0.4939 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.1062, allocations: 25.03 kB / 0.4939 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/0.1062, allocations: 36.36 kB / 0.4939 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005998/0.1068, allocations: 351.7 kB / 0.4943 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.1068, allocations: 3.938 kB / 0.4943 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.1069, allocations: 15.94 kB / 0.4943 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1069, allocations: 8 kB / 0.4943 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004966/0.1074, allocations: 242.4 kB / 0.4945 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.109, allocations: 1.16 MB / 0.4957 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004476/0.1094, allocations: 218.4 kB / 0.4959 GB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.1097, allocations: 103.1 kB / 0.496 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.665e-05/0.1097, allocations: 12 kB / 0.496 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003177/0.11, allocations: 159.5 kB / 0.4961 GB, free: 2.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 2.224e-06/0.1101, allocations: 0 / 0.4961 GB, free: 2.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007123/0.1108, allocations: 325.3 kB / 0.4964 GB, free: 2.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.1108, allocations: 55.41 kB / 0.4965 GB, free: 2.129 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.1111, allocations: 266.7 kB / 0.4967 GB, free: 1.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.1111, allocations: 25.7 kB / 0.4968 GB, free: 1.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.1113, allocations: 224.3 kB / 0.497 GB, free: 1.605 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.143e-05/0.1114, allocations: 63.47 kB / 0.497 GB, free: 1.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-05/0.1115, allocations: 49.7 kB / 0.4971 GB, free: 1.488 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1116, allocations: 334.8 kB / 0.4974 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.1118, allocations: 92.12 kB / 0.4975 GB, free: 1.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.112, allocations: 136.7 kB / 0.4976 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.1125, allocations: 253.2 kB / 0.4979 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1125, allocations: 4 kB / 0.4979 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000595/0.1131, allocations: 323 kB / 0.4982 GB, free: 320 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.1132, allocations: 36.98 kB / 0.4982 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1132, allocations: 0 / 0.4982 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1132, allocations: 4 kB / 0.4982 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.1134, allocations: 47.97 kB / 0.4983 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.1134, allocations: 0 / 0.4983 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.1136, allocations: 35.88 kB / 0.4983 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.1136, allocations: 8 kB / 0.4983 GB, free: 184 kB / 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.0001607/0.1138, allocations: 153.8 kB / 0.4985 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.289e-05/0.1138, allocations: 27.86 kB / 0.4985 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005338/0.1144, allocations: 259.6 kB / 0.4987 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1144, allocations: 0 / 0.4987 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1144, allocations: 4 kB / 0.4987 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.1144, allocations: 7.875 kB / 0.4987 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008834/0.1153, allocations: 0.6584 MB / 0.4994 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.1153, allocations: 0 / 0.4994 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.1156, allocations: 43.84 kB / 0.4994 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1156, allocations: 0 / 0.4994 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.1156, allocations: 7.938 kB / 0.4994 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.1156, allocations: 0 / 0.4994 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1156, allocations: 4 kB / 0.4994 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007367/0.1164, allocations: 461.2 kB / 0.4999 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.838e-05/0.1165, allocations: 101 kB / 0.5 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.1165, allocations: 7.938 kB / 0.5 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.1167, allocations: 15.98 kB / 0.5 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.828e-05/0.1167, allocations: 20.03 kB / 0.5 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.1168, allocations: 8 kB / 0.5 GB, free: 14.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000182/0.117, allocations: 186 kB / 0.5002 GB, free: 14.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.117, allocations: 0 / 0.5002 GB, free: 14.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003531/0.1173, allocations: 71.72 kB / 0.5003 GB, free: 14.07 MB / 398.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.001061/0.1184, allocations: 1.004 MB / 0.5013 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005313/0.119, allocations: 285.2 kB / 0.5015 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.119, allocations: 0 / 0.5015 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.1192, allocations: 110.5 kB / 0.5016 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.1196, allocations: 41.17 kB / 0.5017 GB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003768/0.1234, allocations: 2.9 MB / 0.5045 GB, free: 9.586 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.1238, allocations: 0.7943 MB / 0.5053 GB, free: 8.766 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.7e-05/0.1239, allocations: 13.55 kB / 0.5053 GB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.124, allocations: 111.4 kB / 0.5054 GB, free: 8.641 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1241, allocations: 0 / 0.5054 GB, free: 8.641 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02389/0.1479, allocations: 4.898 MB / 0.5102 GB, free: 3.844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.818/7.966, allocations: 2.578 kB / 0.5102 GB, free: 3.844 MB / 398.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)