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: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 102.4 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.001215/0.001215, 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.313/1.313, 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.05423/0.05423, allocations: 12.05 MB / 303.1 MB, free: 3.195 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 68.11 kB / 366.5 MB, free: 3.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1965, allocations: 52.32 MB / 418.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003266/0.1998, allocations: 2.281 MB / 421.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002142/0.2, allocations: 127.5 kB / 421.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.838e-05/0.2001, allocations: 7.438 kB / 421.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.2003, allocations: 35.78 kB / 421.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.929e-05/0.2004, allocations: 7.875 kB / 421.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.2006, allocations: 47.27 kB / 421.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.2007, allocations: 75.77 kB / 421.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.972e-05/0.2008, allocations: 16.23 kB / 421.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.136e-05/0.2009, allocations: 31.84 kB / 421.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.855e-05/0.201, allocations: 39.83 kB / 421.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.614e-05/0.201, allocations: 12 kB / 421.5 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.44e-05/0.2011, allocations: 35.98 kB / 421.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.248e-05/0.2012, allocations: 43.84 kB / 421.5 MB, free: 18.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.908e-05/0.2012, allocations: 71.42 kB / 421.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.2014, allocations: 163.4 kB / 421.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2014, allocations: 0 / 421.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.2014, allocations: 0 / 421.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.2014, allocations: 0 / 421.8 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.0005129/0.202, allocations: 0.5159 MB / 422.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.202, allocations: 15.95 kB / 422.3 MB, free: 17.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.2021, allocations: 20.66 kB / 422.3 MB, free: 17.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.2022, allocations: 215.4 kB / 422.5 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.2023, allocations: 8.359 kB / 422.5 MB, free: 17.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.2023, allocations: 12.38 kB / 422.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005008/0.2028, allocations: 0.554 MB / 423.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.2028, allocations: 4.125 kB / 423.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.2028, allocations: 15.88 kB / 423.1 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.2028, allocations: 0 / 423.1 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.203, allocations: 140.3 kB / 423.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002719/0.2033, allocations: 337.8 kB / 423.6 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.2035, allocations: 339 kB / 423.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.2037, allocations: 174.6 kB / 424.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.2037, allocations: 0 / 424.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.242e-05/0.2037, allocations: 42.48 kB / 424.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.173e-06/0.2037, allocations: 0 / 424.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.0005438/0.2043, allocations: 0.5549 MB / 424.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.2043, allocations: 137.4 kB / 424.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.99e-05/0.2044, allocations: 167.8 kB / 425 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.2045, allocations: 25.7 kB / 425 MB, free: 14.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.621e-05/0.2045, allocations: 101 kB / 425.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.2045, allocations: 35.91 kB / 425.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.608e-05/0.2046, allocations: 82.12 kB / 425.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.94e-05/0.2047, allocations: 342.8 kB / 425.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.823e-05/0.2048, allocations: 68.83 kB / 425.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.2049, allocations: 384 kB / 426 MB, free: 13.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.2052, allocations: 0.5783 MB / 426.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2052, allocations: 4 kB / 426.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004574/0.2057, allocations: 493.1 kB / 427.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.2057, allocations: 67.39 kB / 427.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.2058, allocations: 11.94 kB / 427.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.2058, allocations: 16 kB / 427.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.206, allocations: 87.84 kB / 427.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.206, allocations: 23.92 kB / 427.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.2062, allocations: 35.69 kB / 427.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.2062, allocations: 28 kB / 427.3 MB, free: 11.88 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.0001499/0.2063, allocations: 261 kB / 427.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002533/0.2066, allocations: 311.1 kB / 427.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.097e-05/0.2066, allocations: 18.62 kB / 427.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2067, allocations: 4 kB / 427.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.2067, allocations: 4 kB / 427.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2067, allocations: 0 / 427.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000135/0.2068, allocations: 233.2 kB / 428.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.2068, allocations: 4 kB / 428.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.914e-05/0.2069, allocations: 11.98 kB / 428.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2069, allocations: 4.188 kB / 428.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.2069, allocations: 0 / 428.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2069, allocations: 7.938 kB / 428.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2069, allocations: 4.078 kB / 428.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003634/0.2073, allocations: 0.5099 MB / 428.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.933e-05/0.2073, allocations: 100.8 kB / 428.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.2074, allocations: 8 kB / 428.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.908e-05/0.2074, allocations: 0 / 428.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.2075, allocations: 11.98 kB / 428.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.2075, allocations: 4 kB / 428.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.997e-05/0.2075, allocations: 105.7 kB / 428.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2075, allocations: 0 / 428.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003723/0.2079, allocations: 43.98 kB / 429 MB, free: 10.14 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.0005607/0.2085, allocations: 327.5 kB / 429.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004398/0.2089, allocations: 446.9 kB / 429.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.209, allocations: 3.938 kB / 429.7 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.502e-05/0.209, allocations: 126.8 kB / 429.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004965/0.2095, allocations: 290.2 kB / 430.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005493/0.2101, allocations: 464.4 kB / 430.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.2103, allocations: 0.7755 MB / 431.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.579e-05/0.2104, allocations: 29.53 kB / 431.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.505e-05/0.2104, allocations: 15.44 kB / 431.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2104, allocations: 0 / 431.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of Templates: time 0.005195/0.2156, allocations: 2.366 MB / 433.8 MB, free: 5.309 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.makefile (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 & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)