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.001203/0.001203, allocations: 116.3 kB / 17.13 MB, free: 6.012 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.001121/0.001121, allocations: 191 kB / 18.06 MB, free: 5.09 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.25/1.25, allocations: 222.9 MB / 241.7 MB, free: 15.07 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.05264/0.05264, allocations: 12.05 MB / 304 MB, free: 3.066 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 59.91 kB / 420.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08571/0.08683, 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.003788/0.09066, allocations: 2.281 MB / 475.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002805/0.09097, allocations: 127.5 kB / 475.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.241e-05/0.09106, allocations: 4 kB / 475.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.09124, allocations: 35.78 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.222e-05/0.09136, allocations: 7.938 kB / 475.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.09157, allocations: 51.77 kB / 475.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.09173, allocations: 75.81 kB / 475.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.09186, allocations: 28.19 kB / 475.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.49e-05/0.09192, allocations: 31.8 kB / 475.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.09205, allocations: 43.83 kB / 475.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.819e-05/0.09208, allocations: 4 kB / 475.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.885e-05/0.09217, allocations: 35.98 kB / 475.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.124e-05/0.09225, allocations: 47.84 kB / 475.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.451e-05/0.09233, allocations: 63.42 kB / 475.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.09257, allocations: 179.3 kB / 476 MB, free: 9.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.09258, allocations: 4 kB / 476 MB, free: 9.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09259, allocations: 4 kB / 476.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.0926, allocations: 0 / 476.1 MB, free: 9.809 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.0006826/0.09329, allocations: 0.5099 MB / 476.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.09334, allocations: 23.91 kB / 476.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.09341, allocations: 20.66 kB / 476.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.09368, allocations: 216 kB / 476.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.0937, allocations: 8.375 kB / 476.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.09372, allocations: 4.375 kB / 476.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006829/0.09441, allocations: 0.5654 MB / 477.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.09443, allocations: 4.188 kB / 477.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.09446, allocations: 3.938 kB / 477.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.09447, allocations: 0 / 477.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.09465, allocations: 140.3 kB / 477.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000406/0.09507, allocations: 333.8 kB / 477.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003916/0.09547, allocations: 355 kB / 478.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.09565, allocations: 166.6 kB / 478.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.09568, allocations: 0 / 478.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.09572, allocations: 42.5 kB / 478.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.232e-06/0.09572, allocations: 4 kB / 478.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006526/0.09638, allocations: 0.551 MB / 479 MB, free: 6.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.855e-05/0.09647, allocations: 137.4 kB / 479.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.09661, allocations: 160.7 kB / 479.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.09664, allocations: 29.7 kB / 479.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.44e-05/0.0967, allocations: 101 kB / 479.4 MB, free: 6.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.09673, allocations: 27.88 kB / 479.4 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.235e-05/0.09683, allocations: 90.12 kB / 479.5 MB, free: 6.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.09695, allocations: 334.8 kB / 479.8 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.09707, allocations: 80.81 kB / 479.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.09738, allocations: 376 kB / 480.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005005/0.09788, allocations: 0.5744 MB / 480.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.0979, allocations: 7.938 kB / 480.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006001/0.0985, allocations: 489.1 kB / 481.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.249e-05/0.09857, allocations: 65.28 kB / 481.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.0986, allocations: 20.03 kB / 481.4 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.09863, allocations: 12 kB / 481.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.09886, allocations: 95.83 kB / 481.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.09888, allocations: 15.94 kB / 481.5 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.09905, allocations: 39.83 kB / 481.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.09908, allocations: 28 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.0002309/0.09932, allocations: 264.9 kB / 481.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003413/0.09967, allocations: 311.1 kB / 482.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.436e-05/0.09973, allocations: 18.8 kB / 482.2 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.09974, allocations: 4 kB / 482.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.09976, allocations: 3.938 kB / 482.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.09977, allocations: 0 / 482.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.09999, allocations: 233.2 kB / 482.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.1, allocations: 4 kB / 482.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.585e-05/0.1001, allocations: 12 kB / 482.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1001, allocations: 0 / 482.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.1001, allocations: 8 kB / 482.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1001, allocations: 0 / 482.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.1001, allocations: 7.938 kB / 482.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004926/0.1006, allocations: 0.506 MB / 483 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.601e-05/0.1007, allocations: 104.8 kB / 483.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.1007, allocations: 4 kB / 483.1 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.308e-05/0.1008, allocations: 8 kB / 483.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.248e-05/0.1008, allocations: 0 / 483.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.1008, allocations: 4 kB / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.473e-05/0.1009, allocations: 113.8 kB / 483.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.675e-06/0.1009, allocations: 0 / 483.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003864/0.1013, allocations: 51.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.0005734/0.1019, allocations: 307.6 kB / 483.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00047/0.1024, allocations: 423.9 kB / 484 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1024, allocations: 0 / 484 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.538e-05/0.1025, allocations: 122.8 kB / 484.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.103, allocations: 286.4 kB / 484.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006669/0.1037, allocations: 0.4918 MB / 484.8 MB, free: 216 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.104, allocations: 0.7791 MB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.099e-05/0.1041, allocations: 19.44 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1041, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of Templates: time 0.004592/0.1087, allocations: 2.777 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)