Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) 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/DroneLibrary 1.0.0/package.mo", uses=false) Using package DroneLibrary with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/DroneLibrary 1.0.0/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) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Running command: translateModel(DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola") translateModel(DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05918/0.05918, allocations: 12.05 MB / 28.36 MB, free: 1.75 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009644/0.0009644, allocations: 111.8 kB / 32.08 MB, free: 4.594 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 200.1 kB / 35.92 MB, free: 0.7734 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 262.5 MB, free: 7.383 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DroneLibrary 1.0.0/package.mo): time 0.06175/0.06175, allocations: 13.69 MB / 329.2 MB, free: 456 kB / 254.1 MB Notification: Skipped loading package Visualization (1.6,default) using MODELICAPATH /home/hudson/saved_omc/libraries/.openmodelica/libraries (uses-annotation may be wrong). Notification: Performance of FrontEnd - loaded program: time 0.03209/0.03209, allocations: 19.74 MB / 473.2 MB, free: 2.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.3053, allocations: 55.4 MB / 0.5162 GB, free: 20.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola): time 0.004056/0.3094, allocations: 3.894 MB / 0.52 GB, free: 18.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.3106, allocations: 0.9581 MB / 0.521 GB, free: 18.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.3108, allocations: 21.78 kB / 0.521 GB, free: 18.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002681/0.3111, allocations: 119.3 kB / 0.5211 GB, free: 18.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004877/0.3116, allocations: 278.9 kB / 0.5214 GB, free: 18.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.312, allocations: 287.9 kB / 0.5216 GB, free: 17.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005052/0.3125, allocations: 0.629 MB / 0.5223 GB, free: 17.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.3128, allocations: 251.2 kB / 0.5225 GB, free: 17.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.313, allocations: 244.9 kB / 0.5227 GB, free: 17.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.3132, allocations: 268.4 kB / 0.523 GB, free: 17.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.645e-05/0.3133, allocations: 53.28 kB / 0.523 GB, free: 17.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007235/0.314, allocations: 0.7017 MB / 0.5237 GB, free: 17.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.3142, allocations: 145.7 kB / 0.5239 GB, free: 16.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.3143, allocations: 295.8 kB / 0.5241 GB, free: 16.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009802/0.3153, allocations: 0.9835 MB / 0.5251 GB, free: 16.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3153, allocations: 0 / 0.5251 GB, free: 16.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3153, allocations: 0 / 0.5251 GB, free: 16.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.3153, allocations: 0 / 0.5251 GB, free: 16.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001032/0.3164, allocations: 0.9453 MB / 0.526 GB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.3164, allocations: 8.938 kB / 0.526 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.3165, allocations: 83.95 kB / 0.5261 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.3171, allocations: 496.2 kB / 0.5266 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.3171, allocations: 39.48 kB / 0.5266 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-05/0.3172, allocations: 57.83 kB / 0.5267 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006732/0.3179, allocations: 0.5301 MB / 0.5272 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.3179, allocations: 4.438 kB / 0.5272 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.899e-05/0.3179, allocations: 22.59 kB / 0.5272 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.3179, allocations: 11.09 kB / 0.5272 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.3184, allocations: 303.5 kB / 0.5275 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.3202, allocations: 2.407 MB / 0.5299 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008963/0.3212, allocations: 451.2 kB / 0.5303 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/0.3214, allocations: 161.6 kB / 0.5305 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/0.3215, allocations: 8.688 kB / 0.5305 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004044/0.3219, allocations: 298.4 kB / 0.5308 GB, free: 12.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.275e-06/0.3219, allocations: 1.406 kB / 0.5308 GB, free: 12.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=51): time 0.0009072/0.3228, allocations: 0.5394 MB / 0.5313 GB, free: 12.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.3228, allocations: 146.2 kB / 0.5314 GB, free: 11.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004335/0.3233, allocations: 468 kB / 0.5319 GB, free: 11.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.3233, allocations: 39.08 kB / 0.5319 GB, free: 11.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.3235, allocations: 311.3 kB / 0.5322 GB, free: 11.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.3236, allocations: 166.4 kB / 0.5324 GB, free: 11.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.3237, allocations: 128.8 kB / 0.5325 GB, free: 11.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.033e-05/0.3238, allocations: 373.5 kB / 0.5328 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/0.3241, allocations: 149.1 kB / 0.533 GB, free: 10.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003087/0.3244, allocations: 358.7 kB / 0.5333 GB, free: 10.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000908/0.3253, allocations: 0.6054 MB / 0.5339 GB, free: 10.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3253, allocations: 2.688 kB / 0.5339 GB, free: 10.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.0007472/0.3261, allocations: 0.5906 MB / 0.5345 GB, free: 9.805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3261, allocations: 8.828 kB / 0.5345 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.3261, allocations: 7.469 kB / 0.5345 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.3261, allocations: 11.78 kB / 0.5345 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002838/0.3264, allocations: 105.9 kB / 0.5346 GB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.3265, allocations: 15.25 kB / 0.5346 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.3267, allocations: 61.45 kB / 0.5347 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.945e-05/0.3267, allocations: 31.03 kB / 0.5347 GB, free: 9.727 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: y.firstOrder.y:VARIABLE(flow=false start = y.firstOrder.y_start fixed = true ) "Connector of Real output signal" type: Real x.firstOrder.y:VARIABLE(flow=false start = x.firstOrder.y_start fixed = true ) "Connector of Real output signal" type: Real z.firstOrder.y:VARIABLE(flow=false start = z.firstOrder.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition6,$whenCondition5,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,keyboardKeyInput1.additionalKeyStateInt,$PRE.keyboardKeyInput1.additionalKeyStateInt,keyboardKeyInput1.keyStateInt,$PRE.keyboardKeyInput1.keyStateInt,keyboardKeyInput1.keyState,$whenCondition4,$whenCondition3,keyboardKeyInput2.additionalKeyStateInt,$PRE.keyboardKeyInput2.additionalKeyStateInt,keyboardKeyInput2.keyStateInt,$PRE.keyboardKeyInput2.keyStateInt,keyboardKeyInput2.keyState,keyboardKeyInput3.additionalKeyStateInt,$PRE.keyboardKeyInput3.additionalKeyStateInt,keyboardKeyInput3.keyStateInt,$PRE.keyboardKeyInput3.keyStateInt,keyboardKeyInput3.keyState,$whenCondition2,$whenCondition1,keyboardKeyInput4.additionalKeyStateInt,$PRE.keyboardKeyInput4.additionalKeyStateInt,keyboardKeyInput4.keyStateInt,$PRE.keyboardKeyInput4.keyStateInt,keyboardKeyInput4.keyState,keyboardKeyInput5.additionalKeyStateInt,$PRE.keyboardKeyInput5.additionalKeyStateInt,keyboardKeyInput5.keyStateInt,$PRE.keyboardKeyInput5.keyStateInt,keyboardKeyInput5.keyState,z.integrator1.local_reset,z.integrator.local_reset,x.integrator1.local_reset,x.integrator.local_reset,y.integrator1.local_reset,y.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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.000245/0.327, allocations: 232.3 kB / 0.535 GB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.597e-05/0.327, allocations: 67.72 kB / 0.535 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.3271, allocations: 57.61 kB / 0.5351 GB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3272, allocations: 4.312 kB / 0.5351 GB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.3272, allocations: 1.344 kB / 0.5351 GB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.204e-05/0.3272, allocations: 134.8 kB / 0.5352 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.929e-05/0.3273, allocations: 10 kB / 0.5352 GB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.3274, allocations: 14.28 kB / 0.5352 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.3276, allocations: 50.28 kB / 0.5353 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001005/0.3286, allocations: 0.7743 MB / 0.536 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001013/0.3296, allocations: 1.042 MB / 0.537 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002679/0.3299, allocations: 183.9 kB / 0.5372 GB, free: 8.066 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002921/0.3302, allocations: 310.1 kB / 0.5375 GB, free: 7.918 MB / 382.1 MB Notification: Performance of Backend: time 5.01e-07/0.3302, allocations: 0 / 0.5375 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2304/0.5605, allocations: 0.604 MB / 0.5381 GB, free: 7.676 MB / 382.1 MB Notification: Performance of SimCode: time 0.006146/0.5667, allocations: 1.528 MB / 0.5396 GB, free: 6.566 MB / 382.1 MB Notification: Performance of Templates: time 0.6604/1.227, allocations: 7.708 MB / 0.5471 GB, free: 3.258 MB / 382.1 MB make -j1 -f DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola.makefile (rm -f DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola.pipe ; mkfifo DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola.pipe ; head -c 1048576 < DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola.pipe >> ../files/DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola.sim & ./DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola -abortSlowSimulation -alarm=480 -lv LOG_STATS > DroneLibrary_DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola.pipe 2>&1)