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.001038/0.001038, allocations: 100.3 kB / 15.73 MB, free: 436 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.001257/0.001257, allocations: 180.6 kB / 16.62 MB, free: 6.176 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.406/1.406, allocations: 223.2 MB / 240.6 MB, free: 5.266 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.1906/0.1906, allocations: 12.05 MB / 303.7 MB, free: 1.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003031, allocations: 16 kB / 367.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.111, allocations: 53.35 MB / 421 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.002469/0.1135, allocations: 1.944 MB / 422.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002112/0.1137, allocations: 111.7 kB / 423.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.199e-05/0.1138, allocations: 4 kB / 423.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.1139, allocations: 23.84 kB / 423.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.8e-05/0.114, allocations: 19.84 kB / 423.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.1142, allocations: 31.97 kB / 423.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.1143, allocations: 47.88 kB / 423.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.53e-05/0.1144, allocations: 20.2 kB / 423.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.23e-05/0.1145, allocations: 27.86 kB / 423.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.503e-05/0.1146, allocations: 35.84 kB / 423.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.1146, allocations: 0 / 423.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.127e-05/0.1147, allocations: 23.92 kB / 423.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.211e-05/0.1147, allocations: 35.91 kB / 423.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.6e-05/0.1148, allocations: 53.58 kB / 423.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.1149, allocations: 115.8 kB / 423.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.1149, allocations: 0 / 423.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1149, allocations: 4 kB / 423.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.1149, allocations: 0 / 423.5 MB, free: 1.438 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.0005839/0.1155, allocations: 498.5 kB / 424 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1156, allocations: 8.031 kB / 424 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.729e-05/0.1157, allocations: 58.5 kB / 424 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.569e-05/0.1157, allocations: 27.66 kB / 424.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.116, allocations: 218.7 kB / 424.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.116, allocations: 4 kB / 424.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.116, allocations: 15.94 kB / 424.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2084/0.3244, allocations: 0.5531 MB / 424.8 MB, free: 39.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.3245, allocations: 0 / 424.8 MB, free: 39.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.562e-05/0.3246, allocations: 8.672 kB / 424.9 MB, free: 39.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.3246, allocations: 1.656 kB / 424.9 MB, free: 39.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.3249, allocations: 141.7 kB / 425 MB, free: 39.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005166/0.3254, allocations: 334.6 kB / 425.3 MB, free: 39.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.3258, allocations: 338.1 kB / 425.7 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.3259, allocations: 2.812 kB / 425.7 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.3259, allocations: 39.16 kB / 425.7 MB, free: 39.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.403e-06/0.3259, allocations: 0.6562 kB / 425.7 MB, free: 39.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.000811/0.3267, allocations: 0.7337 MB / 426.4 MB, free: 38.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/0.3268, allocations: 139.5 kB / 426.6 MB, free: 38.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.3269, allocations: 165.4 kB / 426.7 MB, free: 38.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.327, allocations: 29.36 kB / 426.8 MB, free: 38.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.314e-05/0.327, allocations: 94.97 kB / 426.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.3271, allocations: 29.91 kB / 426.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.069e-05/0.3271, allocations: 9.719 kB / 426.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.344e-05/0.3272, allocations: 336.5 kB / 427.2 MB, free: 38.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.3273, allocations: 71.36 kB / 427.3 MB, free: 38.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.3275, allocations: 374.1 kB / 427.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.3277, allocations: 199.7 kB / 427.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3277, allocations: 5.562 kB / 427.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005418/0.3283, allocations: 486.9 kB / 428.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.752e-05/0.3283, allocations: 64.77 kB / 428.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.3284, allocations: 11.47 kB / 428.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.3284, allocations: 14.75 kB / 428.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.3286, allocations: 96.02 kB / 428.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-05/0.3286, allocations: 24.73 kB / 428.5 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.3288, allocations: 47.69 kB / 428.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.3288, allocations: 29.41 kB / 428.6 MB, free: 37.28 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.0001903/0.329, allocations: 253.3 kB / 428.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003117/0.3293, allocations: 306.8 kB / 429.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.361e-05/0.3294, allocations: 19.38 kB / 429.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.3294, allocations: 7.141 kB / 429.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3294, allocations: 2.531 kB / 429.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3294, allocations: 3.953 kB / 429.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.3296, allocations: 224.3 kB / 429.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.3296, allocations: 2.625 kB / 429.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.154e-05/0.3297, allocations: 13.64 kB / 429.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3297, allocations: 1.312 kB / 429.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.3297, allocations: 10.53 kB / 429.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3297, allocations: 2.531 kB / 429.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3297, allocations: 0 / 429.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004562/0.3302, allocations: 0.5179 MB / 430 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/0.3303, allocations: 105.2 kB / 430.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.3303, allocations: 0 / 430.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.342e-05/0.3304, allocations: 9.859 kB / 430.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.3304, allocations: 7.312 kB / 430.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.3304, allocations: 11.36 kB / 430.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.704e-05/0.3305, allocations: 112.3 kB / 430.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3305, allocations: 0 / 430.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003814/0.3309, allocations: 41.92 kB / 430.2 MB, free: 36.36 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.001274/0.3322, allocations: 1.333 MB / 431.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004942/0.3327, allocations: 416.8 kB / 432 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3327, allocations: 0 / 432 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.292e-05/0.3327, allocations: 123.8 kB / 432.1 MB, free: 35.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.3333, allocations: 287.7 kB / 432.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.3362, allocations: 8.649 MB / 441 MB, free: 27.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.3365, allocations: 0.7791 MB / 441.8 MB, free: 26.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.491e-05/0.3366, allocations: 31.23 kB / 441.8 MB, free: 26.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.283e-05/0.3367, allocations: 60.83 kB / 441.9 MB, free: 26.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3367, allocations: 0 / 441.9 MB, free: 26.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01445/0.3511, allocations: 4.375 MB / 446.3 MB, free: 25.95 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.3513, allocations: 246.7 kB / 446.5 MB, free: 25.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/2.044, allocations: 3.75 kB / 446.5 MB, free: 25.62 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/linux/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)