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.001034/0.001034, allocations: 103.7 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.001107/0.001107, allocations: 190.9 kB / 17.39 MB, free: 5.688 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.293/1.293, allocations: 222.9 MB / 241.1 MB, free: 15.07 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.05673/0.05673, allocations: 12.04 MB / 303.3 MB, free: 3.082 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 59.89 kB / 419.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0771/0.07824, 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.003276/0.08155, allocations: 2.286 MB / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00025/0.08182, allocations: 127.5 kB / 474.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.4e-05/0.08189, allocations: 7.938 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.08205, allocations: 23.86 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.413e-05/0.08216, allocations: 15.8 kB / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001824/0.08235, allocations: 47.88 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.08248, allocations: 67.84 kB / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.668e-05/0.08259, allocations: 32.2 kB / 474.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.437e-05/0.08264, allocations: 31.84 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.08275, allocations: 47.83 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.08278, allocations: 4 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.449e-05/0.08285, allocations: 28 kB / 474.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.411e-05/0.08292, allocations: 47.83 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.635e-05/0.08299, allocations: 71.36 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.08324, allocations: 183.3 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.08325, allocations: 0 / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.08325, allocations: 0 / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.08326, allocations: 4 kB / 474.9 MB, free: 10.31 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.0005711/0.08384, allocations: 0.5174 MB / 475.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.08389, allocations: 12.03 kB / 475.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.253e-05/0.08394, allocations: 58.72 kB / 475.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.207e-05/0.08398, allocations: 20.75 kB / 475.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.08423, allocations: 220 kB / 475.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-06/0.08425, allocations: 12.38 kB / 475.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.08428, allocations: 4.375 kB / 475.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006168/0.0849, allocations: 0.5652 MB / 476.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.08492, allocations: 7.875 kB / 476.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.08494, allocations: 0 / 476.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.08495, allocations: 0 / 476.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.08512, allocations: 140.4 kB / 476.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000377/0.0855, allocations: 333.9 kB / 476.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.08588, allocations: 346.9 kB / 477.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.08606, allocations: 174.6 kB / 477.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.08609, allocations: 0 / 477.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.08612, allocations: 38.56 kB / 477.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.202e-06/0.08612, allocations: 0 / 477.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006475/0.08677, allocations: 0.5549 MB / 477.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.08686, allocations: 141.3 kB / 478 MB, free: 6.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.08699, allocations: 166.1 kB / 478.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.08702, allocations: 25.7 kB / 478.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.167e-05/0.08707, allocations: 101.1 kB / 478.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/0.08711, allocations: 27.88 kB / 478.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.533e-05/0.08721, allocations: 94.11 kB / 478.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.08732, allocations: 330.8 kB / 478.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.08743, allocations: 84.75 kB / 478.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.08771, allocations: 376.1 kB / 479.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004486/0.08816, allocations: 0.5823 MB / 479.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.08818, allocations: 4 kB / 479.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005824/0.08876, allocations: 488.8 kB / 480.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.841e-05/0.08882, allocations: 67.41 kB / 480.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.08884, allocations: 12 kB / 480.3 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.08887, allocations: 12 kB / 480.3 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.08909, allocations: 91.83 kB / 480.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.08911, allocations: 20.41 kB / 480.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.08928, allocations: 39.78 kB / 480.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.08931, allocations: 32 kB / 480.5 MB, free: 4.012 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.0002079/0.08953, allocations: 253 kB / 480.8 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000329/0.08987, allocations: 315.4 kB / 481.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.409e-05/0.08992, allocations: 22.61 kB / 481.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.08993, allocations: 7.938 kB / 481.1 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.08994, allocations: 4 kB / 481.1 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.08994, allocations: 0 / 481.1 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.09017, allocations: 229.3 kB / 481.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.09019, allocations: 3.984 kB / 481.3 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.647e-05/0.09026, allocations: 12 kB / 481.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.09027, allocations: 0 / 481.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.09029, allocations: 8 kB / 481.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.09029, allocations: 0 / 481.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.0903, allocations: 4 kB / 481.4 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004842/0.09079, allocations: 0.5099 MB / 481.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/0.09084, allocations: 100.8 kB / 482 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.09088, allocations: 7.984 kB / 482 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.454e-05/0.09096, allocations: 8 kB / 482 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.652e-05/0.09099, allocations: 0 / 482 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.091, allocations: 7.938 kB / 482 MB, free: 2.414 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.445e-05/0.09108, allocations: 118 kB / 482.1 MB, free: 2.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09109, allocations: 4 kB / 482.1 MB, free: 2.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003738/0.09147, allocations: 36 kB / 482.1 MB, free: 2.262 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.001151/0.09263, allocations: 1.267 MB / 483.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004479/0.09309, allocations: 419.9 kB / 483.8 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.0931, allocations: 0 / 483.8 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.331e-05/0.09318, allocations: 118.8 kB / 483.9 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.0937, allocations: 289.4 kB / 484.2 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.09636, allocations: 2.986 MB / 487.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.09668, allocations: 0.7717 MB / 488 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.035e-05/0.09676, allocations: 29.72 kB / 488 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.02e-05/0.09684, allocations: 59.42 kB / 488.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.09685, allocations: 3.938 kB / 488.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02007/0.1169, allocations: 4.75 MB / 492.8 MB, free: 7.309 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.64/7.757, allocations: 23.11 kB / 492.8 MB, free: 7.289 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 & 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)