Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 107.6 kB / 16.45 MB, free: 6.449 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.0009307/0.0009307, allocations: 189.5 kB / 17.39 MB, free: 5.668 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.24/1.24, allocations: 222.9 MB / 241.1 MB, free: 15.14 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.05367/0.05367, allocations: 12.04 MB / 303.3 MB, free: 3.105 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 63.91 kB / 420.1 MB, free: 17.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.07983, allocations: 52.31 MB / 472.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003639/0.0835, allocations: 2.239 MB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003416/0.08387, allocations: 123.6 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.807e-05/0.08397, allocations: 3.938 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.08415, allocations: 23.86 kB / 474.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.967e-05/0.08422, allocations: 3.938 kB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.08442, allocations: 59.55 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.08457, allocations: 75.78 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.08468, allocations: 28.19 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.087e-05/0.08475, allocations: 35.86 kB / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.068e-05/0.08481, allocations: 35.83 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.08483, allocations: 4 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.756e-05/0.0849, allocations: 24 kB / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.938e-05/0.08496, allocations: 23.92 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.942e-05/0.08502, allocations: 47.67 kB / 475.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.08522, allocations: 111.6 kB / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.08524, allocations: 0 / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.08524, allocations: 0 / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.08525, allocations: 0 / 475.2 MB, free: 10.03 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005143/0.08577, allocations: 446.6 kB / 475.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.08581, allocations: 12.03 kB / 475.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.466e-05/0.08586, allocations: 12.75 kB / 475.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.08611, allocations: 196.1 kB / 475.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.08613, allocations: 8.375 kB / 475.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.821e-05/0.08615, allocations: 12.38 kB / 475.9 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004001/0.08656, allocations: 276 kB / 476.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.08658, allocations: 0 / 476.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.0866, allocations: 7.938 kB / 476.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/0.08662, allocations: 8 kB / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001036/0.08673, allocations: 59.91 kB / 476.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003482/0.08709, allocations: 309.6 kB / 476.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.08727, allocations: 133.3 kB / 476.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.862e-05/0.08737, allocations: 69.83 kB / 476.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.363e-06/0.08739, allocations: 4 kB / 476.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.08742, allocations: 42.48 kB / 476.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.08742, allocations: 0 / 476.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003961/0.08783, allocations: 258.7 kB / 477 MB, free: 7.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.08791, allocations: 136.5 kB / 477.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.446e-05/0.08801, allocations: 121.8 kB / 477.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.08803, allocations: 29.73 kB / 477.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.359e-05/0.08809, allocations: 96.41 kB / 477.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.08812, allocations: 19.89 kB / 477.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-05/0.08818, allocations: 41.7 kB / 477.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.0883, allocations: 322.8 kB / 477.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.911e-05/0.08836, allocations: 31.97 kB / 477.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.08849, allocations: 153.1 kB / 477.9 MB, free: 6.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.08874, allocations: 311.7 kB / 478.2 MB, free: 6.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.08875, allocations: 0 / 478.2 MB, free: 6.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003297/0.08909, allocations: 252.9 kB / 478.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.615e-05/0.08914, allocations: 63.39 kB / 478.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.08915, allocations: 7.938 kB / 478.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.08918, allocations: 8 kB / 478.6 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.507e-05/0.08928, allocations: 23.88 kB / 478.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.08929, allocations: 11.98 kB / 478.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.14e-05/0.08938, allocations: 19.84 kB / 478.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.0894, allocations: 8 kB / 478.6 MB, free: 6.125 MB / 350.1 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.0001546/0.08956, allocations: 207.6 kB / 478.8 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.08973, allocations: 127 kB / 479 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.871e-05/0.08977, allocations: 12.84 kB / 479 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.08979, allocations: 7.938 kB / 479 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.0898, allocations: 4 kB / 479 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.08981, allocations: 3.984 kB / 479 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.08998, allocations: 185.5 kB / 479.2 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.08999, allocations: 4 kB / 479.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.308e-05/0.09001, allocations: 4 kB / 479.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.09002, allocations: 4 kB / 479.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.09004, allocations: 7.938 kB / 479.2 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.09004, allocations: 3.938 kB / 479.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.09005, allocations: 0 / 479.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.09035, allocations: 323.5 kB / 479.5 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.09041, allocations: 85.2 kB / 479.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.09044, allocations: 4 kB / 479.6 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.271e-05/0.0905, allocations: 11.94 kB / 479.6 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.09052, allocations: 0 / 479.6 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.09054, allocations: 8 kB / 479.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.861e-05/0.09059, allocations: 99.27 kB / 479.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0906, allocations: 0 / 479.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003025/0.0909, allocations: 24 kB / 479.7 MB, free: 4.898 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: 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.0005164/0.09143, allocations: 275.3 kB / 480 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.09177, allocations: 254.3 kB / 480.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.09178, allocations: 0 / 480.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.238e-05/0.09187, allocations: 120.1 kB / 480.4 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.09223, allocations: 87.12 kB / 480.4 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003841/0.09263, allocations: 231.9 kB / 480.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.09289, allocations: 0.7193 MB / 481.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.064e-05/0.09294, allocations: 16.86 kB / 481.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.093e-05/0.09297, allocations: 19.44 kB / 481.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09298, allocations: 0 / 481.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of Templates: time 0.003861/0.09684, allocations: 1.516 MB / 482.9 MB, free: 1.641 MB / 350.1 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)