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: "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 109.2 kB / 16.45 MB, free: 6.43 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.00112/0.001121, allocations: 186.9 kB / 17.39 MB, free: 5.676 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.249/1.249, allocations: 222.9 MB / 241.1 MB, free: 15.14 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.05576/0.05576, allocations: 12.06 MB / 303.3 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.89 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07808/0.07934, allocations: 52.32 MB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003627/0.083, allocations: 2.27 MB / 474.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003296/0.08336, allocations: 127.5 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.285e-05/0.08346, allocations: 4 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.08366, allocations: 35.77 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.96e-05/0.08377, allocations: 7.938 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002076/0.08399, allocations: 51.45 kB / 474.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.08415, allocations: 79.81 kB / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.08427, allocations: 20.22 kB / 474.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.473e-05/0.08433, allocations: 31.84 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.08445, allocations: 47.77 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.862e-05/0.08449, allocations: 8 kB / 474.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.363e-05/0.08458, allocations: 39.92 kB / 474.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.916e-05/0.08467, allocations: 43.84 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.0848, allocations: 67.42 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.08507, allocations: 175.3 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.08508, allocations: 4 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08509, allocations: 4 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.0851, allocations: 0 / 474.9 MB, free: 10.32 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.0006276/0.08573, allocations: 0.5136 MB / 475.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.08577, allocations: 12.03 kB / 475.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.572e-05/0.08583, allocations: 50.73 kB / 475.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.551e-05/0.08588, allocations: 24.66 kB / 475.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.08613, allocations: 219.9 kB / 475.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.08615, allocations: 4.375 kB / 475.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.726e-05/0.08618, allocations: 8.375 kB / 475.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006432/0.08683, allocations: 0.5576 MB / 476.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.08685, allocations: 3.938 kB / 476.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.08688, allocations: 8 kB / 476.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.08689, allocations: 0 / 476.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.08707, allocations: 136.4 kB / 476.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004124/0.08749, allocations: 345.7 kB / 476.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.08792, allocations: 343 kB / 477.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.08818, allocations: 170.6 kB / 477.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.08821, allocations: 0 / 477.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.08825, allocations: 38.5 kB / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.312e-06/0.08825, allocations: 0 / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0007284/0.08899, allocations: 0.5627 MB / 477.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.112e-05/0.08909, allocations: 137.4 kB / 478 MB, free: 6.938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.08923, allocations: 154 kB / 478.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.08926, allocations: 25.7 kB / 478.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.147e-05/0.08933, allocations: 105 kB / 478.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.037e-05/0.08937, allocations: 35.81 kB / 478.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.414e-05/0.08947, allocations: 86.12 kB / 478.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.0896, allocations: 338.8 kB / 478.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.08972, allocations: 72.83 kB / 478.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002835/0.09001, allocations: 376 kB / 479.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005079/0.09053, allocations: 0.59 MB / 479.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.09054, allocations: 4 kB / 479.7 MB, free: 4.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006383/0.09119, allocations: 484.3 kB / 480.2 MB, free: 4.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.84e-05/0.09125, allocations: 72.33 kB / 480.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.09127, allocations: 12 kB / 480.3 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.0913, allocations: 16 kB / 480.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.09152, allocations: 95.78 kB / 480.4 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.09155, allocations: 23.91 kB / 480.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/0.09172, allocations: 39.69 kB / 480.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-05/0.09177, allocations: 28 kB / 480.5 MB, free: 4.031 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.0002916/0.09207, allocations: 261 kB / 480.8 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004858/0.09256, allocations: 311.1 kB / 481.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.624e-05/0.09263, allocations: 18.62 kB / 481.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.09264, allocations: 0 / 481.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.09265, allocations: 0 / 481.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.09266, allocations: 0 / 481.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.0929, allocations: 233.2 kB / 481.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.455e-06/0.09292, allocations: 0 / 481.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.049e-05/0.093, allocations: 16 kB / 481.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.09301, allocations: 0 / 481.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.09303, allocations: 4 kB / 481.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.09304, allocations: 3.984 kB / 481.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.09305, allocations: 0 / 481.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005447/0.0936, allocations: 0.5137 MB / 481.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.879e-05/0.09367, allocations: 96.8 kB / 481.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.09372, allocations: 8 kB / 481.9 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.565e-05/0.0938, allocations: 4 kB / 481.9 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/0.09383, allocations: 7.984 kB / 482 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.09385, allocations: 4 kB / 482 MB, free: 2.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.581e-05/0.09394, allocations: 121.9 kB / 482.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09395, allocations: 0 / 482.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004241/0.09438, allocations: 47.91 kB / 482.1 MB, free: 2.281 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.001265/0.09565, allocations: 1.242 MB / 483.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005047/0.09617, allocations: 422.6 kB / 483.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.09618, allocations: 0 / 483.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.26e-05/0.09628, allocations: 128.5 kB / 483.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005462/0.09683, allocations: 281.4 kB / 484.2 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.0998, allocations: 2.985 MB / 487.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.1002, allocations: 0.7797 MB / 487.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.138e-05/0.1003, allocations: 33.47 kB / 488 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.064e-05/0.1004, allocations: 59.41 kB / 488 MB, free: 11.94 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1004, allocations: 0 / 488 MB, free: 11.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.12, allocations: 4.84 MB / 492.9 MB, free: 7.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/7.548, allocations: 15.56 kB / 492.9 MB, free: 7.238 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)