Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.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/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-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: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 104 kB / 16.98 MB, free: 6.176 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.001205/0.001205, allocations: 191.6 kB / 17.91 MB, free: 5.277 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.354/1.354, allocations: 222.9 MB / 241.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05606/0.05606, allocations: 12.04 MB / 303.8 MB, free: 3.195 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.91 kB / 367.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1971/0.1984, allocations: 52.33 MB / 419.5 MB, free: 21.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003019/0.2015, allocations: 2.28 MB / 421.7 MB, free: 18.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002177/0.2017, allocations: 123.5 kB / 421.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.668e-05/0.2018, allocations: 3.938 kB / 421.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.2019, allocations: 27.86 kB / 421.9 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.038e-05/0.202, allocations: 23.73 kB / 421.9 MB, free: 18.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/0.2022, allocations: 43.83 kB / 422 MB, free: 18.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.2024, allocations: 75.77 kB / 422 MB, free: 18.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.2025, allocations: 20.23 kB / 422.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.065e-05/0.2025, allocations: 27.86 kB / 422.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.961e-05/0.2026, allocations: 47.81 kB / 422.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.2026, allocations: 8 kB / 422.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.948e-05/0.2027, allocations: 32 kB / 422.2 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.778e-05/0.2028, allocations: 43.84 kB / 422.2 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.943e-05/0.2029, allocations: 67.47 kB / 422.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.203, allocations: 179.3 kB / 422.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.203, allocations: 0 / 422.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2031, allocations: 0 / 422.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.2031, allocations: 0 / 422.5 MB, free: 18.27 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0005013/0.2036, allocations: 0.5083 MB / 423 MB, free: 17.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.936e-05/0.2036, allocations: 12.03 kB / 423 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.568e-05/0.2037, allocations: 24.64 kB / 423 MB, free: 17.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.2038, allocations: 212 kB / 423.2 MB, free: 17.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.789e-06/0.2039, allocations: 8.375 kB / 423.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.2039, allocations: 4.375 kB / 423.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.2044, allocations: 0.5618 MB / 423.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.537e-06/0.2044, allocations: 4.125 kB / 423.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.2044, allocations: 11.88 kB / 423.8 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.2044, allocations: 4 kB / 423.8 MB, free: 16.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.2046, allocations: 140.3 kB / 423.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002899/0.2049, allocations: 337.8 kB / 424.3 MB, free: 16.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.2052, allocations: 339 kB / 424.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.2053, allocations: 170.6 kB / 424.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2053, allocations: 4 kB / 424.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.306e-05/0.2054, allocations: 34.56 kB / 424.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.392e-06/0.2054, allocations: 4 kB / 424.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.0005626/0.2059, allocations: 0.5549 MB / 425.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.206, allocations: 137.4 kB / 425.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.222e-05/0.2061, allocations: 156.4 kB / 425.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.2061, allocations: 29.7 kB / 425.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.2061, allocations: 105 kB / 425.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.2062, allocations: 31.88 kB / 425.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/0.2062, allocations: 86.12 kB / 425.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.633e-05/0.2063, allocations: 342.8 kB / 426.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.891e-05/0.2064, allocations: 72.83 kB / 426.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.2066, allocations: 384 kB / 426.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/0.2069, allocations: 0.5746 MB / 427.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2069, allocations: 4 kB / 427.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000486/0.2074, allocations: 497 kB / 427.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.2074, allocations: 69.58 kB / 427.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.2074, allocations: 12.09 kB / 427.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.2074, allocations: 16 kB / 427.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.2076, allocations: 87.84 kB / 427.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.2077, allocations: 19.92 kB / 427.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.2078, allocations: 39.69 kB / 428 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.2078, allocations: 28 kB / 428 MB, free: 12.06 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 33 (synchronizeRealtime.initialized,joystickInput.buttons[32],joystickInput.buttons[31],joystickInput.buttons[30],joystickInput.buttons[29],joystickInput.buttons[28],joystickInput.buttons[27],joystickInput.buttons[26],joystickInput.buttons[25],joystickInput.buttons[24],joystickInput.buttons[23],joystickInput.buttons[22],joystickInput.buttons[21],joystickInput.buttons[20],joystickInput.buttons[19],joystickInput.buttons[18],joystickInput.buttons[17],joystickInput.buttons[16],joystickInput.buttons[15],joystickInput.buttons[14],joystickInput.buttons[13],joystickInput.buttons[12],joystickInput.buttons[11],joystickInput.buttons[10],joystickInput.buttons[9],joystickInput.buttons[8],joystickInput.buttons[7],joystickInput.buttons[6],joystickInput.buttons[5],joystickInput.buttons[4],joystickInput.buttons[3],joystickInput.buttons[2],joystickInput.buttons[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 2 * 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.0001554/0.208, allocations: 264.8 kB / 428.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/0.2083, allocations: 307.2 kB / 428.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.338e-05/0.2083, allocations: 22.62 kB / 428.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2083, allocations: 0 / 428.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2083, allocations: 0 / 428.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2084, allocations: 4 kB / 428.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.2085, allocations: 225.3 kB / 428.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.2085, allocations: 7.938 kB / 428.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.325e-05/0.2086, allocations: 20.11 kB / 428.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2086, allocations: 0 / 428.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.2086, allocations: 11.94 kB / 428.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2086, allocations: 0 / 428.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2086, allocations: 0 / 428.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.209, allocations: 0.506 MB / 429.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.209, allocations: 100.8 kB / 429.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.542e-05/0.2091, allocations: 4 kB / 429.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.391e-05/0.2092, allocations: 8 kB / 429.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.681e-05/0.2092, allocations: 0 / 429.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-06/0.2092, allocations: 7.984 kB / 429.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.696e-05/0.2093, allocations: 111.3 kB / 429.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2093, allocations: 0 / 429.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.2096, allocations: 43.98 kB / 429.6 MB, free: 10.32 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 33 (synchronizeRealtime.initialized,joystickInput.buttons[1],joystickInput.buttons[2],joystickInput.buttons[3],joystickInput.buttons[4],joystickInput.buttons[5],joystickInput.buttons[6],joystickInput.buttons[7],joystickInput.buttons[8],joystickInput.buttons[9],joystickInput.buttons[10],joystickInput.buttons[11],joystickInput.buttons[12],joystickInput.buttons[13],joystickInput.buttons[14],joystickInput.buttons[15],joystickInput.buttons[16],joystickInput.buttons[17],joystickInput.buttons[18],joystickInput.buttons[19],joystickInput.buttons[20],joystickInput.buttons[21],joystickInput.buttons[22],joystickInput.buttons[23],joystickInput.buttons[24],joystickInput.buttons[25],joystickInput.buttons[26],joystickInput.buttons[27],joystickInput.buttons[28],joystickInput.buttons[29],joystickInput.buttons[30],joystickInput.buttons[31],joystickInput.buttons[32]) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * When equations: 0 * 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.0005299/0.2102, allocations: 325.7 kB / 429.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004153/0.2106, allocations: 452 kB / 430.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2106, allocations: 0 / 430.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.185e-05/0.2107, allocations: 130.7 kB / 430.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004663/0.2111, allocations: 294.2 kB / 430.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005155/0.2117, allocations: 496.2 kB / 431.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/0.2118, allocations: 0.7717 MB / 432.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.455e-05/0.2119, allocations: 19.44 kB / 432.1 MB, free: 7.836 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2119, allocations: 0 / 432.1 MB, free: 7.836 MB / 302.1 MB Notification: Performance of Templates: time 0.00366/0.2155, allocations: 2.764 MB / 434.8 MB, free: 5.066 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)