Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.Blocks.Examples.TestInputSpaceMouse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 171.5 kB / 16.8 MB, free: 4.879 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.275/1.275, allocations: 223.3 MB / 240.8 MB, free: 11.7 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.0007882/0.0007883, allocations: 95.91 kB / 292 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05517/0.05517, allocations: 12.04 MB / 355.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003574, allocations: 16.5 kB / 419.2 MB, free: 53.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0775/0.07788, allocations: 53.34 MB / 472.5 MB, free: 240 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2636/0.3415, allocations: 81.65 MB / 0.5412 GB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.3417, allocations: 81.64 kB / 0.5412 GB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0101/0.3519, allocations: 3.684 MB / 0.5448 GB, free: 12.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3519, allocations: 0 / 0.5448 GB, free: 12.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.175e-05/0.3519, allocations: 4 kB / 0.5448 GB, free: 12.14 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0006845/0.3526, allocations: 0.5188 MB / 0.5454 GB, free: 11.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3527, allocations: 11.97 kB / 0.5454 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.874e-05/0.3527, allocations: 24.66 kB / 0.5454 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.353, allocations: 267.7 kB / 0.5456 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.3531, allocations: 4.375 kB / 0.5456 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.3531, allocations: 8.375 kB / 0.5457 GB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.3534, allocations: 233.8 kB / 0.5459 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3535, allocations: 192 / 0.5459 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.3535, allocations: 11.94 kB / 0.5459 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.3535, allocations: 4 kB / 0.5459 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.3537, allocations: 160.2 kB / 0.546 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006874/0.3544, allocations: 0.5595 MB / 0.5466 GB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.3559, allocations: 0.538 MB / 0.5471 GB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/0.3561, allocations: 155.2 kB / 0.5473 GB, free: 9.469 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.3562, allocations: 0 / 0.5473 GB, free: 9.469 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.3564, allocations: 220.9 kB / 0.5475 GB, free: 9.234 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 1.492e-06/0.3564, allocations: 0 / 0.5475 GB, free: 9.234 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.0007489/0.3572, allocations: 0.5482 MB / 0.548 GB, free: 8.684 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.3573, allocations: 105.1 kB / 0.5481 GB, free: 8.562 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.3575, allocations: 215.8 kB / 0.5483 GB, free: 8.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.3575, allocations: 41.7 kB / 0.5484 GB, free: 8.293 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.3576, allocations: 128.9 kB / 0.5485 GB, free: 8.164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.638e-05/0.3577, allocations: 118.5 kB / 0.5486 GB, free: 8.047 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.062e-05/0.3577, allocations: 16 kB / 0.5486 GB, free: 8.031 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3579, allocations: 338.8 kB / 0.5489 GB, free: 7.691 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.3582, allocations: 193 kB / 0.5491 GB, free: 7.504 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003993/0.3586, allocations: 385.3 kB / 0.5495 GB, free: 7.043 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007004/0.3593, allocations: 0.5955 MB / 0.5501 GB, free: 6.367 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3593, allocations: 4 kB / 0.5501 GB, free: 6.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.000865/0.3602, allocations: 0.6142 MB / 0.5507 GB, free: 5.742 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3602, allocations: 12.12 kB / 0.5507 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.3602, allocations: 4 kB / 0.5507 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.3602, allocations: 8 kB / 0.5507 GB, free: 5.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.3605, allocations: 87.83 kB / 0.5508 GB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.3606, allocations: 19.88 kB / 0.5508 GB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.3607, allocations: 43.58 kB / 0.5508 GB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.3608, allocations: 24 kB / 0.5509 GB, free: 5.547 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.spaceMouseInput.buttons[16],spaceMouseInput.buttons[16],$PRE.spaceMouseInput.buttons[15],spaceMouseInput.buttons[15],$PRE.spaceMouseInput.buttons[14],spaceMouseInput.buttons[14],$PRE.spaceMouseInput.buttons[13],spaceMouseInput.buttons[13],$PRE.spaceMouseInput.buttons[12],spaceMouseInput.buttons[12],$PRE.spaceMouseInput.buttons[11],spaceMouseInput.buttons[11],$PRE.spaceMouseInput.buttons[10],spaceMouseInput.buttons[10],$PRE.spaceMouseInput.buttons[9],spaceMouseInput.buttons[9],$PRE.spaceMouseInput.buttons[8],spaceMouseInput.buttons[8],$PRE.spaceMouseInput.buttons[7],spaceMouseInput.buttons[7],$PRE.spaceMouseInput.buttons[6],spaceMouseInput.buttons[6],$PRE.spaceMouseInput.buttons[5],spaceMouseInput.buttons[5],$PRE.spaceMouseInput.buttons[4],spaceMouseInput.buttons[4],$PRE.spaceMouseInput.buttons[3],spaceMouseInput.buttons[3],$PRE.spaceMouseInput.buttons[2],spaceMouseInput.buttons[2],$PRE.spaceMouseInput.buttons[1],spaceMouseInput.buttons[1],$whenCondition1,$PRE.spaceMouseInput.AxesRaw[6],spaceMouseInput.AxesRaw[6],$PRE.spaceMouseInput.AxesRaw[5],spaceMouseInput.AxesRaw[5],$PRE.spaceMouseInput.AxesRaw[4],spaceMouseInput.AxesRaw[4],$PRE.spaceMouseInput.AxesRaw[3],spaceMouseInput.AxesRaw[3],$PRE.spaceMouseInput.AxesRaw[2],spaceMouseInput.AxesRaw[2],$PRE.spaceMouseInput.AxesRaw[1],spaceMouseInput.AxesRaw[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002254/0.361, allocations: 229.3 kB / 0.5511 GB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.3611, allocations: 27.64 kB / 0.5511 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.16e-05/0.3611, allocations: 34.64 kB / 0.5511 GB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3612, allocations: 4 kB / 0.5511 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.3612, allocations: 4 kB / 0.5511 GB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.3612, allocations: 3.938 kB / 0.5511 GB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002923/0.3615, allocations: 309.3 kB / 0.5514 GB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3615, allocations: 0 / 0.5514 GB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.3617, allocations: 31.91 kB / 0.5515 GB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.3617, allocations: 0 / 0.5515 GB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.3617, allocations: 8 kB / 0.5515 GB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.3617, allocations: 4 kB / 0.5515 GB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3617, allocations: 0 / 0.5515 GB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007587/0.3625, allocations: 0.6328 MB / 0.5521 GB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.991e-05/0.3626, allocations: 112.6 kB / 0.5522 GB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.3626, allocations: 11.98 kB / 0.5522 GB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.405e-05/0.3627, allocations: 11.98 kB / 0.5522 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.3627, allocations: 7.938 kB / 0.5522 GB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.3628, allocations: 7.984 kB / 0.5522 GB, free: 4.027 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001308/0.3629, allocations: 156.2 kB / 0.5524 GB, free: 3.875 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3629, allocations: 0 / 0.5524 GB, free: 3.875 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003618/0.3633, allocations: 75.94 kB / 0.5525 GB, free: 3.801 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 7 (spaceMouseInput.firstOrder[1].y,spaceMouseInput.firstOrder[2].y,spaceMouseInput.firstOrder[3].y,spaceMouseInput.firstOrder[4].y,spaceMouseInput.firstOrder[5].y,spaceMouseInput.firstOrder[6].y,synchronizeRealtime.dummyState) * Number of discrete variables: 23 ($whenCondition1,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],spaceMouseInput.AxesRaw[1],spaceMouseInput.AxesRaw[2],spaceMouseInput.AxesRaw[3],spaceMouseInput.AxesRaw[4],spaceMouseInput.AxesRaw[5],spaceMouseInput.AxesRaw[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005773/0.3639, allocations: 286.7 kB / 0.5527 GB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006075/0.3645, allocations: 450.3 kB / 0.5532 GB, free: 3.141 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3645, allocations: 0 / 0.5532 GB, free: 3.141 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.3647, allocations: 192.6 kB / 0.5534 GB, free: 2.949 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.365, allocations: 40.22 kB / 0.5534 GB, free: 2.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001772/0.3668, allocations: 0.9153 MB / 0.5543 GB, free: 1.973 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.3672, allocations: 0.7877 MB / 0.5551 GB, free: 1.16 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000195/0.3674, allocations: 78.22 kB / 0.5551 GB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.05e-05/0.3674, allocations: 19.44 kB / 0.5552 GB, free: 1.066 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3674, allocations: 3.938 kB / 0.5552 GB, free: 1.062 MB / 362.7 MB Notification: Performance of Templates: time 0.005923/0.3734, allocations: 2.826 MB / 0.5579 GB, free: 14.26 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputSpaceMouse.pipe 2>&1)