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.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.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.001487/0.001487, allocations: 179.8 kB / 15.8 MB, free: 6.34 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.279/1.279, allocations: 223.2 MB / 239.7 MB, free: 1.766 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008656/0.0008654, allocations: 98.83 kB / 290.9 MB, free: 13.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.05397/0.05397, allocations: 12.05 MB / 354 MB, free: 15.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.0003129, allocations: 8.906 kB / 417.9 MB, free: 87.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08402/0.08435, allocations: 53.37 MB / 471.2 MB, free: 37.45 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.299/0.3834, allocations: 82.43 MB / 0.5407 GB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.3836, allocations: 75.91 kB / 0.5408 GB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01113/0.3947, allocations: 4.489 MB / 0.5452 GB, free: 30.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3948, allocations: 0 / 0.5452 GB, free: 30.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.88e-05/0.3948, allocations: 11.75 kB / 0.5452 GB, free: 30.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0007246/0.3955, allocations: 0.5817 MB / 0.5457 GB, free: 30.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.3956, allocations: 7.719 kB / 0.5457 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.576e-05/0.3957, allocations: 30.91 kB / 0.5458 GB, free: 30.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/0.396, allocations: 310.6 kB / 0.5461 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.3961, allocations: 15.5 kB / 0.5461 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.331e-05/0.3961, allocations: 18.44 kB / 0.5461 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004109/0.3965, allocations: 314.5 kB / 0.5464 GB, free: 29.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3966, allocations: 0 / 0.5464 GB, free: 29.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/0.3966, allocations: 7.375 kB / 0.5464 GB, free: 29.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3966, allocations: 3.406 kB / 0.5464 GB, free: 29.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/0.3969, allocations: 214.5 kB / 0.5466 GB, free: 29.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008684/0.3978, allocations: 0.7431 MB / 0.5473 GB, free: 29.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.3992, allocations: 0.5536 MB / 0.5479 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-05/0.3992, allocations: 4 kB / 0.5479 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.3995, allocations: 242.3 kB / 0.5481 GB, free: 29.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 1.714e-06/0.3995, allocations: 3.906 kB / 0.5481 GB, free: 29.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.0007164/0.4002, allocations: 0.7455 MB / 0.5488 GB, free: 29.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.4003, allocations: 102.3 kB / 0.5489 GB, free: 29.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.4005, allocations: 213 kB / 0.5491 GB, free: 28.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.4005, allocations: 48.22 kB / 0.5492 GB, free: 28.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/0.4006, allocations: 160.5 kB / 0.5493 GB, free: 28.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.748e-05/0.4007, allocations: 142.3 kB / 0.5495 GB, free: 28.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.788e-05/0.4007, allocations: 7.312 kB / 0.5495 GB, free: 28.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.182e-05/0.4008, allocations: 354.2 kB / 0.5498 GB, free: 28.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.401, allocations: 198.8 kB / 0.55 GB, free: 28.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.4013, allocations: 375.5 kB / 0.5504 GB, free: 28.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.4017, allocations: 284.9 kB / 0.5506 GB, free: 28.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4017, allocations: 0 / 0.5506 GB, free: 28.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008138/0.4025, allocations: 0.6462 MB / 0.5513 GB, free: 28.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.4025, allocations: 7.75 kB / 0.5513 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.4025, allocations: 10.06 kB / 0.5513 GB, free: 28.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.4026, allocations: 11.59 kB / 0.5513 GB, free: 28.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.4029, allocations: 84.22 kB / 0.5514 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/0.4029, allocations: 16.7 kB / 0.5514 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.4031, allocations: 39.59 kB / 0.5514 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.4031, allocations: 25.62 kB / 0.5515 GB, free: 28.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (69): * Single equations (assignments): 68 * 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.0002299/0.4033, allocations: 247.2 kB / 0.5517 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.334e-05/0.4034, allocations: 28.77 kB / 0.5517 GB, free: 27.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.846e-05/0.4035, allocations: 32.58 kB / 0.5518 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.4035, allocations: 7.953 kB / 0.5518 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4035, allocations: 0 / 0.5518 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4035, allocations: 6.109 kB / 0.5518 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.4038, allocations: 353.7 kB / 0.5521 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.4038, allocations: 3.781 kB / 0.5521 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.404, allocations: 28.33 kB / 0.5521 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.404, allocations: 3.781 kB / 0.5521 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.4041, allocations: 8.234 kB / 0.5522 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.4041, allocations: 1.844 kB / 0.5522 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4041, allocations: 3.953 kB / 0.5522 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006882/0.4048, allocations: 0.6758 MB / 0.5528 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/0.4048, allocations: 109 kB / 0.5529 GB, free: 27.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.4049, allocations: 13.52 kB / 0.5529 GB, free: 27.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.576e-05/0.405, allocations: 13.81 kB / 0.5529 GB, free: 27.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.164e-05/0.405, allocations: 15.64 kB / 0.553 GB, free: 27.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.405, allocations: 12.2 kB / 0.553 GB, free: 27.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001239/0.4052, allocations: 176.3 kB / 0.5531 GB, free: 27.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4052, allocations: 0 / 0.5531 GB, free: 27.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003478/0.4055, allocations: 92.67 kB / 0.5532 GB, free: 27.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (spaceMouseInput.firstOrder[1].y,spaceMouseInput.firstOrder[2].y,spaceMouseInput.firstOrder[3].y,spaceMouseInput.firstOrder[4].y,spaceMouseInput.firstOrder[5].y,spaceMouseInput.firstOrder[6].y) * 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 (17): * Single equations (assignments): 15 * 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.000485/0.406, allocations: 218.2 kB / 0.5534 GB, free: 27.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005295/0.4066, allocations: 483.3 kB / 0.5539 GB, free: 27.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4066, allocations: 1.125 kB / 0.5539 GB, free: 27.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.4067, allocations: 199 kB / 0.5541 GB, free: 27.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.407, allocations: 41.77 kB / 0.5541 GB, free: 27.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009959/0.408, allocations: 0.8193 MB / 0.5549 GB, free: 26.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.4084, allocations: 0.831 MB / 0.5557 GB, free: 26.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001779/0.4086, allocations: 77.92 kB / 0.5558 GB, free: 26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.326e-05/0.4087, allocations: 23.06 kB / 0.5558 GB, free: 26 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.4087, allocations: 0 / 0.5558 GB, free: 26 MB / 378.7 MB Notification: Performance of Templates: time 0.005561/0.4142, allocations: 2.779 MB / 0.5586 GB, free: 25.75 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)