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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.001341, allocations: 103.1 kB / 16.31 MB, free: 5.879 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.001321/0.001321, allocations: 194.5 kB / 17.24 MB, free: 5.539 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.313/1.313, allocations: 222.9 MB / 240.9 MB, free: 15.19 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.05386/0.05386, allocations: 12.05 MB / 303.1 MB, free: 3.184 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 366.5 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2531, allocations: 52.32 MB / 418.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.00376/0.2569, allocations: 2.232 MB / 421 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002418/0.2572, allocations: 132.5 kB / 421.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.241e-05/0.2572, allocations: 0 / 421.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.2574, allocations: 23.8 kB / 421.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.977e-05/0.2575, allocations: 7.469 kB / 421.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000198/0.2577, allocations: 54.83 kB / 421.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000128/0.2579, allocations: 71.77 kB / 421.3 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.258, allocations: 23.92 kB / 421.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.729e-05/0.2581, allocations: 31.86 kB / 421.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.036e-05/0.2581, allocations: 23.84 kB / 421.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.2582, allocations: 8 kB / 421.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.627e-05/0.2582, allocations: 23.98 kB / 421.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.249e-05/0.2583, allocations: 33.48 kB / 421.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.77e-05/0.2584, allocations: 51.61 kB / 421.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001871/0.2586, allocations: 127.5 kB / 421.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2586, allocations: 4 kB / 421.6 MB, free: 18.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2586, allocations: 8 kB / 421.6 MB, free: 18.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.2586, allocations: 0 / 421.6 MB, free: 18.25 MB / 302.1 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.0004347/0.259, allocations: 476.4 kB / 422.1 MB, free: 17.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.2591, allocations: 8.031 kB / 422.1 MB, free: 17.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.944e-05/0.2592, allocations: 16.75 kB / 422.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.2594, allocations: 208 kB / 422.3 MB, free: 17.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.2594, allocations: 8.375 kB / 422.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.2594, allocations: 8.375 kB / 422.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004565/0.2599, allocations: 387.9 kB / 422.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2599, allocations: 12.12 kB / 422.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.2599, allocations: 3.938 kB / 422.7 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.2599, allocations: 3.938 kB / 422.7 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.722e-05/0.26, allocations: 79.97 kB / 422.8 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003075/0.2603, allocations: 309.6 kB / 423.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001908/0.2605, allocations: 189.4 kB / 423.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.2606, allocations: 133.8 kB / 423.4 MB, free: 16.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.2607, allocations: 4 kB / 423.4 MB, free: 16.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.2607, allocations: 34.55 kB / 423.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.243e-06/0.2607, allocations: 4 kB / 423.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0004907/0.2612, allocations: 383.1 kB / 423.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.2613, allocations: 136.5 kB / 424 MB, free: 15.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.557e-05/0.2614, allocations: 143.9 kB / 424.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.2614, allocations: 33.64 kB / 424.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/0.2614, allocations: 100.6 kB / 424.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.2615, allocations: 23.83 kB / 424.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.2615, allocations: 57.98 kB / 424.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.164e-05/0.2616, allocations: 334.8 kB / 424.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.031e-05/0.2617, allocations: 52.52 kB / 424.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.2618, allocations: 244.5 kB / 425 MB, free: 14.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.2621, allocations: 425.9 kB / 425.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2621, allocations: 96 / 425.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000345/0.2624, allocations: 368.7 kB / 425.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.2625, allocations: 59.41 kB / 425.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.2625, allocations: 8 kB / 425.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.2625, allocations: 8 kB / 425.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.2627, allocations: 67.84 kB / 425.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.2627, allocations: 15.92 kB / 425.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.2628, allocations: 27.75 kB / 425.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.2628, allocations: 16.34 kB / 425.9 MB, free: 13.42 MB / 302.1 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.0001871/0.263, allocations: 231.4 kB / 426.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.2632, allocations: 205.4 kB / 426.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.633e-05/0.2633, allocations: 17.97 kB / 426.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2633, allocations: 0 / 426.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.2633, allocations: 7.984 kB / 426.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.2633, allocations: 0 / 426.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.2635, allocations: 209.3 kB / 426.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.2635, allocations: 4 kB / 426.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.534e-05/0.2636, allocations: 15.98 kB / 426.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.2636, allocations: 0 / 426.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.2636, allocations: 8 kB / 426.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2636, allocations: 0 / 426.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2636, allocations: 0 / 426.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.2639, allocations: 419.8 kB / 427 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.784e-05/0.2639, allocations: 100.8 kB / 427.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.264, allocations: 0 / 427.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.423e-05/0.264, allocations: 8 kB / 427.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.2641, allocations: 4 kB / 427.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.2641, allocations: 4 kB / 427.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.929e-05/0.2641, allocations: 105.9 kB / 427.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2641, allocations: 0 / 427.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003466/0.2645, allocations: 36 kB / 427.3 MB, free: 11.95 MB / 302.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: 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.00055/0.2651, allocations: 267.2 kB / 427.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003676/0.2654, allocations: 344 kB / 427.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2654, allocations: 3.938 kB / 427.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.16e-05/0.2655, allocations: 118.8 kB / 428 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.2659, allocations: 193.5 kB / 428.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004612/0.2664, allocations: 360.5 kB / 428.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.2665, allocations: 0.744 MB / 429.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.009e-05/0.2666, allocations: 25.55 kB / 429.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.038e-05/0.2666, allocations: 23.42 kB / 429.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2666, allocations: 0 / 429.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of Templates: time 0.003967/0.2706, allocations: 1.811 MB / 431.1 MB, free: 8.055 MB / 302.1 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)