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.004375/0.004375, allocations: 89.84 kB / 15.91 MB, free: 6.305 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.001155/0.001155, allocations: 196.3 kB / 16.83 MB, free: 6.238 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.202/1.202, allocations: 222.9 MB / 240.5 MB, free: 4.551 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.1423/0.1423, allocations: 12.02 MB / 302.7 MB, free: 0.9883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 67.89 kB / 365.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09061/0.09174, allocations: 52.32 MB / 418.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003437/0.09522, allocations: 2.322 MB / 420.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002422/0.09548, allocations: 131.5 kB / 420.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.657e-05/0.09555, allocations: 0 / 420.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.09571, allocations: 27.91 kB / 420.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.159e-05/0.09581, allocations: 7.938 kB / 420.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.09598, allocations: 39.89 kB / 420.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.583e-05/0.09608, allocations: 67.78 kB / 420.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.897e-05/0.09619, allocations: 20.22 kB / 420.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.207e-05/0.09624, allocations: 27.84 kB / 420.8 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.791e-05/0.09634, allocations: 39.84 kB / 420.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.09637, allocations: 8 kB / 420.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.961e-05/0.09644, allocations: 31.97 kB / 420.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.116e-05/0.09651, allocations: 39.86 kB / 421 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.042e-05/0.09659, allocations: 67.42 kB / 421 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001937/0.09678, allocations: 163.4 kB / 421.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.0968, allocations: 4 kB / 421.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.0968, allocations: 0 / 421.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.09681, allocations: 0 / 421.2 MB, free: 2.582 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.0006022/0.09742, allocations: 0.5181 MB / 421.7 MB, free: 2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.09746, allocations: 12.03 kB / 421.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.61e-05/0.09751, allocations: 54.73 kB / 421.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.126e-05/0.09756, allocations: 20.66 kB / 421.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.09777, allocations: 212 kB / 422 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.09779, allocations: 8.359 kB / 422 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.09782, allocations: 8.375 kB / 422 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006205/0.09844, allocations: 0.5654 MB / 422.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.09846, allocations: 3.938 kB / 422.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.09848, allocations: 4 kB / 422.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.09849, allocations: 0 / 422.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.09866, allocations: 144.2 kB / 422.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003709/0.09904, allocations: 333.8 kB / 423.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.09942, allocations: 342.9 kB / 423.4 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.141/0.2404, allocations: 172.6 kB / 423.6 MB, free: 41.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.415e-05/0.2405, allocations: 1.625 kB / 423.6 MB, free: 41.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.2405, allocations: 33.25 kB / 423.6 MB, free: 41.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.094e-06/0.2405, allocations: 1.344 kB / 423.6 MB, free: 41.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006925/0.2412, allocations: 0.5527 MB / 424.1 MB, free: 41.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.2413, allocations: 142 kB / 424.3 MB, free: 41.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.2414, allocations: 160.2 kB / 424.4 MB, free: 41.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.2414, allocations: 29.36 kB / 424.5 MB, free: 41.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.944e-05/0.2415, allocations: 102.2 kB / 424.6 MB, free: 41.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.832e-05/0.2415, allocations: 31.83 kB / 424.6 MB, free: 41.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.34e-05/0.2416, allocations: 84.94 kB / 424.7 MB, free: 41.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.345e-05/0.2416, allocations: 341 kB / 425 MB, free: 41.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.602e-05/0.2417, allocations: 69.95 kB / 425.1 MB, free: 41.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.2419, allocations: 379.4 kB / 425.5 MB, free: 40.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.2422, allocations: 0.5818 MB / 426 MB, free: 40.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.2422, allocations: 2.812 kB / 426 MB, free: 40.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004901/0.2427, allocations: 494.4 kB / 426.5 MB, free: 40.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.2427, allocations: 64.16 kB / 426.6 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.2427, allocations: 11.47 kB / 426.6 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.2428, allocations: 14.62 kB / 426.6 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.243, allocations: 91.34 kB / 426.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.243, allocations: 19.31 kB / 426.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.2431, allocations: 35.25 kB / 426.8 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.2432, allocations: 29.95 kB / 426.8 MB, free: 40.03 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.000173/0.2434, allocations: 263.9 kB / 427 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.2436, allocations: 312 kB / 427.3 MB, free: 39.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.378e-05/0.2437, allocations: 21.52 kB / 427.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2437, allocations: 0.6562 kB / 427.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2437, allocations: 7 kB / 427.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2437, allocations: 0.75 kB / 427.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.2439, allocations: 229.2 kB / 427.6 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.2439, allocations: 0 / 427.6 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.414e-05/0.2439, allocations: 11.56 kB / 427.6 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2439, allocations: 3.172 kB / 427.6 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.244, allocations: 7.562 kB / 427.6 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.244, allocations: 3.188 kB / 427.6 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.244, allocations: 1.312 kB / 427.6 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.2443, allocations: 0.5097 MB / 428.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.5e-05/0.2444, allocations: 101.2 kB / 428.2 MB, free: 39.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.2444, allocations: 6.156 kB / 428.2 MB, free: 39.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.048e-05/0.2445, allocations: 3.312 kB / 428.2 MB, free: 39.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.744e-05/0.2445, allocations: 6.938 kB / 428.2 MB, free: 39.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.2445, allocations: 10.23 kB / 428.3 MB, free: 39.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.604e-05/0.2446, allocations: 110.8 kB / 428.4 MB, free: 39.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2446, allocations: 4 kB / 428.4 MB, free: 39.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003708/0.245, allocations: 40.38 kB / 428.4 MB, free: 39.13 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.0009044/0.2459, allocations: 1.26 MB / 429.7 MB, free: 38.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003555/0.2462, allocations: 423.5 kB / 430.1 MB, free: 38.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2462, allocations: 448 / 430.1 MB, free: 38.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.903e-05/0.2463, allocations: 127.8 kB / 430.2 MB, free: 38.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004634/0.2468, allocations: 285.7 kB / 430.5 MB, free: 38.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.2487, allocations: 3.031 MB / 433.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000142/0.2489, allocations: 0.7723 MB / 434.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.903e-05/0.2489, allocations: 34.03 kB / 434.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.403e-05/0.249, allocations: 60.61 kB / 434.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.249, allocations: 0 / 434.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01321/0.2622, allocations: 4.481 MB / 438.9 MB, free: 34.56 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/0.2624, allocations: 277.4 kB / 439.1 MB, free: 34.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/1.993, allocations: 7.203 kB / 439.1 MB, free: 34.2 MB / 350.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)