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.001008/0.001008, allocations: 108.3 kB / 16.45 MB, free: 6.449 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.001049/0.001049, allocations: 189.1 kB / 17.39 MB, free: 5.668 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.2/1.2, allocations: 222.9 MB / 241.1 MB, free: 15.07 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.05296/0.05296, allocations: 12.05 MB / 303.3 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 67.89 kB / 420.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08416/0.0854, allocations: 52.31 MB / 472.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003588/0.08903, allocations: 2.278 MB / 474.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002757/0.08933, allocations: 127.5 kB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.993e-05/0.08943, allocations: 7.938 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.08961, allocations: 27.84 kB / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.016e-05/0.08972, allocations: 7.875 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.08994, allocations: 51.81 kB / 474.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.09009, allocations: 83.77 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.09022, allocations: 28.19 kB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.362e-05/0.09028, allocations: 27.86 kB / 475 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.0904, allocations: 39.84 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.903e-05/0.09043, allocations: 7.984 kB / 475.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.482e-05/0.09051, allocations: 31.98 kB / 475.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.58e-05/0.09058, allocations: 47.84 kB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.568e-05/0.09066, allocations: 63.42 kB / 475.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.09091, allocations: 191 kB / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09093, allocations: 0 / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09094, allocations: 8 kB / 475.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.09095, allocations: 3.938 kB / 475.4 MB, free: 9.836 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.0006364/0.09159, allocations: 0.5096 MB / 475.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.09163, allocations: 12.03 kB / 475.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.991e-05/0.09169, allocations: 20.75 kB / 475.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.092, allocations: 224 kB / 476.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.09202, allocations: 8.375 kB / 476.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.09205, allocations: 4.375 kB / 476.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006332/0.09269, allocations: 0.5607 MB / 476.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.09271, allocations: 4.188 kB / 476.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.09273, allocations: 3.938 kB / 476.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.09274, allocations: 0 / 476.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.09292, allocations: 144.3 kB / 476.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003752/0.0933, allocations: 337.9 kB / 477.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.0937, allocations: 358.1 kB / 477.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.09388, allocations: 170.6 kB / 477.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.09391, allocations: 0 / 477.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.09394, allocations: 38.56 kB / 477.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.302e-06/0.09395, allocations: 0 / 477.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006706/0.09462, allocations: 0.5549 MB / 478.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.09471, allocations: 141.4 kB / 478.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.09485, allocations: 158 kB / 478.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.09488, allocations: 29.7 kB / 478.6 MB, free: 6.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.849e-05/0.09494, allocations: 105 kB / 478.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.09498, allocations: 31.86 kB / 478.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.887e-05/0.09507, allocations: 90.12 kB / 478.9 MB, free: 6.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.09518, allocations: 334.8 kB / 479.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.09529, allocations: 72.83 kB / 479.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.09555, allocations: 380.1 kB / 479.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004669/0.09602, allocations: 0.5783 MB / 480.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.09604, allocations: 7.938 kB / 480.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005954/0.09664, allocations: 488.5 kB / 480.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/0.0967, allocations: 67.39 kB / 480.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.09672, allocations: 12 kB / 480.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.09674, allocations: 12.78 kB / 480.8 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.09696, allocations: 91.84 kB / 480.9 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.757e-05/0.09698, allocations: 23.92 kB / 480.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.09714, allocations: 39.78 kB / 480.9 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.09718, allocations: 28 kB / 481 MB, free: 3.605 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.0001941/0.09738, allocations: 265 kB / 481.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/0.0977, allocations: 311.4 kB / 481.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.155e-05/0.09776, allocations: 14.62 kB / 481.5 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.09778, allocations: 4 kB / 481.5 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.09779, allocations: 0 / 481.5 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.09779, allocations: 0 / 481.5 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.098, allocations: 237.3 kB / 481.8 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.09801, allocations: 0 / 481.8 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.781e-05/0.09809, allocations: 15.94 kB / 481.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.0981, allocations: 0 / 481.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.09812, allocations: 15.98 kB / 481.8 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.09813, allocations: 0 / 481.8 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.09813, allocations: 0 / 481.8 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004939/0.09863, allocations: 0.5061 MB / 482.3 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.328e-05/0.09869, allocations: 100.8 kB / 482.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.09872, allocations: 4 kB / 482.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.68e-05/0.09881, allocations: 11.94 kB / 482.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.461e-05/0.09884, allocations: 4 kB / 482.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.09885, allocations: 4 kB / 482.4 MB, free: 2.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.544e-05/0.09892, allocations: 110 kB / 482.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.09893, allocations: 0 / 482.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003917/0.09933, allocations: 47.94 kB / 482.6 MB, free: 1.855 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.0006185/0.09995, allocations: 312.5 kB / 482.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004927/0.1005, allocations: 420.1 kB / 483.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1005, allocations: 256 / 483.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.132e-05/0.1006, allocations: 130.8 kB / 483.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.1011, allocations: 285.2 kB / 483.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006013/0.1018, allocations: 465.8 kB / 484.2 MB, free: 276 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1021, allocations: 0.787 MB / 484.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.057e-05/0.1022, allocations: 33.52 kB / 485 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.642e-05/0.1022, allocations: 15.44 kB / 485 MB, free: 15.41 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1022, allocations: 0 / 485 MB, free: 15.41 MB / 366.1 MB Notification: Performance of Templates: time 0.005477/0.1077, allocations: 2.404 MB / 487.4 MB, free: 13.01 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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)