Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.Blocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_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.00125/0.00125, allocations: 102.6 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 180.8 kB / 16.96 MB, free: 6.902 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.476/1.476, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1966/0.1966, allocations: 12.04 MB / 304.2 MB, free: 1.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00055/0.0005501, allocations: 8 kB / 368.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1353, allocations: 53.35 MB / 421.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003026/0.1384, allocations: 2.322 MB / 424.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004682/0.1389, allocations: 299 kB / 424.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.529e-05/0.1389, allocations: 7.938 kB / 424.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.1392, allocations: 39.77 kB / 424.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.904e-05/0.1392, allocations: 11.94 kB / 424.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001945/0.1394, allocations: 75.78 kB / 424.5 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000164/0.1396, allocations: 144 kB / 424.6 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.1398, allocations: 81.5 kB / 424.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.574e-05/0.1399, allocations: 47.78 kB / 424.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.719e-05/0.1399, allocations: 43.72 kB / 424.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.14, allocations: 4 kB / 424.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.971e-05/0.14, allocations: 24 kB / 424.8 MB, free: 500 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.586e-05/0.1401, allocations: 43.77 kB / 424.9 MB, free: 456 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.244e-05/0.1402, allocations: 89.25 kB / 424.9 MB, free: 360 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.1404, allocations: 175.6 kB / 425.1 MB, free: 184 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1404, allocations: 4 kB / 425.1 MB, free: 180 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1404, allocations: 0 / 425.1 MB, free: 180 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1405, allocations: 0 / 425.1 MB, free: 180 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.2342/0.3747, allocations: 430.9 kB / 425.5 MB, free: 39.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.3747, allocations: 9 kB / 425.6 MB, free: 39.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.329e-05/0.3748, allocations: 54.02 kB / 425.6 MB, free: 39.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.922e-05/0.3749, allocations: 19.16 kB / 425.6 MB, free: 39.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/0.3752, allocations: 222.9 kB / 425.8 MB, free: 39.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.3752, allocations: 10.19 kB / 425.8 MB, free: 39.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.3752, allocations: 15.42 kB / 425.9 MB, free: 39.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.3756, allocations: 187.2 kB / 426 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.3756, allocations: 5 kB / 426.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.3756, allocations: 8.094 kB / 426.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.3757, allocations: 5.312 kB / 426.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.3759, allocations: 116.4 kB / 426.2 MB, free: 39.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008329/0.3767, allocations: 495.2 kB / 426.7 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.377, allocations: 124.7 kB / 426.8 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.3771, allocations: 76.03 kB / 426.9 MB, free: 38.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.3771, allocations: 4.156 kB / 426.9 MB, free: 38.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.3774, allocations: 124.2 kB / 427 MB, free: 38.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.654e-06/0.3774, allocations: 0.6562 kB / 427 MB, free: 38.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003842/0.3778, allocations: 251.2 kB / 427.2 MB, free: 38.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.3778, allocations: 95 kB / 427.3 MB, free: 38.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.378, allocations: 147.4 kB / 427.5 MB, free: 38.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.378, allocations: 38.94 kB / 427.5 MB, free: 38.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.963e-05/0.3781, allocations: 125.5 kB / 427.6 MB, free: 38.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/0.3781, allocations: 62.31 kB / 427.7 MB, free: 38.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.014e-05/0.3782, allocations: 31.56 kB / 427.7 MB, free: 38.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.767e-05/0.3782, allocations: 331.4 kB / 428 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.3783, allocations: 71.23 kB / 428.1 MB, free: 38.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.3785, allocations: 162.6 kB / 428.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.3787, allocations: 253 kB / 428.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3787, allocations: 1.125 kB / 428.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003641/0.3791, allocations: 277.5 kB / 428.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.3791, allocations: 9.5 kB / 428.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.3792, allocations: 4.531 kB / 428.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.3792, allocations: 6.406 kB / 428.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.3793, allocations: 32.44 kB / 428.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.3793, allocations: 9.422 kB / 428.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.313e-05/0.3794, allocations: 19.19 kB / 428.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.3794, allocations: 20.22 kB / 428.9 MB, free: 37.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * 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 prepare postOptimizeDAE: time 0.0001459/0.3796, allocations: 168.6 kB / 429.1 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.3796, allocations: 13.88 kB / 429.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.74e-05/0.3797, allocations: 21.16 kB / 429.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.3797, allocations: 0 / 429.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3797, allocations: 2.969 kB / 429.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3797, allocations: 4.266 kB / 429.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.3799, allocations: 239.5 kB / 429.3 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-06/0.3799, allocations: 6.656 kB / 429.3 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.8e-05/0.38, allocations: 2.406 kB / 429.3 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.38, allocations: 6.188 kB / 429.3 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.38, allocations: 1.938 kB / 429.3 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.38, allocations: 4.75 kB / 429.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.38, allocations: 0 / 429.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002301/0.3802, allocations: 232.3 kB / 429.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.078e-05/0.3803, allocations: 92.31 kB / 429.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.3803, allocations: 8.156 kB / 429.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.784e-05/0.3803, allocations: 3.312 kB / 429.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.3804, allocations: 8.672 kB / 429.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-06/0.3804, allocations: 14.34 kB / 429.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.355e-05/0.3805, allocations: 108 kB / 429.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3805, allocations: 0 / 429.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002878/0.3808, allocations: 48.62 kB / 429.9 MB, free: 37.16 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: 17 ($whenCondition1,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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0007489/0.3815, allocations: 0.8764 MB / 430.7 MB, free: 36.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003035/0.3818, allocations: 212.2 kB / 430.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3818, allocations: 6.5 kB / 430.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.382, allocations: 103.6 kB / 431 MB, free: 36.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.3821, allocations: 14.19 kB / 431.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.3842, allocations: 2.165 MB / 433.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.3843, allocations: 0.7403 MB / 434 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.483e-05/0.3844, allocations: 22.56 kB / 434 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.543e-05/0.3845, allocations: 56.88 kB / 434 MB, free: 34.28 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3845, allocations: 0 / 434 MB, free: 34.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01265/0.3971, allocations: 2.904 MB / 436.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/0.3973, allocations: 271.2 kB / 437.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.228, allocations: 0 / 437.2 MB, free: 33.66 MB / 350.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)