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.001074/0.001075, allocations: 108 kB / 15.61 MB, free: 148 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.001272/0.001272, allocations: 196.6 kB / 16.53 MB, free: 6.699 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2732/0.2732, allocations: 28.82 MB / 319.2 MB, free: 5.703 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.89 kB / 386.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2554, allocations: 56.4 MB / 443.1 MB, free: 39.64 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.002676/0.2582, allocations: 2.314 MB / 445.5 MB, free: 38.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008511/0.259, allocations: 0.6432 MB / 446.1 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2592, allocations: 2.906 kB / 446.1 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.2593, allocations: 42.73 kB / 446.1 MB, free: 38.29 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.358e-05/0.2594, allocations: 32.7 kB / 446.2 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.2597, allocations: 128.4 kB / 446.3 MB, free: 38.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002242/0.26, allocations: 270.1 kB / 446.6 MB, free: 38.22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002209/0.2602, allocations: 181.6 kB / 446.7 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.221e-05/0.2603, allocations: 101.5 kB / 446.8 MB, free: 38.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.173e-05/0.2604, allocations: 131.7 kB / 447 MB, free: 38.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.2604, allocations: 25.56 kB / 447 MB, free: 38.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.985e-05/0.2605, allocations: 52.58 kB / 447 MB, free: 38.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.852e-05/0.2606, allocations: 83.25 kB / 447.1 MB, free: 38.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.429e-05/0.2607, allocations: 152.9 kB / 447.3 MB, free: 38.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.2609, allocations: 310.8 kB / 447.6 MB, free: 37.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2609, allocations: 0 / 447.6 MB, free: 37.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2609, allocations: 0 / 447.6 MB, free: 37.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.2609, allocations: 0 / 447.6 MB, free: 37.98 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.0007326/0.2617, allocations: 0.6593 MB / 448.2 MB, free: 37.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.2617, allocations: 8.719 kB / 448.2 MB, free: 37.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.365e-05/0.2618, allocations: 81.58 kB / 448.3 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.2618, allocations: 47.38 kB / 448.4 MB, free: 37.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002223/0.2621, allocations: 287 kB / 448.6 MB, free: 37.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.2621, allocations: 27.44 kB / 448.7 MB, free: 37.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.2621, allocations: 30.69 kB / 448.7 MB, free: 37.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.2626, allocations: 346.4 kB / 449 MB, free: 36.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2626, allocations: 4 kB / 449 MB, free: 36.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.2627, allocations: 10.91 kB / 449.1 MB, free: 36.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.2627, allocations: 11.88 kB / 449.1 MB, free: 36.92 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004116/0.2631, allocations: 241.2 kB / 449.3 MB, free: 36.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.2641, allocations: 1.166 MB / 450.5 MB, free: 36.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003627/0.2645, allocations: 221.8 kB / 450.7 MB, free: 35.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.2647, allocations: 103.8 kB / 450.8 MB, free: 35.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-05/0.2647, allocations: 14.67 kB / 450.8 MB, free: 35.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002765/0.265, allocations: 154.6 kB / 451 MB, free: 35.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.265, allocations: 2.812 kB / 451 MB, free: 35.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005666/0.2656, allocations: 320.8 kB / 451.3 MB, free: 35.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.165e-05/0.2656, allocations: 58.28 kB / 451.3 MB, free: 35.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.2658, allocations: 268.1 kB / 451.6 MB, free: 35.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.2658, allocations: 29.7 kB / 451.6 MB, free: 35.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.496e-05/0.2659, allocations: 218.9 kB / 451.8 MB, free: 35.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.2659, allocations: 59.05 kB / 451.9 MB, free: 35.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.266, allocations: 47.05 kB / 451.9 MB, free: 35.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.731e-05/0.2661, allocations: 337.2 kB / 452.3 MB, free: 34.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.2662, allocations: 98 kB / 452.4 MB, free: 34.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.2664, allocations: 133 kB / 452.5 MB, free: 34.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.2668, allocations: 255.7 kB / 452.7 MB, free: 34.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2668, allocations: 0 / 452.7 MB, free: 34.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004559/0.2673, allocations: 324.2 kB / 453.1 MB, free: 34.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.2673, allocations: 34.72 kB / 453.1 MB, free: 34.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.2673, allocations: 2.969 kB / 453.1 MB, free: 34.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.2673, allocations: 4 kB / 453.1 MB, free: 34.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.2675, allocations: 41.59 kB / 453.1 MB, free: 34.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.433e-06/0.2675, allocations: 2.844 kB / 453.1 MB, free: 34.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.2677, allocations: 27.59 kB / 453.2 MB, free: 34.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.2677, allocations: 12.59 kB / 453.2 MB, free: 34.45 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.0001001/0.2678, allocations: 157.2 kB / 453.3 MB, free: 34.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.63e-05/0.2678, allocations: 27.47 kB / 453.4 MB, free: 34.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004306/0.2683, allocations: 260.6 kB / 453.6 MB, free: 34.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2683, allocations: 7.156 kB / 453.6 MB, free: 34.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2683, allocations: 0 / 453.6 MB, free: 34.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2683, allocations: 3.938 kB / 453.6 MB, free: 34.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005987/0.2689, allocations: 0.6669 MB / 454.3 MB, free: 33.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2689, allocations: 0 / 454.3 MB, free: 33.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.2691, allocations: 35.56 kB / 454.3 MB, free: 33.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2691, allocations: 0 / 454.3 MB, free: 33.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.2691, allocations: 13.91 kB / 454.3 MB, free: 33.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2691, allocations: 0 / 454.3 MB, free: 33.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2691, allocations: 0 / 454.3 MB, free: 33.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005655/0.2697, allocations: 463.8 kB / 454.8 MB, free: 33.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.137e-05/0.2697, allocations: 94.08 kB / 454.9 MB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.082e-05/0.2698, allocations: 10.81 kB / 454.9 MB, free: 33.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.2699, allocations: 12.91 kB / 454.9 MB, free: 33.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.27, allocations: 23.45 kB / 454.9 MB, free: 33.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.27, allocations: 6.797 kB / 454.9 MB, free: 33.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.2701, allocations: 195.4 kB / 455.1 MB, free: 33.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2701, allocations: 0 / 455.1 MB, free: 33.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002771/0.2704, allocations: 61.66 kB / 455.2 MB, free: 33.25 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.0007497/0.2712, allocations: 0.9944 MB / 456.2 MB, free: 32.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004388/0.2716, allocations: 296.5 kB / 456.5 MB, free: 32.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2716, allocations: 0 / 456.5 MB, free: 32.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.2718, allocations: 107 kB / 456.6 MB, free: 32.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.2722, allocations: 26.5 kB / 456.6 MB, free: 32.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.2748, allocations: 2.908 MB / 459.5 MB, free: 30.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001716/0.275, allocations: 0.784 MB / 460.3 MB, free: 29.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.711e-05/0.2751, allocations: 17.28 kB / 460.3 MB, free: 29.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.927e-05/0.2752, allocations: 106.5 kB / 460.4 MB, free: 29.65 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2752, allocations: 0 / 460.4 MB, free: 29.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4859/0.7611, allocations: 4.79 MB / 465.2 MB, free: 29.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/8.898, allocations: 3.094 kB / 465.2 MB, free: 29.01 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)