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.0009491/0.0009489, allocations: 96.78 kB / 15.74 MB, free: 424 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.0009872/0.0009871, allocations: 171.8 kB / 16.62 MB, free: 6.43 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.389/1.389, allocations: 223.3 MB / 240.7 MB, free: 5.406 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.2192/0.2192, allocations: 12.04 MB / 303.8 MB, free: 1.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003028, allocations: 8 kB / 367.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1092, allocations: 53.36 MB / 421.1 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003145/0.1123, allocations: 1.936 MB / 423.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002689/0.1126, allocations: 127.6 kB / 423.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.311e-05/0.1127, allocations: 7.938 kB / 423.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.1129, allocations: 23.92 kB / 423.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.113, allocations: 11.91 kB / 423.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.1132, allocations: 31.91 kB / 423.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.1133, allocations: 63.83 kB / 423.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.181e-05/0.1134, allocations: 12.23 kB / 423.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.243e-05/0.1135, allocations: 23.92 kB / 423.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.1136, allocations: 43.81 kB / 423.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.1136, allocations: 7.938 kB / 423.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.112e-05/0.1137, allocations: 24 kB / 423.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.463e-05/0.1138, allocations: 43.84 kB / 423.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.209e-05/0.1138, allocations: 41.64 kB / 423.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001822/0.114, allocations: 127.8 kB / 423.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.114, allocations: 0 / 423.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.897e-06/0.114, allocations: 0 / 423.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.114, allocations: 3.938 kB / 423.6 MB, free: 1.414 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.0005898/0.1146, allocations: 0.4907 MB / 424.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1147, allocations: 8.031 kB / 424.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.438e-05/0.1147, allocations: 58.48 kB / 424.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.1148, allocations: 23.67 kB / 424.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.115, allocations: 210.7 kB / 424.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.115, allocations: 8 kB / 424.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.1151, allocations: 8 kB / 424.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1915/0.3066, allocations: 0.5515 MB / 425 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.3066, allocations: 1 kB / 425 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.3067, allocations: 5.609 kB / 425 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.3067, allocations: 2.031 kB / 425 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.3069, allocations: 140.6 kB / 425.1 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003955/0.3073, allocations: 335.2 kB / 425.5 MB, free: 39.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.3077, allocations: 338.5 kB / 425.8 MB, free: 38.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.3078, allocations: 173.3 kB / 426 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.3079, allocations: 2.219 kB / 426 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.3079, allocations: 35.86 kB / 426 MB, free: 38.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.663e-06/0.3079, allocations: 0 / 426 MB, free: 38.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006421/0.3085, allocations: 0.5527 MB / 426.6 MB, free: 38.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.3086, allocations: 147.5 kB / 426.7 MB, free: 38.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.3087, allocations: 160.7 kB / 426.9 MB, free: 38.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.3087, allocations: 26.2 kB / 426.9 MB, free: 38.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.119e-05/0.3088, allocations: 99.39 kB / 427 MB, free: 38.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.3088, allocations: 27.19 kB / 427 MB, free: 38.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/0.3088, allocations: 18.11 kB / 427 MB, free: 38.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.083e-05/0.3089, allocations: 334.4 kB / 427.4 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.309, allocations: 69.42 kB / 427.4 MB, free: 37.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.3092, allocations: 375.9 kB / 427.8 MB, free: 37.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.3094, allocations: 203.3 kB / 428 MB, free: 37.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3094, allocations: 2.844 kB / 428 MB, free: 37.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005036/0.3099, allocations: 491.3 kB / 428.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.31, allocations: 60.25 kB / 428.5 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.31, allocations: 12.59 kB / 428.5 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.31, allocations: 18.64 kB / 428.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.3102, allocations: 95.11 kB / 428.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.3102, allocations: 22.25 kB / 428.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.3104, allocations: 43.75 kB / 428.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.3104, allocations: 29.25 kB / 428.7 MB, free: 37.27 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.0001655/0.3106, allocations: 248.3 kB / 429 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002642/0.3109, allocations: 312.2 kB / 429.3 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.806e-05/0.3109, allocations: 24.58 kB / 429.3 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3109, allocations: 2.844 kB / 429.3 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.3109, allocations: 3.953 kB / 429.3 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3109, allocations: 0 / 429.3 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.3111, allocations: 226.8 kB / 429.5 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.3111, allocations: 0 / 429.5 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.605e-05/0.3112, allocations: 13.47 kB / 429.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3112, allocations: 4 kB / 429.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.3112, allocations: 7.031 kB / 429.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3112, allocations: 4.688 kB / 429.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3112, allocations: 0 / 429.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/0.3116, allocations: 0.5065 MB / 430.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.517e-05/0.3117, allocations: 108.4 kB / 430.2 MB, free: 36.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.3117, allocations: 2.75 kB / 430.2 MB, free: 36.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.627e-05/0.3118, allocations: 7.859 kB / 430.2 MB, free: 36.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.514e-05/0.3118, allocations: 2.969 kB / 430.2 MB, free: 36.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.3118, allocations: 10.22 kB / 430.2 MB, free: 36.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.683e-05/0.3119, allocations: 112.6 kB / 430.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3119, allocations: 0 / 430.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003733/0.3122, allocations: 42.27 kB / 430.4 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.0009881/0.3132, allocations: 1.247 MB / 431.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003728/0.3136, allocations: 419.7 kB / 432 MB, free: 35.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3136, allocations: 0 / 432 MB, free: 35.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.817e-05/0.3137, allocations: 121.8 kB / 432.1 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.3142, allocations: 287.2 kB / 432.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.3157, allocations: 1.497 MB / 433.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.3159, allocations: 0.7816 MB / 434.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.734e-05/0.316, allocations: 30.86 kB / 434.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.984e-05/0.3161, allocations: 58.03 kB / 434.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3161, allocations: 0 / 434.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01321/0.3293, allocations: 4.37 MB / 439.2 MB, free: 33.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.3295, allocations: 256.1 kB / 439.4 MB, free: 32.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/2.091, allocations: 4 kB / 439.4 MB, free: 32.86 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)