Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.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.TestInputSpaceMouse,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputSpaceMouse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputSpaceMouse",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.001288/0.001288, allocations: 106.7 kB / 16.45 MB, free: 6.398 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.001248/0.001248, allocations: 186.4 kB / 17.38 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.408/1.408, allocations: 222.9 MB / 241.1 MB, free: 15.08 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.06252/0.06252, allocations: 12.05 MB / 303.3 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 71.88 kB / 419.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09624, allocations: 52.31 MB / 471.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.003958/0.1002, allocations: 2.242 MB / 474.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002861/0.1005, allocations: 127.6 kB / 474.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.345e-05/0.1006, allocations: 3.938 kB / 474.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.1008, allocations: 23.86 kB / 474.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.267e-05/0.1009, allocations: 11.92 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.1011, allocations: 43.89 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.1013, allocations: 67.78 kB / 474.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.1014, allocations: 27.95 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.888e-05/0.1014, allocations: 27.86 kB / 474.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.031e-05/0.1015, allocations: 27.84 kB / 474.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.1015, allocations: 4 kB / 474.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.834e-05/0.1016, allocations: 27.98 kB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.106e-05/0.1017, allocations: 39.92 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.402e-05/0.1018, allocations: 51.61 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.102, allocations: 143.5 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.102, allocations: 0 / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.102, allocations: 3.938 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.1021, allocations: 4 kB / 474.7 MB, free: 10.49 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005095/0.1026, allocations: 482.2 kB / 475.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.1026, allocations: 8.031 kB / 475.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.691e-05/0.1027, allocations: 46.67 kB / 475.3 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.12e-05/0.1027, allocations: 24.8 kB / 475.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.103, allocations: 211.1 kB / 475.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.103, allocations: 8.375 kB / 475.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.103, allocations: 4.375 kB / 475.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.1036, allocations: 391.7 kB / 475.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1036, allocations: 3.938 kB / 475.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.1036, allocations: 4 kB / 475.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1036, allocations: 0 / 475.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.1038, allocations: 75.97 kB / 476 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003823/0.1042, allocations: 325.5 kB / 476.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.1045, allocations: 185.5 kB / 476.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.1046, allocations: 141.8 kB / 476.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.1047, allocations: 3.984 kB / 476.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.1047, allocations: 34.56 kB / 476.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.383e-06/0.1047, allocations: 0 / 476.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.0005764/0.1053, allocations: 379.7 kB / 477 MB, free: 7.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.274e-05/0.1054, allocations: 145.2 kB / 477.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.1056, allocations: 144.1 kB / 477.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.1056, allocations: 37.73 kB / 477.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.706e-05/0.1057, allocations: 100.6 kB / 477.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.1057, allocations: 15.94 kB / 477.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-05/0.1058, allocations: 61.98 kB / 477.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.106, allocations: 334.8 kB / 477.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.866e-05/0.1061, allocations: 48.53 kB / 477.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.1063, allocations: 248.5 kB / 478.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004048/0.1067, allocations: 425.8 kB / 478.5 MB, free: 6.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1067, allocations: 4 kB / 478.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005064/0.1072, allocations: 360.2 kB / 478.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.946e-05/0.1073, allocations: 60.38 kB / 479 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.1073, allocations: 8 kB / 479 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.1073, allocations: 12 kB / 479 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.1075, allocations: 63.84 kB / 479 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.858e-05/0.1075, allocations: 19.94 kB / 479.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.1077, allocations: 19.89 kB / 479.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.1077, allocations: 16.09 kB / 479.1 MB, free: 5.586 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 17 (synchronizeRealtime.initialized,spaceMouseInput.buttons[16],spaceMouseInput.buttons[15],spaceMouseInput.buttons[14],spaceMouseInput.buttons[13],spaceMouseInput.buttons[12],spaceMouseInput.buttons[11],spaceMouseInput.buttons[10],spaceMouseInput.buttons[9],spaceMouseInput.buttons[8],spaceMouseInput.buttons[7],spaceMouseInput.buttons[6],spaceMouseInput.buttons[5],spaceMouseInput.buttons[4],spaceMouseInput.buttons[3],spaceMouseInput.buttons[2],spaceMouseInput.buttons[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * 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.0002003/0.1079, allocations: 227.2 kB / 479.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.1082, allocations: 212.2 kB / 479.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.024e-05/0.1083, allocations: 25.95 kB / 479.5 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1083, allocations: 0 / 479.5 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1083, allocations: 3.938 kB / 479.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-06/0.1083, allocations: 0 / 479.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.1085, allocations: 221.4 kB / 479.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.1085, allocations: 0 / 479.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.768e-05/0.1086, allocations: 12 kB / 479.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1086, allocations: 0 / 479.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.1086, allocations: 0 / 479.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1086, allocations: 4 kB / 479.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1086, allocations: 4 kB / 479.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004858/0.1091, allocations: 411.9 kB / 480.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.293e-05/0.1092, allocations: 92.95 kB / 480.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.1092, allocations: 4 kB / 480.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.774e-05/0.1093, allocations: 8 kB / 480.3 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.114e-05/0.1093, allocations: 144 / 480.3 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1094, allocations: 11.97 kB / 480.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.156e-05/0.1095, allocations: 109.1 kB / 480.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1095, allocations: 0 / 480.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003478/0.1098, allocations: 32 kB / 480.4 MB, free: 4.109 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 (synchronizeRealtime.initialized,spaceMouseInput.buttons[1],spaceMouseInput.buttons[2],spaceMouseInput.buttons[3],spaceMouseInput.buttons[4],spaceMouseInput.buttons[5],spaceMouseInput.buttons[6],spaceMouseInput.buttons[7],spaceMouseInput.buttons[8],spaceMouseInput.buttons[9],spaceMouseInput.buttons[10],spaceMouseInput.buttons[11],spaceMouseInput.buttons[12],spaceMouseInput.buttons[13],spaceMouseInput.buttons[14],spaceMouseInput.buttons[15],spaceMouseInput.buttons[16]) * 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.001422/0.1112, allocations: 1.113 MB / 481.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004251/0.1117, allocations: 316.4 kB / 481.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.1117, allocations: 4.062 kB / 481.9 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.1118, allocations: 122.8 kB / 482 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.1123, allocations: 188.8 kB / 482.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.1148, allocations: 2.425 MB / 484.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.1153, allocations: 0.7442 MB / 485.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.911e-05/0.1153, allocations: 25.78 kB / 485.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.456e-05/0.1154, allocations: 43.42 kB / 485.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1154, allocations: 0 / 485.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.1402, allocations: 3.847 MB / 489.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.895/8.035, allocations: 13.47 kB / 489.3 MB, free: 11.1 MB / 366.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.sim & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputSpaceMouse.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe 2>&1)