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.0008084/0.0008084, allocations: 97.53 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008527/0.0008528, allocations: 178.8 kB / 16.61 MB, free: 6.426 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.168/1.168, allocations: 223.2 MB / 240.6 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1471/0.1471, allocations: 12.02 MB / 303.7 MB, free: 1.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.0002688, allocations: 8 kB / 367.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08483/0.08512, allocations: 53.34 MB / 420.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.00232/0.08747, allocations: 1.936 MB / 422.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001967/0.08768, allocations: 115.7 kB / 422.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.586e-05/0.08775, allocations: 3.938 kB / 422.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.08786, allocations: 27.84 kB / 423 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.298e-05/0.08795, allocations: 11.94 kB / 423 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000174/0.08813, allocations: 47.86 kB / 423 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.108e-05/0.08823, allocations: 39.89 kB / 423.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.409e-05/0.08831, allocations: 16.22 kB / 423.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.826e-05/0.08836, allocations: 23.91 kB / 423.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.452e-05/0.08844, allocations: 35.84 kB / 423.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.08846, allocations: 4 kB / 423.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.486e-05/0.08852, allocations: 19.94 kB / 423.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.194e-05/0.08858, allocations: 39.84 kB / 423.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.424e-05/0.08863, allocations: 49.58 kB / 423.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.08877, allocations: 127.8 kB / 423.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.08878, allocations: 0 / 423.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.08878, allocations: 0 / 423.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.016e-06/0.08879, allocations: 0 / 423.4 MB, free: 1.621 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.0005213/0.08932, allocations: 498.5 kB / 423.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.08936, allocations: 12.03 kB / 423.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.462e-05/0.08941, allocations: 23.67 kB / 423.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.08963, allocations: 206.7 kB / 424.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.08965, allocations: 11.94 kB / 424.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.08968, allocations: 7.938 kB / 424.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006009/0.09028, allocations: 0.5685 MB / 424.7 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.0903, allocations: 0 / 424.7 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.095e-05/0.09033, allocations: 11.95 kB / 424.7 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.09034, allocations: 3.938 kB / 424.7 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.09051, allocations: 136.4 kB / 424.8 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1551/0.2456, allocations: 325.7 kB / 425.2 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.246, allocations: 339.1 kB / 425.5 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.2461, allocations: 4.688 kB / 425.5 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.508e-05/0.2461, allocations: 38.86 kB / 425.5 MB, free: 39.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.064e-06/0.2461, allocations: 0 / 425.5 MB, free: 39.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006417/0.2467, allocations: 0.7318 MB / 426.3 MB, free: 38.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.2468, allocations: 142 kB / 426.4 MB, free: 38.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.2469, allocations: 158.1 kB / 426.6 MB, free: 38.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.2469, allocations: 28.7 kB / 426.6 MB, free: 38.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.923e-05/0.247, allocations: 101.2 kB / 426.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/0.247, allocations: 29.84 kB / 426.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.247, allocations: 9.188 kB / 426.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.702e-05/0.2471, allocations: 337.3 kB / 427.1 MB, free: 38.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.364e-05/0.2472, allocations: 69.12 kB / 427.1 MB, free: 38.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.2473, allocations: 373.4 kB / 427.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.2475, allocations: 201.9 kB / 427.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2475, allocations: 7.609 kB / 427.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004674/0.248, allocations: 487.4 kB / 428.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/0.248, allocations: 66.58 kB / 428.2 MB, free: 37.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.248, allocations: 10.81 kB / 428.2 MB, free: 37.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.248, allocations: 13.84 kB / 428.3 MB, free: 37.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.2482, allocations: 92.41 kB / 428.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.2483, allocations: 20.86 kB / 428.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.2484, allocations: 41.69 kB / 428.4 MB, free: 37.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.2484, allocations: 32.28 kB / 428.4 MB, free: 37.33 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.2486, allocations: 257.8 kB / 428.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/0.2489, allocations: 311 kB / 429 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.155e-05/0.2489, allocations: 19.78 kB / 429 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.2489, allocations: 3.094 kB / 429 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2489, allocations: 3.156 kB / 429 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2489, allocations: 0.6094 kB / 429 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.2491, allocations: 226 kB / 429.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.2491, allocations: 3.938 kB / 429.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.035e-05/0.2491, allocations: 19.67 kB / 429.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2492, allocations: 0.625 kB / 429.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.2492, allocations: 2.812 kB / 429.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.2492, allocations: 0 / 429.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2492, allocations: 6.812 kB / 429.3 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003521/0.2495, allocations: 0.5154 MB / 429.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.774e-05/0.2496, allocations: 106.3 kB / 429.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.2496, allocations: 7.656 kB / 429.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.212e-05/0.2497, allocations: 2.969 kB / 429.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.281e-05/0.2497, allocations: 14.98 kB / 429.9 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.2498, allocations: 3.969 kB / 429.9 MB, free: 36.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.996e-05/0.2498, allocations: 105.2 kB / 430 MB, free: 36.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2498, allocations: 2.844 kB / 430 MB, free: 36.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003796/0.2502, allocations: 41.06 kB / 430.1 MB, free: 36.39 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 (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.0004988/0.2507, allocations: 317 kB / 430.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003816/0.2511, allocations: 416.9 kB / 430.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2511, allocations: 0 / 430.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.948e-05/0.2512, allocations: 124.3 kB / 430.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.2515, allocations: 287.9 kB / 431.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000522/0.2521, allocations: 0.5062 MB / 431.7 MB, free: 35.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.2522, allocations: 0.7831 MB / 432.5 MB, free: 34.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.645e-05/0.2523, allocations: 32.47 kB / 432.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.2524, allocations: 15.97 kB / 432.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2524, allocations: 0 / 432.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of Templates: time 0.004219/0.2566, allocations: 2.235 MB / 434.8 MB, free: 34.74 MB / 350.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)