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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 80.06 kB / 20.76 MB, free: 3.73 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009751/0.0009751, allocations: 173 kB / 24.18 MB, free: 320 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.065/1.065, allocations: 177.1 MB / 204.6 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo): time 0.03751/0.03751, allocations: 9.157 MB / 270.2 MB, free: 4.141 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 289.7 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.473e-05/2.684e-05, allocations: 6.25 kB / 289.7 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.1481/0.1481, allocations: 2.452 MB / 292.2 MB, free: 18.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000273/0.1484, allocations: 139.2 kB / 292.3 MB, free: 18.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.774e-05/0.1485, allocations: 2.406 kB / 292.3 MB, free: 18.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.1486, allocations: 17.62 kB / 292.3 MB, free: 18.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.48e-05/0.1487, allocations: 7.828 kB / 292.3 MB, free: 18.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.1489, allocations: 52.28 kB / 292.4 MB, free: 18.22 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.1491, allocations: 68.16 kB / 292.5 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.1492, allocations: 12.98 kB / 292.5 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.359e-05/0.1492, allocations: 35.3 kB / 292.5 MB, free: 18.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.217e-05/0.1493, allocations: 20.97 kB / 292.5 MB, free: 18.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.1493, allocations: 4.781 kB / 292.5 MB, free: 18.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.244e-05/0.1494, allocations: 25.98 kB / 292.6 MB, free: 18.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.598e-05/0.1495, allocations: 38.3 kB / 292.6 MB, free: 18.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.341e-05/0.1496, allocations: 26.88 kB / 292.6 MB, free: 18.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.1498, allocations: 111.2 kB / 292.7 MB, free: 18.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1498, allocations: 0 / 292.7 MB, free: 18.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1498, allocations: 1.656 kB / 292.7 MB, free: 18.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1498, allocations: 0 / 292.7 MB, free: 18.08 MB / 266.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.0003942/0.1502, allocations: 383.6 kB / 293.1 MB, free: 17.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1502, allocations: 10.38 kB / 293.1 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.177e-05/0.1503, allocations: 13.67 kB / 293.1 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.1505, allocations: 147.3 kB / 293.3 MB, free: 17.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.1505, allocations: 3.844 kB / 293.3 MB, free: 17.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.1505, allocations: 11.53 kB / 293.3 MB, free: 17.56 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.1508, allocations: 313.2 kB / 293.6 MB, free: 17.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.1508, allocations: 192 / 293.6 MB, free: 17.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.948e-06/0.1508, allocations: 6.5 kB / 293.6 MB, free: 17.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1508, allocations: 2.562 kB / 293.6 MB, free: 17.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.206e-05/0.1509, allocations: 90.52 kB / 293.7 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002134/0.1511, allocations: 182 kB / 293.9 MB, free: 17.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.1512, allocations: 137.3 kB / 294 MB, free: 17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.22e-05/0.1513, allocations: 108.3 kB / 294.1 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.1513, allocations: 2.828 kB / 294.1 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.1513, allocations: 37.61 kB / 294.1 MB, free: 16.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.072e-06/0.1513, allocations: 5.031 kB / 294.1 MB, free: 16.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0002513/0.1516, allocations: 334.4 kB / 294.5 MB, free: 16.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.1516, allocations: 138 kB / 294.6 MB, free: 16.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.885e-05/0.1517, allocations: 150.8 kB / 294.8 MB, free: 16.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.086e-06/0.1517, allocations: 27.89 kB / 294.8 MB, free: 16.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.791e-05/0.1517, allocations: 94.11 kB / 294.9 MB, free: 16.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.386e-05/0.1518, allocations: 16.28 kB / 294.9 MB, free: 16.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.1518, allocations: 25.58 kB / 294.9 MB, free: 16.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.036e-05/0.1518, allocations: 319.5 kB / 295.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.184e-05/0.1519, allocations: 57.17 kB / 295.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.052e-05/0.1519, allocations: 74.11 kB / 295.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.809e-05/0.1519, allocations: 135.8 kB / 295.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.152, allocations: 1.5 kB / 295.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.063e-05/0.152, allocations: 160.3 kB / 295.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.1521, allocations: 60.08 kB / 295.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.1521, allocations: 5.562 kB / 295.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1521, allocations: 0.5312 kB / 295.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.113e-05/0.1521, allocations: 4.453 kB / 295.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1521, allocations: 1.344 kB / 295.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.334e-05/0.1521, allocations: 4.484 kB / 295.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.1522, allocations: 1.188 kB / 295.7 MB, free: 15.34 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * 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 7.663e-05/0.1522, allocations: 172.2 kB / 295.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.1523, allocations: 116.4 kB / 296 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.148e-05/0.1524, allocations: 22.62 kB / 296 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1524, allocations: 3.062 kB / 296 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1524, allocations: 1.438 kB / 296 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1524, allocations: 2.531 kB / 296 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.635e-05/0.1525, allocations: 90.7 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.1525, allocations: 1.656 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.598e-05/0.1525, allocations: 15.66 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1525, allocations: 1.219 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.1526, allocations: 6.25 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.1526, allocations: 5.859 kB / 296.2 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1526, allocations: 5.062 kB / 296.2 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001087/0.1527, allocations: 265.7 kB / 296.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.64e-05/0.1527, allocations: 18.42 kB / 296.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.1527, allocations: 4.094 kB / 296.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.007e-05/0.1527, allocations: 1.281 kB / 296.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.24e-05/0.1528, allocations: 11.72 kB / 296.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.1528, allocations: 8.344 kB / 296.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.12e-05/0.1528, allocations: 27.61 kB / 296.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1528, allocations: 2.688 kB / 296.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001533/0.1529, allocations: 24.55 kB / 296.5 MB, free: 14.68 MB / 266.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.0006912/0.1536, allocations: 334.2 kB / 296.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.1538, allocations: 266.2 kB / 297.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.1538, allocations: 1.219 kB / 297.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.326e-05/0.1538, allocations: 174.3 kB / 297.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002453/0.1541, allocations: 114.7 kB / 297.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003941/0.1545, allocations: 336.4 kB / 297.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.005e-05/0.1546, allocations: 98.48 kB / 297.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.551e-05/0.1546, allocations: 14.16 kB / 297.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.1547, allocations: 71.23 kB / 297.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1547, allocations: 0 / 297.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of Templates: time 0.004186/0.1589, allocations: 1.641 MB / 299.5 MB, free: 13.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.makefile [Timeout 660] (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=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 2.8321701930835843]