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.001075/0.001075, allocations: 101.2 kB / 16.31 MB, free: 6.391 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.001091/0.001091, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.362/1.362, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.06692/0.06692, allocations: 12.05 MB / 303.1 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.91 kB / 366.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2088, allocations: 52.32 MB / 418.9 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.004291/0.2131, allocations: 2.286 MB / 421.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003/0.2135, allocations: 127.5 kB / 421.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.2136, allocations: 0 / 421.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.2138, allocations: 31.78 kB / 421.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.723e-05/0.2139, allocations: 3.938 kB / 421.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.2141, allocations: 51.88 kB / 421.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.2143, allocations: 71.78 kB / 421.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.2144, allocations: 24.2 kB / 421.5 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.939e-05/0.2144, allocations: 31.86 kB / 421.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.2146, allocations: 43.77 kB / 421.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.2146, allocations: 8 kB / 421.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.503e-05/0.2147, allocations: 31.98 kB / 421.6 MB, free: 18.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.856e-05/0.2148, allocations: 47.84 kB / 421.6 MB, free: 18.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.271e-05/0.2149, allocations: 67.42 kB / 421.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.2151, allocations: 167.4 kB / 421.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2151, allocations: 0 / 421.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2151, allocations: 4 kB / 421.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.2151, allocations: 4 kB / 421.9 MB, free: 18.11 MB / 302.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.0006629/0.2158, allocations: 0.5045 MB / 422.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.2158, allocations: 12.03 kB / 422.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.428e-05/0.2159, allocations: 58.72 kB / 422.5 MB, free: 17.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.523e-05/0.216, allocations: 20.66 kB / 422.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.2163, allocations: 211.9 kB / 422.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.2163, allocations: 8.375 kB / 422.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.2164, allocations: 12.38 kB / 422.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006495/0.217, allocations: 0.5578 MB / 423.3 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.217, allocations: 3.938 kB / 423.3 MB, free: 16.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.2171, allocations: 4 kB / 423.3 MB, free: 16.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.2171, allocations: 7.984 kB / 423.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000162/0.2172, allocations: 140.4 kB / 423.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004039/0.2177, allocations: 337.7 kB / 423.7 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.218, allocations: 339 kB / 424.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.2181, allocations: 174.6 kB / 424.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.721e-05/0.2182, allocations: 3.984 kB / 424.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.2182, allocations: 38.5 kB / 424.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.623e-06/0.2182, allocations: 0 / 424.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006367/0.2189, allocations: 0.551 MB / 424.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.2189, allocations: 141.4 kB / 425 MB, free: 14.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.743e-05/0.219, allocations: 162 kB / 425.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.219, allocations: 25.7 kB / 425.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.243e-05/0.2191, allocations: 101 kB / 425.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.2191, allocations: 31.88 kB / 425.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.523e-05/0.2192, allocations: 86.12 kB / 425.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.757e-05/0.2193, allocations: 334.8 kB / 425.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.2194, allocations: 80.84 kB / 425.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.2196, allocations: 376.1 kB / 426.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.2199, allocations: 0.5861 MB / 426.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.2199, allocations: 4 kB / 426.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005099/0.2204, allocations: 496.4 kB / 427.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.2205, allocations: 64.34 kB / 427.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.2205, allocations: 8 kB / 427.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.2205, allocations: 16 kB / 427.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.2207, allocations: 91.78 kB / 427.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.2207, allocations: 23.92 kB / 427.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.2209, allocations: 39.69 kB / 427.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.2209, allocations: 28 kB / 427.5 MB, free: 11.84 MB / 302.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.0001839/0.2211, allocations: 256.9 kB / 427.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.2214, allocations: 315.1 kB / 428 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.2215, allocations: 18.62 kB / 428.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.2215, allocations: 7.938 kB / 428.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.2215, allocations: 0 / 428.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2215, allocations: 3.984 kB / 428.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001567/0.2216, allocations: 225.3 kB / 428.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.2217, allocations: 0 / 428.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.443e-05/0.2217, allocations: 15.98 kB / 428.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2217, allocations: 4 kB / 428.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.2218, allocations: 4 kB / 428.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2218, allocations: 4 kB / 428.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.2218, allocations: 0 / 428.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004437/0.2222, allocations: 0.5059 MB / 428.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.823e-05/0.2223, allocations: 100.8 kB / 428.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.2223, allocations: 8 kB / 428.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.558e-05/0.2224, allocations: 4.188 kB / 428.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.162e-05/0.2224, allocations: 7.984 kB / 428.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.2224, allocations: 11.94 kB / 429 MB, free: 10.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.378e-05/0.2225, allocations: 105.3 kB / 429.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2225, allocations: 0 / 429.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004002/0.2229, allocations: 43.98 kB / 429.1 MB, free: 10.1 MB / 302.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.001045/0.224, allocations: 1.28 MB / 430.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00047/0.2244, allocations: 446.6 kB / 430.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2245, allocations: 0 / 430.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.612e-05/0.2245, allocations: 124.5 kB / 430.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005075/0.225, allocations: 278.6 kB / 431.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.2274, allocations: 2.956 MB / 434.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.2276, allocations: 0.7756 MB / 434.9 MB, free: 3.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.814e-05/0.2277, allocations: 29.53 kB / 435 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.207e-05/0.2278, allocations: 63.34 kB / 435 MB, free: 3.734 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2278, allocations: 0 / 435 MB, free: 3.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.2484, allocations: 4.66 MB / 439.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.244/7.492, allocations: 11.58 kB / 439.7 MB, free: 15.2 MB / 318.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 & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)