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: "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard",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.001191/0.001191, allocations: 106.7 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.00123/0.00123, allocations: 186.4 kB / 17.38 MB, free: 5.691 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.29/1.29, allocations: 222.9 MB / 241.1 MB, free: 15.09 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.05501/0.05501, allocations: 12.05 MB / 303.3 MB, free: 3.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 67.89 kB / 419.6 MB, free: 17.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07973/0.08085, allocations: 52.33 MB / 471.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003889/0.08478, allocations: 2.23 MB / 474.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002703/0.08508, allocations: 127.6 kB / 474.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.308e-05/0.08516, allocations: 8 kB / 474.2 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.08533, allocations: 19.8 kB / 474.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.53e-05/0.0854, allocations: 7.938 kB / 474.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.08561, allocations: 43.89 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.08576, allocations: 83.75 kB / 474.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.08587, allocations: 20.22 kB / 474.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.612e-05/0.08593, allocations: 35.84 kB / 474.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.632e-05/0.08599, allocations: 27.86 kB / 474.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.132e-05/0.08601, allocations: 8 kB / 474.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.348e-05/0.08608, allocations: 35.91 kB / 474.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.332e-05/0.08614, allocations: 23.92 kB / 474.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.168e-05/0.08621, allocations: 35.75 kB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.08642, allocations: 119.5 kB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.08644, allocations: 0 / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.08644, allocations: 0 / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.08645, allocations: 0 / 474.7 MB, free: 10.55 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.0004639/0.08692, allocations: 446.3 kB / 475.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.08696, allocations: 12.03 kB / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.787e-05/0.08701, allocations: 50.73 kB / 475.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.08705, allocations: 12.75 kB / 475.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.0873, allocations: 196.2 kB / 475.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.08732, allocations: 8.375 kB / 475.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.08734, allocations: 4.375 kB / 475.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.08774, allocations: 281.8 kB / 475.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.08776, allocations: 0 / 475.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.08777, allocations: 4 kB / 475.7 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.0878, allocations: 8 kB / 475.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/0.08791, allocations: 59.95 kB / 475.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.08824, allocations: 305.5 kB / 476.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.08842, allocations: 133.4 kB / 476.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.963e-05/0.08852, allocations: 69.81 kB / 476.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.08853, allocations: 4 kB / 476.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.08857, allocations: 42.5 kB / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.08857, allocations: 0 / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003899/0.08897, allocations: 252.8 kB / 476.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.08904, allocations: 138.1 kB / 476.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.904e-05/0.08913, allocations: 133.7 kB / 476.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.08916, allocations: 25.7 kB / 476.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.635e-05/0.08921, allocations: 92.42 kB / 476.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.08924, allocations: 15.89 kB / 476.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.0893, allocations: 49.73 kB / 477 MB, free: 7.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.9e-05/0.08939, allocations: 326.8 kB / 477.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.867e-05/0.08946, allocations: 27.98 kB / 477.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.08958, allocations: 149.1 kB / 477.5 MB, free: 7.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.08982, allocations: 303.7 kB / 477.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.08983, allocations: 8 kB / 477.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003113/0.09015, allocations: 253 kB / 478 MB, free: 6.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.139e-05/0.0902, allocations: 67.39 kB / 478.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.09021, allocations: 8.156 kB / 478.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.09024, allocations: 11.88 kB / 478.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.187e-05/0.09034, allocations: 27.92 kB / 478.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.09035, allocations: 11.98 kB / 478.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.998e-05/0.09044, allocations: 19.84 kB / 478.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.09046, allocations: 8 kB / 478.2 MB, free: 6.586 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.000158/0.09062, allocations: 207.5 kB / 478.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.09078, allocations: 125.4 kB / 478.5 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.725e-05/0.09081, allocations: 12.84 kB / 478.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.09083, allocations: 11.92 kB / 478.5 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.09084, allocations: 0 / 478.5 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.09085, allocations: 4 kB / 478.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.09102, allocations: 189.5 kB / 478.7 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.09103, allocations: 0 / 478.7 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.154e-05/0.09105, allocations: 7.938 kB / 478.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.09105, allocations: 0 / 478.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.09107, allocations: 12 kB / 478.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.09108, allocations: 3.938 kB / 478.7 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.09109, allocations: 4 kB / 478.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.09138, allocations: 321.7 kB / 479.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.566e-05/0.09143, allocations: 85.02 kB / 479.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.09145, allocations: 4 kB / 479.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.607e-05/0.09151, allocations: 8 kB / 479.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.09155, allocations: 3.984 kB / 479.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.09156, allocations: 4 kB / 479.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.799e-05/0.09162, allocations: 95.28 kB / 479.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09162, allocations: 0 / 479.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.09193, allocations: 35.92 kB / 479.3 MB, free: 5.352 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.0009039/0.09284, allocations: 1.02 MB / 480.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002811/0.09314, allocations: 239.8 kB / 480.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.09315, allocations: 0 / 480.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.253e-05/0.09323, allocations: 118.8 kB / 480.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.09358, allocations: 92.06 kB / 480.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.09535, allocations: 1.908 MB / 482.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.09562, allocations: 0.7154 MB / 483.4 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.939e-05/0.09569, allocations: 32.92 kB / 483.4 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.747e-05/0.09574, allocations: 27.38 kB / 483.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09575, allocations: 0 / 483.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0177/0.1134, allocations: 3.024 MB / 486.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/7.436, allocations: 7.797 kB / 486.5 MB, free: 14.06 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)