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.001102/0.001102, allocations: 123.9 kB / 17.14 MB, free: 5.914 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.001228/0.001228, allocations: 185.1 kB / 18.06 MB, free: 5 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.276/1.276, allocations: 222.9 MB / 241.8 MB, free: 15.08 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.05406/0.05406, allocations: 12.05 MB / 304 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 59.91 kB / 420.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08077/0.0819, allocations: 52.31 MB / 473 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003727/0.08566, allocations: 2.282 MB / 475.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002764/0.08596, allocations: 123.5 kB / 475.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.858e-05/0.08605, allocations: 4 kB / 475.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.08622, allocations: 39.77 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.853e-05/0.08633, allocations: 3.938 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.08655, allocations: 54.83 kB / 475.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.08669, allocations: 71.77 kB / 475.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.08684, allocations: 32.19 kB / 475.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.489e-05/0.0869, allocations: 27.84 kB / 475.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.08702, allocations: 47.78 kB / 475.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.819e-05/0.08705, allocations: 8 kB / 475.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.382e-05/0.08714, allocations: 35.97 kB / 475.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.08721, allocations: 43.84 kB / 475.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.213e-05/0.08729, allocations: 67.42 kB / 475.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.08754, allocations: 183.3 kB / 476 MB, free: 9.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.08755, allocations: 0 / 476 MB, free: 9.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.08756, allocations: 0 / 476 MB, free: 9.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.391e-06/0.08757, allocations: 0 / 476 MB, free: 9.812 MB / 350.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.0006359/0.08821, allocations: 0.5139 MB / 476.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.08825, allocations: 15.97 kB / 476.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.949e-05/0.08831, allocations: 24.66 kB / 476.6 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.08859, allocations: 218.3 kB / 476.8 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.08861, allocations: 8.375 kB / 476.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.08864, allocations: 4.375 kB / 476.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006632/0.08931, allocations: 0.5576 MB / 477.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.08933, allocations: 192 / 477.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.08935, allocations: 11.94 kB / 477.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.08936, allocations: 4 kB / 477.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.08954, allocations: 136.4 kB / 477.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000403/0.08996, allocations: 341.7 kB / 477.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003698/0.09034, allocations: 343 kB / 478.2 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.09051, allocations: 174.6 kB / 478.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.09054, allocations: 4 kB / 478.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.09058, allocations: 34.5 kB / 478.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.493e-06/0.09059, allocations: 0 / 478.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006677/0.09126, allocations: 0.5588 MB / 479 MB, free: 6.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.831e-05/0.09135, allocations: 137.4 kB / 479.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.09148, allocations: 160.7 kB / 479.3 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.09151, allocations: 25.7 kB / 479.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.439e-05/0.09157, allocations: 101 kB / 479.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.09161, allocations: 35.86 kB / 479.4 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.453e-05/0.09171, allocations: 86.12 kB / 479.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.09182, allocations: 342.8 kB / 479.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.09193, allocations: 72.81 kB / 479.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.09222, allocations: 380.1 kB / 480.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005737/0.0928, allocations: 0.5783 MB / 480.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.09282, allocations: 7.938 kB / 480.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006165/0.09344, allocations: 488.2 kB / 481.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.0935, allocations: 64.41 kB / 481.4 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.09352, allocations: 12 kB / 481.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.09354, allocations: 16 kB / 481.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.09377, allocations: 95.78 kB / 481.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.813e-05/0.0938, allocations: 19.92 kB / 481.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.09401, allocations: 39.69 kB / 481.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.09405, allocations: 24 kB / 481.6 MB, free: 3.586 MB / 350.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.0001951/0.09425, allocations: 264.9 kB / 481.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003192/0.09458, allocations: 311.3 kB / 482.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.004e-05/0.09464, allocations: 22.8 kB / 482.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.09465, allocations: 3.984 kB / 482.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.09466, allocations: 3.938 kB / 482.2 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.09466, allocations: 0 / 482.2 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.09488, allocations: 229.2 kB / 482.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.0949, allocations: 3.984 kB / 482.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.686e-05/0.09498, allocations: 16 kB / 482.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.09498, allocations: 0 / 482.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.095, allocations: 4 kB / 482.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.09501, allocations: 0 / 482.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.09501, allocations: 0 / 482.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004772/0.09549, allocations: 0.5137 MB / 483 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.09555, allocations: 100.8 kB / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.09558, allocations: 7.984 kB / 483.1 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.24e-05/0.09566, allocations: 4 kB / 483.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.765e-05/0.09569, allocations: 4 kB / 483.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.09571, allocations: 4 kB / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.687e-05/0.09579, allocations: 115.2 kB / 483.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.0958, allocations: 0 / 483.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003837/0.09619, allocations: 47.94 kB / 483.2 MB, free: 1.828 MB / 350.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.0005496/0.09674, allocations: 315.2 kB / 483.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004632/0.09721, allocations: 420.2 kB / 484 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.09723, allocations: 0 / 484 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.486e-05/0.09731, allocations: 126.8 kB / 484.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.09784, allocations: 289.6 kB / 484.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006294/0.09847, allocations: 0.4883 MB / 484.9 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.09881, allocations: 0.7752 MB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.09885, allocations: 23.44 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09886, allocations: 0 / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of Templates: time 0.004493/0.1034, allocations: 2.781 MB / 488.4 MB, free: 12.6 MB / 366.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)