Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr DroneLibrary_DroneLibrary.Examples.DronePayload.DroneTest_payload.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/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/package.mo) Running command: "" <> buildModelFMU(DroneLibrary.Examples.DronePayload.DroneTest_payload,fileNamePrefix="DroneLibrary_DroneLibrary_Examples_DronePayload_DroneTest_payload",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(DroneLibrary.Examples.DronePayload.DroneTest_payload,fileNamePrefix="DroneLibrary_DroneLibrary_Examples_DronePayload_DroneTest_payload",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/package.mo): time 0.06473/0.06473, allocations: 12.02 MB / 27.14 MB, free: 2.141 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.001003/0.001002, allocations: 112 kB / 30.83 MB, free: 5.305 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.001154/0.001154, allocations: 200.3 kB / 34.63 MB, free: 1.516 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.424/1.424, allocations: 222.9 MB / 261.2 MB, free: 8.652 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DroneLibrary 1.0.0/package.mo): time 0.0568/0.0568, allocations: 13.66 MB / 327.9 MB, free: 0.7188 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.02884/0.02884, allocations: 18.45 MB / 413.9 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1596, allocations: 55.43 MB / 469.3 MB, free: 5.465 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Interfaces/PartialOneFrame_b.mo:7:3-7:49:writable] Warning: An inner declaration for outer component world could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Interfaces/PartialOneFrame_b.mo:7:3-7:49:writable] Notification: The diagnostics message for the missing inner is: No "world" component is defined. A default world component with the default gravity field will be used (g=9.81 in negative y-axis). If this is not desired, drag Modelica.Mechanics.MultiBody.World into the top level of your model. Notification: Performance of NFInst.instantiate(DroneLibrary.Examples.DronePayload.DroneTest_payload): time 1.087/1.246, allocations: 428.6 MB / 0.8768 GB, free: 1.91 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.8832/2.13, allocations: 87.86 MB / 0.9626 GB, free: 0.9609 MB / 0.6232 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.1241/2.254, allocations: 1.876 MB / 0.9645 GB, free: 0.9609 MB / 0.6232 GB Notification: Performance of NFTyping.typeComponents: time 0.05816/2.312, allocations: 32.48 MB / 0.9962 GB, free: 124 kB / 0.6232 GB Notification: Performance of NFTyping.typeBindings: time 0.03117/2.343, allocations: 8.233 MB / 1.004 GB, free: 14.79 MB / 0.6388 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.01665/2.36, allocations: 5.59 MB / 1.01 GB, free: 13.81 MB / 0.6388 GB Notification: Performance of NFFlatten.flatten: time 0.06378/2.424, allocations: 42.5 MB / 1.051 GB, free: 9.395 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.09172/2.515, allocations: 44.75 MB / 1.095 GB, free: 13.52 MB / 0.7013 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0294/2.545, allocations: 11.28 MB / 1.106 GB, free: 3.875 MB / 0.7013 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03683/2.582, allocations: 17.32 MB / 1.123 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.01441/2.596, allocations: 2.457 MB / 1.125 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02118/2.617, allocations: 3.93 MB / 1.129 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.03302/2.65, allocations: 14.09 MB / 1.143 GB, free: 15.6 MB / 0.7482 GB Notification: Performance of NFVerifyModel.verify: time 0.05209/2.703, allocations: 16.98 MB / 1.159 GB, free: 14.64 MB / 0.7638 GB Notification: Performance of NFConvertDAE.convert: time 0.09581/2.798, allocations: 67.5 MB / 1.225 GB, free: 12.04 MB / 0.8263 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/2.798, allocations: 4 kB / 1.225 GB, free: 12.04 MB / 0.8263 GB Notification: Performance of FrontEnd: time 3.797e-06/2.798, allocations: 0 / 1.225 GB, free: 12.04 MB / 0.8263 GB Notification: Performance of Transformations before backend: time 0.002732/2.801, allocations: 0 / 1.225 GB, free: 12.04 MB / 0.8263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8755 * Number of variables: 8755 Notification: Performance of Generate backend data structure: time 0.8655/3.667, allocations: 36.88 MB / 1.261 GB, free: 438.3 MB / 0.8264 GB Notification: Performance of prepare preOptimizeDAE: time 6.52e-05/3.667, allocations: 9.75 kB / 1.261 GB, free: 438.3 MB / 0.8264 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0241/3.691, allocations: 4.31 MB / 1.266 GB, free: 435.5 MB / 0.8264 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0559/3.747, allocations: 9.345 MB / 1.275 GB, free: 430.8 MB / 0.8264 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06171/3.809, allocations: 29.12 MB / 1.303 GB, free: 410.2 MB / 0.8264 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001799/3.81, allocations: 1.888 MB / 1.305 GB, free: 408.4 MB / 0.8264 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01482/3.825, allocations: 2.571 MB / 1.307 GB, free: 405.9 MB / 0.8264 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1669/3.992, allocations: 65.27 MB / 1.371 GB, free: 338.4 MB / 0.8264 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.002502/3.995, allocations: 257.7 kB / 1.371 GB, free: 338.2 MB / 0.8264 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01532/4.01, allocations: 1.116 MB / 1.373 GB, free: 337.2 MB / 0.8264 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01233/4.023, allocations: 7.876 MB / 1.38 GB, free: 329.3 MB / 0.8264 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1208/4.143, allocations: 55 MB / 1.434 GB, free: 274.4 MB / 0.8264 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3374/4.481, allocations: 268.4 MB / 1.696 GB, free: 2.008 MB / 0.8264 GB Notification: Performance of preOpt comSubExp (simulation): time 0.708/5.189, allocations: 30.53 MB / 1.726 GB, free: 399.1 MB / 0.8267 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02303/5.212, allocations: 18.54 MB / 1.744 GB, free: 390.1 MB / 0.8267 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001918/5.214, allocations: 1.319 MB / 1.745 GB, free: 389.2 MB / 0.8267 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06296/5.277, allocations: 21.88 MB / 1.767 GB, free: 383.4 MB / 0.8267 GB Notification: Performance of pre-optimization done (n=964): time 2.981e-05/5.277, allocations: 0 / 1.767 GB, free: 383.4 MB / 0.8267 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: equations: drone.droneChassis1.bodyCylinder.body.frame_a.r_0[1] = drone.droneChassis1.bodyShape.body.frame_a.r_0[1] + 0.25 * drone.accelerometer.relativeAngles.R_rel.T[2,1] [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7947:5-7947:89:writable] Error: Internal error Transformation module sort components failed