Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001093, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 222.9 MB / 240.3 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009478/0.0009476, allocations: 106.2 kB / 290.6 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05034/0.05034, allocations: 12.02 MB / 352.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009289/0.0009289, allocations: 49.02 kB / 415.8 MB, free: 53.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07658/0.07753, allocations: 52.33 MB / 468.2 MB, free: 1.559 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.003345/0.08091, allocations: 2.278 MB / 470.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.000243/0.08118, allocations: 123.6 kB / 470.6 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.832e-05/0.08126, allocations: 4 kB / 470.6 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.08147, allocations: 27.91 kB / 470.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.674e-05/0.08155, allocations: 3.938 kB / 470.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.08174, allocations: 39.89 kB / 470.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.972e-05/0.08184, allocations: 51.86 kB / 470.7 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.08196, allocations: 43.88 kB / 470.7 MB, free: 14.97 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.223e-05/0.08201, allocations: 23.86 kB / 470.8 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.672e-05/0.08207, allocations: 27.8 kB / 470.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.0821, allocations: 4 kB / 470.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.299e-05/0.08217, allocations: 23.98 kB / 470.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.661e-05/0.08226, allocations: 31.91 kB / 470.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.344e-05/0.08234, allocations: 51.61 kB / 470.9 MB, free: 14.81 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001892/0.08254, allocations: 127.5 kB / 471 MB, free: 14.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.08255, allocations: 0 / 471 MB, free: 14.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.08256, allocations: 0 / 471 MB, free: 14.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.08257, allocations: 4 kB / 471 MB, free: 14.68 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005795/0.08315, allocations: 482.7 kB / 471.5 MB, free: 14.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.0832, allocations: 8.031 kB / 471.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.142e-05/0.08326, allocations: 16.75 kB / 471.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.08351, allocations: 196.1 kB / 471.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.08353, allocations: 16.31 kB / 471.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.08356, allocations: 4.375 kB / 471.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005372/0.0841, allocations: 390.5 kB / 472.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.08412, allocations: 192 / 472.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.08414, allocations: 7.938 kB / 472.1 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.08415, allocations: 0 / 472.1 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.08427, allocations: 79.91 kB / 472.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004081/0.08468, allocations: 321.5 kB / 472.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.08494, allocations: 181.4 kB / 472.7 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.08511, allocations: 141.8 kB / 472.8 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.08515, allocations: 15.97 kB / 472.8 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.08518, allocations: 30.56 kB / 472.9 MB, free: 12.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.342e-06/0.08519, allocations: 0 / 472.9 MB, free: 12.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.0005339/0.08573, allocations: 381.4 kB / 473.2 MB, free: 12.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.179e-05/0.08582, allocations: 140.5 kB / 473.4 MB, free: 12.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.08594, allocations: 145.7 kB / 473.5 MB, free: 11.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.08596, allocations: 25.7 kB / 473.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.533e-05/0.08603, allocations: 104.6 kB / 473.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.08606, allocations: 23.89 kB / 473.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.829e-05/0.08613, allocations: 53.98 kB / 473.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.08625, allocations: 334.8 kB / 474.1 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.886e-05/0.08634, allocations: 48.53 kB / 474.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.08656, allocations: 248.5 kB / 474.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004014/0.08697, allocations: 429.8 kB / 474.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.08698, allocations: 96 / 474.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004567/0.08744, allocations: 364.3 kB / 475.1 MB, free: 10.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.933e-05/0.08751, allocations: 59.41 kB / 475.2 MB, free: 9.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.08753, allocations: 8 kB / 475.2 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.08756, allocations: 8.75 kB / 475.2 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.08773, allocations: 67.84 kB / 475.3 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.08775, allocations: 12 kB / 475.3 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.08788, allocations: 31.69 kB / 475.3 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.08791, allocations: 16 kB / 475.3 MB, free: 9.848 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 17 (synchronizeRealtime.initialized,spaceMouseInput.buttons[16],spaceMouseInput.buttons[15],spaceMouseInput.buttons[14],spaceMouseInput.buttons[13],spaceMouseInput.buttons[12],spaceMouseInput.buttons[11],spaceMouseInput.buttons[10],spaceMouseInput.buttons[9],spaceMouseInput.buttons[8],spaceMouseInput.buttons[7],spaceMouseInput.buttons[6],spaceMouseInput.buttons[5],spaceMouseInput.buttons[4],spaceMouseInput.buttons[3],spaceMouseInput.buttons[2],spaceMouseInput.buttons[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * 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.0001879/0.0881, allocations: 227.2 kB / 475.5 MB, free: 9.605 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.08833, allocations: 212.1 kB / 475.7 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.423e-05/0.08839, allocations: 21.94 kB / 475.8 MB, free: 9.371 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.08841, allocations: 4 kB / 475.8 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.08841, allocations: 3.938 kB / 475.8 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.08842, allocations: 4 kB / 475.8 MB, free: 9.359 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.08861, allocations: 209.4 kB / 476 MB, free: 9.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.08863, allocations: 3.984 kB / 476 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.203e-05/0.08867, allocations: 12 kB / 476 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.08868, allocations: 0 / 476 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.0887, allocations: 4 kB / 476 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.08871, allocations: 0 / 476 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.08871, allocations: 0 / 476 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007293/0.08945, allocations: 1.068 MB / 477.1 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.08951, allocations: 96.84 kB / 477.2 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.08954, allocations: 4 kB / 477.2 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.368e-05/0.0896, allocations: 8.078 kB / 477.2 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.08963, allocations: 7.984 kB / 477.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.08965, allocations: 4 kB / 477.2 MB, free: 7.812 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.661e-05/0.08972, allocations: 113.8 kB / 477.3 MB, free: 7.703 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08972, allocations: 0 / 477.3 MB, free: 7.703 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004175/0.09015, allocations: 36 kB / 477.3 MB, free: 7.668 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 17 (synchronizeRealtime.initialized,spaceMouseInput.buttons[1],spaceMouseInput.buttons[2],spaceMouseInput.buttons[3],spaceMouseInput.buttons[4],spaceMouseInput.buttons[5],spaceMouseInput.buttons[6],spaceMouseInput.buttons[7],spaceMouseInput.buttons[8],spaceMouseInput.buttons[9],spaceMouseInput.buttons[10],spaceMouseInput.buttons[11],spaceMouseInput.buttons[12],spaceMouseInput.buttons[13],spaceMouseInput.buttons[14],spaceMouseInput.buttons[15],spaceMouseInput.buttons[16]) * 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.0004931/0.09065, allocations: 274.4 kB / 477.6 MB, free: 7.469 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003442/0.091, allocations: 312.3 kB / 477.9 MB, free: 7.141 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.09101, allocations: 0 / 477.9 MB, free: 7.141 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.817e-05/0.0911, allocations: 126.8 kB / 478 MB, free: 6.992 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.09152, allocations: 181.9 kB / 478.2 MB, free: 6.809 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007498/0.09228, allocations: 0.6394 MB / 478.8 MB, free: 6.125 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.0926, allocations: 0.752 MB / 479.6 MB, free: 5.344 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.542e-05/0.09267, allocations: 25.55 kB / 479.6 MB, free: 5.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.898e-05/0.0927, allocations: 19.42 kB / 479.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of SimCode: time 2.8e-07/0.09271, allocations: 0 / 479.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of Templates: time 0.004527/0.09724, allocations: 1.847 MB / 481.5 MB, free: 3.465 MB / 314.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe 2>&1)