Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.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.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 108.7 kB / 17.12 MB, free: 5.934 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.001159/0.001159, allocations: 197 kB / 18.06 MB, free: 5.012 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.338/1.338, allocations: 222.9 MB / 241.8 MB, free: 15.08 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.05833/0.05833, allocations: 12.05 MB / 304 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 67.89 kB / 420.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.0878, allocations: 52.31 MB / 473 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003697/0.0915, allocations: 2.293 MB / 475.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002616/0.09176, allocations: 131.5 kB / 475.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.313e-05/0.09184, allocations: 4 kB / 475.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.092, allocations: 31.78 kB / 475.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.707e-05/0.09209, allocations: 7.938 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.09229, allocations: 59.69 kB / 475.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.09243, allocations: 63.91 kB / 475.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.09254, allocations: 28.19 kB / 475.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.826e-05/0.09259, allocations: 27.8 kB / 475.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.09269, allocations: 47.83 kB / 475.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.09272, allocations: 4 kB / 475.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.205e-05/0.09279, allocations: 31.98 kB / 475.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.662e-05/0.09287, allocations: 47.78 kB / 475.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.13e-05/0.09294, allocations: 63.48 kB / 475.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002548/0.09319, allocations: 187 kB / 476.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.0932, allocations: 0 / 476.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.0932, allocations: 3.938 kB / 476.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.0932, allocations: 0 / 476.1 MB, free: 9.82 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0006777/0.09388, allocations: 0.5174 MB / 476.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.09391, allocations: 8.031 kB / 476.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.09397, allocations: 28.75 kB / 476.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.09424, allocations: 216 kB / 476.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.09426, allocations: 4.375 kB / 476.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.09428, allocations: 12.38 kB / 476.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006995/0.09498, allocations: 0.5498 MB / 477.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.09499, allocations: 192 / 477.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.09501, allocations: 15.94 kB / 477.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.09502, allocations: 0 / 477.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.09521, allocations: 148.2 kB / 477.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003932/0.09561, allocations: 333.9 kB / 477.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003795/0.09598, allocations: 303 kB / 478.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.09614, allocations: 130.6 kB / 478.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.09617, allocations: 7.938 kB / 478.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.0962, allocations: 34.55 kB / 478.3 MB, free: 7.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.302e-06/0.0962, allocations: 0 / 478.3 MB, free: 7.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0007284/0.09693, allocations: 0.5628 MB / 478.9 MB, free: 6.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.942e-05/0.09703, allocations: 133.4 kB / 479 MB, free: 6.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.09718, allocations: 162 kB / 479.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.0972, allocations: 29.7 kB / 479.2 MB, free: 6.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.722e-05/0.09727, allocations: 101.1 kB / 479.3 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/0.09731, allocations: 31.86 kB / 479.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.09741, allocations: 90.06 kB / 479.4 MB, free: 6.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.09756, allocations: 338.8 kB / 479.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.09767, allocations: 72.83 kB / 479.8 MB, free: 5.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.09807, allocations: 384 kB / 480.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005552/0.09863, allocations: 0.5744 MB / 480.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.09864, allocations: 4 kB / 480.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006495/0.09929, allocations: 488.4 kB / 481.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.483e-05/0.09934, allocations: 68.3 kB / 481.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.09936, allocations: 12 kB / 481.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.343e-05/0.09939, allocations: 20 kB / 481.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.09962, allocations: 87.84 kB / 481.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.219e-05/0.09964, allocations: 23.92 kB / 481.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.0998, allocations: 39.78 kB / 481.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.09983, allocations: 28 kB / 481.5 MB, free: 3.664 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 33 (synchronizeRealtime.initialized,joystickInput.buttons[32],joystickInput.buttons[31],joystickInput.buttons[30],joystickInput.buttons[29],joystickInput.buttons[28],joystickInput.buttons[27],joystickInput.buttons[26],joystickInput.buttons[25],joystickInput.buttons[24],joystickInput.buttons[23],joystickInput.buttons[22],joystickInput.buttons[21],joystickInput.buttons[20],joystickInput.buttons[19],joystickInput.buttons[18],joystickInput.buttons[17],joystickInput.buttons[16],joystickInput.buttons[15],joystickInput.buttons[14],joystickInput.buttons[13],joystickInput.buttons[12],joystickInput.buttons[11],joystickInput.buttons[10],joystickInput.buttons[9],joystickInput.buttons[8],joystickInput.buttons[7],joystickInput.buttons[6],joystickInput.buttons[5],joystickInput.buttons[4],joystickInput.buttons[3],joystickInput.buttons[2],joystickInput.buttons[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 48 * 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.0002462/0.1001, allocations: 260.9 kB / 481.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003825/0.1005, allocations: 307.3 kB / 482.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.066e-05/0.1005, allocations: 18.77 kB / 482.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1005, allocations: 3.984 kB / 482.1 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1005, allocations: 4 kB / 482.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1005, allocations: 0 / 482.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.1008, allocations: 237.2 kB / 482.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.1008, allocations: 4 kB / 482.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.768e-05/0.1008, allocations: 15.98 kB / 482.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1008, allocations: 4 kB / 482.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.1008, allocations: 0 / 482.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.1009, allocations: 3.938 kB / 482.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1009, allocations: 4.188 kB / 482.4 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005506/0.1014, allocations: 0.5061 MB / 482.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.343e-05/0.1015, allocations: 108.8 kB / 483 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.1015, allocations: 8 kB / 483 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-05/0.1016, allocations: 3.938 kB / 483 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.371e-05/0.1016, allocations: 11.98 kB / 483 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.1016, allocations: 4 kB / 483 MB, free: 2.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.113e-05/0.1017, allocations: 106 kB / 483.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1017, allocations: 0 / 483.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003867/0.1021, allocations: 43.98 kB / 483.2 MB, free: 1.91 MB / 350.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: 33 (synchronizeRealtime.initialized,joystickInput.buttons[1],joystickInput.buttons[2],joystickInput.buttons[3],joystickInput.buttons[4],joystickInput.buttons[5],joystickInput.buttons[6],joystickInput.buttons[7],joystickInput.buttons[8],joystickInput.buttons[9],joystickInput.buttons[10],joystickInput.buttons[11],joystickInput.buttons[12],joystickInput.buttons[13],joystickInput.buttons[14],joystickInput.buttons[15],joystickInput.buttons[16],joystickInput.buttons[17],joystickInput.buttons[18],joystickInput.buttons[19],joystickInput.buttons[20],joystickInput.buttons[21],joystickInput.buttons[22],joystickInput.buttons[23],joystickInput.buttons[24],joystickInput.buttons[25],joystickInput.buttons[26],joystickInput.buttons[27],joystickInput.buttons[28],joystickInput.buttons[29],joystickInput.buttons[30],joystickInput.buttons[31],joystickInput.buttons[32]) * 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.0007705/0.1028, allocations: 324.8 kB / 483.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000527/0.1034, allocations: 412.2 kB / 483.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1034, allocations: 0 / 483.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.366e-05/0.1035, allocations: 118.8 kB / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005913/0.1041, allocations: 257.3 kB / 484.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007044/0.1048, allocations: 462 kB / 484.7 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.1052, allocations: 0.7791 MB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.67e-05/0.1053, allocations: 29.53 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.1053, allocations: 19.44 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1053, allocations: 0 / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of Templates: time 0.005807/0.1111, allocations: 2.418 MB / 488 MB, free: 13.1 MB / 366.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)