Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007929/0.000793, allocations: 185.1 kB / 16.13 MB, free: 5.266 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.174/1.174, allocations: 225.7 MB / 242.6 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006841/0.0006841, allocations: 102.7 kB / 293.8 MB, free: 9.477 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05171/0.05171, allocations: 12.25 MB / 357.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002696, allocations: 12 kB / 421.2 MB, free: 52.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07323/0.07351, allocations: 53.36 MB / 474.6 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002343/0.07588, allocations: 1.987 MB / 476.5 MB, free: 13.01 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002768/0.07618, allocations: 285.8 kB / 476.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.31e-05/0.07626, allocations: 4 kB / 476.8 MB, free: 12.69 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.07641, allocations: 19.86 kB / 476.8 MB, free: 12.67 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.338e-05/0.07647, allocations: 3.984 kB / 476.8 MB, free: 12.67 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.07667, allocations: 47.91 kB / 476.9 MB, free: 12.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.07678, allocations: 67.78 kB / 477 MB, free: 12.55 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.654e-05/0.07687, allocations: 28.19 kB / 477 MB, free: 12.52 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.392e-05/0.07692, allocations: 27.86 kB / 477 MB, free: 12.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.697e-05/0.07698, allocations: 23.86 kB / 477 MB, free: 12.47 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.428e-05/0.077, allocations: 0 / 477 MB, free: 12.47 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.12e-05/0.07706, allocations: 23.98 kB / 477.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.001e-05/0.0771, allocations: 19.91 kB / 477.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.45e-05/0.07718, allocations: 61.45 kB / 477.1 MB, free: 12.36 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.07733, allocations: 103.6 kB / 477.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.07734, allocations: 4 kB / 477.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.07735, allocations: 0 / 477.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.996e-06/0.07736, allocations: 0 / 477.2 MB, free: 12.26 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003628/0.07772, allocations: 434.4 kB / 477.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.913e-05/0.07776, allocations: 11.97 kB / 477.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.0778, allocations: 16.83 kB / 477.7 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.07799, allocations: 196.1 kB / 477.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.07802, allocations: 4.375 kB / 477.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.07804, allocations: 8.375 kB / 477.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003865/0.07843, allocations: 270.5 kB / 478.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.07845, allocations: 0 / 478.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.07846, allocations: 4 kB / 478.2 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.07849, allocations: 12 kB / 478.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.68e-05/0.07859, allocations: 59.91 kB / 478.2 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003072/0.07891, allocations: 301.6 kB / 478.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.07908, allocations: 129.4 kB / 478.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.806e-05/0.07918, allocations: 73.75 kB / 478.7 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.0792, allocations: 4 kB / 478.7 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.07923, allocations: 38.5 kB / 478.8 MB, free: 10.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.402e-06/0.07923, allocations: 0 / 478.8 MB, free: 10.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003564/0.0796, allocations: 256.7 kB / 479 MB, free: 10.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.07967, allocations: 140.5 kB / 479.2 MB, free: 10.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.076e-05/0.07976, allocations: 121.8 kB / 479.3 MB, free: 9.965 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.07978, allocations: 25.8 kB / 479.3 MB, free: 9.934 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.088e-05/0.07984, allocations: 96.36 kB / 479.4 MB, free: 9.832 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.07986, allocations: 15.89 kB / 479.4 MB, free: 9.816 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.07987, allocations: 4 kB / 479.4 MB, free: 9.812 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.874e-05/0.07998, allocations: 326.8 kB / 479.7 MB, free: 9.484 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.248e-05/0.08003, allocations: 27.98 kB / 479.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.08016, allocations: 159.9 kB / 479.9 MB, free: 9.242 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.08039, allocations: 299.7 kB / 480.2 MB, free: 8.863 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.0804, allocations: 4 kB / 480.2 MB, free: 8.859 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002889/0.0807, allocations: 252.6 kB / 480.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.526e-05/0.08074, allocations: 63.39 kB / 480.5 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.08076, allocations: 11.98 kB / 480.5 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.08078, allocations: 4 kB / 480.5 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.807e-05/0.08087, allocations: 35.92 kB / 480.6 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.08089, allocations: 12.47 kB / 480.6 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.239e-05/0.08097, allocations: 19.84 kB / 480.6 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.08099, allocations: 16 kB / 480.6 MB, free: 8.422 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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.0001567/0.08115, allocations: 191.4 kB / 480.8 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.0813, allocations: 121.5 kB / 480.9 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.512e-05/0.08133, allocations: 12.84 kB / 480.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.08135, allocations: 11.98 kB / 481 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.08136, allocations: 3.938 kB / 481 MB, free: 8.059 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.08137, allocations: 0 / 481 MB, free: 8.059 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.08154, allocations: 197.5 kB / 481.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.08155, allocations: 0 / 481.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.32e-05/0.08156, allocations: 3.938 kB / 481.2 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.08157, allocations: 0 / 481.2 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.08159, allocations: 4 kB / 481.2 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.08159, allocations: 0 / 481.2 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.0816, allocations: 7.938 kB / 481.2 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.08188, allocations: 331.5 kB / 481.5 MB, free: 7.445 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.483e-05/0.08193, allocations: 84.95 kB / 481.6 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.08195, allocations: 4 kB / 481.6 MB, free: 7.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.111e-05/0.08201, allocations: 4 kB / 481.6 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.586e-05/0.08204, allocations: 7.984 kB / 481.6 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.08205, allocations: 4 kB / 481.6 MB, free: 7.324 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.175e-05/0.08211, allocations: 91.27 kB / 481.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08212, allocations: 0 / 481.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002551/0.08238, allocations: 28 kB / 481.7 MB, free: 7.207 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * 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: 1 * 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 Backend phase and start with SimCode phase: time 0.0004689/0.08285, allocations: 316.4 kB / 482 MB, free: 6.965 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002578/0.08312, allocations: 239.5 kB / 482.3 MB, free: 6.707 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.08313, allocations: 320 / 482.3 MB, free: 6.707 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.857e-05/0.08321, allocations: 130.8 kB / 482.4 MB, free: 6.555 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.08352, allocations: 75.95 kB / 482.5 MB, free: 6.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004366/0.08397, allocations: 290.2 kB / 482.7 MB, free: 6.164 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.08424, allocations: 0.7121 MB / 483.5 MB, free: 5.426 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.061e-05/0.08429, allocations: 12.88 kB / 483.5 MB, free: 5.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.426e-05/0.08432, allocations: 15.44 kB / 483.5 MB, free: 5.395 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.08433, allocations: 0 / 483.5 MB, free: 5.395 MB / 314.7 MB Notification: Performance of Templates: time 0.003351/0.08769, allocations: 1.498 MB / 485 MB, free: 3.906 MB / 314.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)