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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001813/0.001813, allocations: 114.5 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 216 kB / 22.25 MB, free: 5.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.528/1.528, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.2094/0.2094, allocations: 29.21 MB / 341.7 MB, free: 5.832 MB / 270.1 MB " [Timeout remaining time 179] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Warning: Ignoring unknown experiment annotation option: Algorithm = \"dassl\" Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 67.91 kB / 478.4 MB, free: 0.625 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4084, allocations: 60.8 MB / 0.5265 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.004485/0.4129, allocations: 2.352 MB / 0.5288 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.4149, allocations: 0.6699 MB / 0.5295 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004475/0.4154, allocations: 8.375 kB / 0.5295 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.4157, allocations: 46.41 kB / 0.5295 GB, free: 5.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.4159, allocations: 36.25 kB / 0.5296 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006349/0.4165, allocations: 121 kB / 0.5297 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.417, allocations: 271 kB / 0.5299 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000353/0.4173, allocations: 147.2 kB / 0.5301 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.4175, allocations: 103.9 kB / 0.5302 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.4177, allocations: 123.9 kB / 0.5303 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.098e-05/0.4177, allocations: 30.86 kB / 0.5303 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.4179, allocations: 59.42 kB / 0.5304 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.418, allocations: 81.89 kB / 0.5304 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.4182, allocations: 153.1 kB / 0.5306 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005494/0.4187, allocations: 332.5 kB / 0.5309 GB, free: 5.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4187, allocations: 0.7031 kB / 0.5309 GB, free: 5.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.4187, allocations: 0 / 0.5309 GB, free: 5.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.4188, allocations: 0 / 0.5309 GB, free: 5.059 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.001199/0.42, allocations: 0.5996 MB / 0.5315 GB, free: 4.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.42, allocations: 9.156 kB / 0.5315 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.4201, allocations: 78.42 kB / 0.5316 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.859e-05/0.4202, allocations: 41.44 kB / 0.5316 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004616/0.4207, allocations: 234.2 kB / 0.5318 GB, free: 4.285 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.4207, allocations: 25.62 kB / 0.5319 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.4208, allocations: 30.52 kB / 0.5319 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00065/0.4214, allocations: 353.7 kB / 0.5322 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.4214, allocations: 2.141 kB / 0.5322 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.4215, allocations: 10.19 kB / 0.5322 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.4215, allocations: 8.812 kB / 0.5323 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.422, allocations: 240.9 kB / 0.5325 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.4237, allocations: 1.121 MB / 0.5336 GB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005597/0.4243, allocations: 208.6 kB / 0.5338 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.4245, allocations: 95.64 kB / 0.5339 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.862e-05/0.4246, allocations: 17.95 kB / 0.5339 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003443/0.4249, allocations: 170.1 kB / 0.534 GB, free: 3.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 2.835e-06/0.4249, allocations: 0 / 0.534 GB, free: 3.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007582/0.4257, allocations: 316.1 kB / 0.5344 GB, free: 2.906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.4257, allocations: 54.86 kB / 0.5344 GB, free: 2.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003285/0.426, allocations: 263.9 kB / 0.5347 GB, free: 2.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.4261, allocations: 30.73 kB / 0.5347 GB, free: 2.664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.4262, allocations: 227 kB / 0.5349 GB, free: 2.473 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.149e-05/0.4263, allocations: 61.12 kB / 0.535 GB, free: 2.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.383e-05/0.4264, allocations: 45.8 kB / 0.535 GB, free: 2.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.474e-05/0.4264, allocations: 338.3 kB / 0.5353 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000217/0.4267, allocations: 93.42 kB / 0.5354 GB, free: 2.043 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.4269, allocations: 141.7 kB / 0.5355 GB, free: 1.965 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004149/0.4273, allocations: 254.6 kB / 0.5358 GB, free: 1.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.4273, allocations: 4 kB / 0.5358 GB, free: 1.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005885/0.4279, allocations: 321.2 kB / 0.5361 GB, free: 1.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.4279, allocations: 32.94 kB / 0.5361 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.4279, allocations: 2.312 kB / 0.5361 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.428, allocations: 2.125 kB / 0.5361 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.4282, allocations: 44.91 kB / 0.5362 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.4282, allocations: 2.234 kB / 0.5362 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.4284, allocations: 33.94 kB / 0.5362 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.4284, allocations: 7 kB / 0.5362 GB, free: 1.621 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.0001805/0.4286, allocations: 155.8 kB / 0.5364 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.33e-05/0.4286, allocations: 26.84 kB / 0.5364 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005585/0.4292, allocations: 259.3 kB / 0.5366 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.4292, allocations: 2.719 kB / 0.5366 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4292, allocations: 4 kB / 0.5366 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.4292, allocations: 5.109 kB / 0.5367 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008961/0.4301, allocations: 0.6359 MB / 0.5373 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4301, allocations: 1.375 kB / 0.5373 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.4303, allocations: 32.94 kB / 0.5373 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.4303, allocations: 0 / 0.5373 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.4303, allocations: 10.62 kB / 0.5373 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.4303, allocations: 1.375 kB / 0.5373 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4303, allocations: 4 kB / 0.5373 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00073/0.431, allocations: 452.4 kB / 0.5378 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.674e-05/0.4311, allocations: 26.67 kB / 0.5378 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.4311, allocations: 9.312 kB / 0.5378 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.4313, allocations: 14.92 kB / 0.5378 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/0.4313, allocations: 21.47 kB / 0.5378 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.4314, allocations: 4.125 kB / 0.5378 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.4315, allocations: 199.9 kB / 0.538 GB, free: 0.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4315, allocations: 3.938 kB / 0.538 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003837/0.4319, allocations: 62.09 kB / 0.5381 GB, free: 0.5195 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.001085/0.433, allocations: 0.9948 MB / 0.5391 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005934/0.4336, allocations: 278.6 kB / 0.5393 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4336, allocations: 0 / 0.5393 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.4338, allocations: 103 kB / 0.5394 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004296/0.4343, allocations: 34.42 kB / 0.5394 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004682/0.4389, allocations: 2.896 MB / 0.5423 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.4394, allocations: 0.7893 MB / 0.543 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.4395, allocations: 22.2 kB / 0.5431 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.4397, allocations: 100.2 kB / 0.5432 GB, free: 12.55 MB / 398.1 MB Notification: Performance of SimCode: time 2.324e-06/0.4397, allocations: 0 / 0.5432 GB, free: 12.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04269/0.4824, allocations: 5.082 MB / 0.5481 GB, free: 10 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/14.01, allocations: 4.812 kB / 0.5481 GB, free: 10 MB / 398.1 MB " [Timeout remaining time 646] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.223425359999965] Failed to read output from testmodel.py, exit status != 0: 14.124753095002234 14.148180992 13.724751941 Calling exit ...