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.06438/0.06438, allocations: 12.06 MB / 28.37 MB, free: 1.57 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.0009994/0.0009995, allocations: 104 kB / 32.09 MB, free: 4.453 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.001349/0.001349, allocations: 196.5 kB / 35.92 MB, free: 0.6367 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.352/1.352, allocations: 222.9 MB / 262.5 MB, free: 10.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DroneLibrary 1.0.0/package.mo): time 0.1783/0.1783, allocations: 13.67 MB / 329.2 MB, free: 2.574 MB / 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.3629/0.3629, allocations: 19.64 MB / 473.1 MB, free: 38 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09389/0.4568, allocations: 55.41 MB / 0.5162 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFInst.instantiate(DroneLibrary.Visualize.Inputs.Keyboard.KeyboardInputs_Dymola): time 0.004603/0.4614, allocations: 3.903 MB / 0.52 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.4628, allocations: 0.9567 MB / 0.5209 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002642/0.4631, allocations: 19.09 kB / 0.5209 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.4634, allocations: 117.4 kB / 0.521 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005084/0.464, allocations: 288.5 kB / 0.5213 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.4644, allocations: 284.6 kB / 0.5216 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005122/0.4649, allocations: 0.6305 MB / 0.5222 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.4652, allocations: 248.7 kB / 0.5224 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.4655, allocations: 241.6 kB / 0.5227 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000205/0.4657, allocations: 270.4 kB / 0.5229 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.139e-05/0.4658, allocations: 57.59 kB / 0.523 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007193/0.4665, allocations: 0.7026 MB / 0.5237 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.4666, allocations: 149.3 kB / 0.5238 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.4668, allocations: 286.4 kB / 0.5241 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009122/0.4677, allocations: 0.9772 MB / 0.525 GB, free: 6.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4677, allocations: 0 / 0.525 GB, free: 6.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4677, allocations: 0 / 0.525 GB, free: 6.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.4678, allocations: 0.75 kB / 0.525 GB, free: 6.617 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.001189/0.469, allocations: 0.926 MB / 0.5259 GB, free: 5.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.469, allocations: 9.812 kB / 0.5259 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.4691, allocations: 75.19 kB / 0.526 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005537/0.4697, allocations: 0.4894 MB / 0.5265 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.44e-05/0.4698, allocations: 37.94 kB / 0.5265 GB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.728e-05/0.4698, allocations: 48.56 kB / 0.5266 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007159/0.4706, allocations: 0.5275 MB / 0.5271 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.4706, allocations: 2.344 kB / 0.5271 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.4706, allocations: 21.19 kB / 0.5271 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.4707, allocations: 15.69 kB / 0.5271 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004707/0.4711, allocations: 310.9 kB / 0.5274 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.473, allocations: 2.41 MB / 0.5298 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009426/0.474, allocations: 451 kB / 0.5302 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.4742, allocations: 156.9 kB / 0.5304 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.506e-05/0.4743, allocations: 4.719 kB / 0.5304 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004248/0.4747, allocations: 298 kB / 0.5306 GB, free: 1.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.214e-06/0.4747, allocations: 0 / 0.5306 GB, free: 1.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=51): time 0.0009398/0.4757, allocations: 0.5366 MB / 0.5312 GB, free: 1.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.4757, allocations: 144.8 kB / 0.5313 GB, free: 1.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.4762, allocations: 471.3 kB / 0.5318 GB, free: 1.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.4762, allocations: 37.27 kB / 0.5318 GB, free: 1.211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.4763, allocations: 316.8 kB / 0.5321 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.175e-05/0.4764, allocations: 155.6 kB / 0.5322 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.4766, allocations: 121 kB / 0.5324 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.651e-05/0.4767, allocations: 376.9 kB / 0.5327 GB, free: 368 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.4769, allocations: 145.2 kB / 0.5329 GB, free: 300 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.4772, allocations: 366.7 kB / 0.5332 GB, free: 15.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.4783, allocations: 0.6104 MB / 0.5338 GB, free: 15.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.4783, allocations: 0 / 0.5338 GB, free: 15.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.0008372/0.4792, allocations: 0.5821 MB / 0.5344 GB, free: 15.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.4792, allocations: 12.91 kB / 0.5344 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.4792, allocations: 7.25 kB / 0.5344 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.4793, allocations: 7.75 kB / 0.5344 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003001/0.4796, allocations: 103.8 kB / 0.5345 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.049e-05/0.4796, allocations: 15.33 kB / 0.5345 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.4799, allocations: 65.62 kB / 0.5346 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.4799, allocations: 25.88 kB / 0.5346 GB, free: 15.07 MB / 398.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.0003445/0.4802, allocations: 226.8 kB / 0.5348 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.97e-05/0.4804, allocations: 60.36 kB / 0.5349 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.4805, allocations: 70.31 kB / 0.5349 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.4805, allocations: 3.5 kB / 0.5349 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4805, allocations: 0 / 0.5349 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.4806, allocations: 134.7 kB / 0.5351 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.79e-05/0.4807, allocations: 15.22 kB / 0.5351 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.4809, allocations: 7.984 kB / 0.5351 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.481, allocations: 49.3 kB / 0.5351 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001146/0.4822, allocations: 0.773 MB / 0.5359 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001126/0.4833, allocations: 1.036 MB / 0.5369 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002737/0.4836, allocations: 184.6 kB / 0.5371 GB, free: 13.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003163/0.4839, allocations: 313.1 kB / 0.5374 GB, free: 13.04 MB / 398.1 MB Notification: Performance of Backend: time 5.81e-07/0.4839, allocations: 0 / 0.5374 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003735/0.4877, allocations: 0.6051 MB / 0.538 GB, free: 12.67 MB / 398.1 MB Notification: Performance of SimCode: time 0.001672/0.4893, allocations: 1.495 MB / 0.5394 GB, free: 11.5 MB / 398.1 MB Notification: Performance of Templates: time 0.01187/0.5012, allocations: 7.72 MB / 0.547 GB, free: 7.625 MB / 398.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)