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.06072/0.06072, allocations: 12.03 MB / 26.99 MB, free: 1.902 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.001101/0.001101, allocations: 95.88 kB / 30.71 MB, free: 5.359 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.001336/0.001336, allocations: 181.1 kB / 34.55 MB, free: 1.535 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.389/1.389, allocations: 223.2 MB / 261.4 MB, free: 0.9609 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DroneLibrary 1.0.0/package.mo): time 0.05608/0.05608, allocations: 13.69 MB / 329.1 MB, free: 3.797 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.02138/0.02138, allocations: 17.45 MB / 415 MB, free: 27.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.15, allocations: 56.48 MB / 471.4 MB, free: 6.062 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.102/1.252, allocations: 367.7 MB / 0.8195 GB, free: 9.184 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.2207/1.473, allocations: 89.19 MB / 0.9066 GB, free: 7.141 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.1018/1.574, allocations: 1.855 MB / 0.9084 GB, free: 5.281 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.07147/1.646, allocations: 18.91 MB / 0.9268 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.6339/2.28, allocations: 50.88 MB / 0.9765 GB, free: 17.18 MB / 0.6232 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.03034/2.31, allocations: 4.302 MB / 0.9807 GB, free: 17.13 MB / 0.6232 GB Notification: Performance of NFFlatten.flatten: time 0.06989/2.38, allocations: 37.26 MB / 1.017 GB, free: 16.12 MB / 0.6232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.08475/2.465, allocations: 51.59 MB / 1.068 GB, free: 6.367 MB / 0.6388 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02068/2.486, allocations: 6.759 MB / 1.074 GB, free: 2.211 MB / 0.6388 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01856/2.504, allocations: 8.642 MB / 1.083 GB, free: 12.47 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.007454/2.512, allocations: 1.137 MB / 1.084 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01355/2.525, allocations: 2.29 MB / 1.086 GB, free: 9.32 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.02163/2.547, allocations: 10.99 MB / 1.097 GB, free: 1.551 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.01807/2.565, allocations: 6.756 MB / 1.103 GB, free: 15.7 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.07108/2.636, allocations: 58.11 MB / 1.16 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/2.636, allocations: 0 / 1.16 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.697e-06/2.636, allocations: 0 / 1.16 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.00263/2.639, allocations: 0 / 1.16 GB, free: 14.36 MB / 0.7169 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.113/2.752, allocations: 30.4 MB / 1.19 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/2.752, allocations: 13.56 kB / 1.19 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02804/2.78, allocations: 4.301 MB / 1.194 GB, free: 76 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06082/2.841, allocations: 11.2 MB / 1.205 GB, free: 5.801 MB / 0.7482 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06556/2.907, allocations: 26.1 MB / 1.23 GB, free: 7.453 MB / 0.7638 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003039/2.91, allocations: 1.892 MB / 1.232 GB, free: 6.383 MB / 0.7638 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01994/2.93, allocations: 2.572 MB / 1.235 GB, free: 4.668 MB / 0.7638 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7329/3.663, allocations: 66.13 MB / 1.299 GB, free: 338.6 MB / 0.7639 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.003578/3.666, allocations: 254 kB / 1.299 GB, free: 338.5 MB / 0.7639 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01843/3.685, allocations: 1.116 MB / 1.301 GB, free: 337.8 MB / 0.7639 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01341/3.698, allocations: 7.88 MB / 1.308 GB, free: 334.6 MB / 0.7639 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1177/3.816, allocations: 56.05 MB / 1.363 GB, free: 284.3 MB / 0.7639 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.369/4.185, allocations: 269 MB / 1.626 GB, free: 12.79 MB / 0.7639 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6854/4.87, allocations: 31.3 MB / 1.656 GB, free: 317.6 MB / 0.7642 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002526/4.873, allocations: 1.307 MB / 1.658 GB, free: 316.8 MB / 0.7642 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06974/4.943, allocations: 22.58 MB / 1.68 GB, free: 316.4 MB / 0.7642 GB Notification: Performance of pre-optimization done (n=964): time 2.578e-05/4.943, allocations: 1.594 kB / 1.68 GB, free: 316.4 MB / 0.7642 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:7903:5-7903:89:writable] Error: Internal error Transformation module sort components failed