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.06885/0.06885, allocations: 12.04 MB / 27.02 MB, free: 2.344 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.0007717/0.0007717, allocations: 103.2 kB / 30.74 MB, free: 5.57 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.00128/0.00128, allocations: 188.5 kB / 34.58 MB, free: 1.738 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.428/1.428, allocations: 223.2 MB / 261.5 MB, free: 9.121 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DroneLibrary 1.0.0/package.mo): time 0.05793/0.05793, allocations: 13.7 MB / 329.3 MB, free: 4 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.0181/0.0181, allocations: 17.45 MB / 415.1 MB, free: 28.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1274, allocations: 56.48 MB / 471.5 MB, free: 5.441 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 0.8868/1.014, allocations: 389.6 MB / 0.841 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.2007/1.215, allocations: 85.2 MB / 0.9242 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.08605/1.301, allocations: 1.859 MB / 0.926 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.4918/1.793, allocations: 18.46 MB / 0.944 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.1502/1.943, allocations: 51.91 MB / 0.9947 GB, free: 13.83 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.02647/1.97, allocations: 4.245 MB / 0.9988 GB, free: 12.76 MB / 0.6232 GB Notification: Performance of NFFlatten.flatten: time 0.08246/2.052, allocations: 61.73 MB / 1.059 GB, free: 1.379 MB / 0.6388 GB Notification: Performance of NFFlatten.resolveConnections: time 0.08935/2.141, allocations: 51.93 MB / 1.11 GB, free: 11.93 MB / 0.6857 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01885/2.16, allocations: 8.452 MB / 1.118 GB, free: 5.066 MB / 0.6857 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02445/2.185, allocations: 12.92 MB / 1.131 GB, free: 10.54 MB / 0.7013 GB Notification: Performance of NFPackage.collectConstants: time 0.007633/2.192, allocations: 1.133 MB / 1.132 GB, free: 9.41 MB / 0.7013 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01141/2.204, allocations: 2.345 MB / 1.134 GB, free: 7.312 MB / 0.7013 GB Notification: Performance of NFScalarize.scalarize: time 0.01758/2.222, allocations: 11.86 MB / 1.146 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.01277/2.234, allocations: 6.763 MB / 1.152 GB, free: 10.7 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0638/2.298, allocations: 58.16 MB / 1.209 GB, free: 9.285 MB / 0.7638 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/2.298, allocations: 4 kB / 1.209 GB, free: 9.281 MB / 0.7638 GB Notification: Performance of FrontEnd: time 1.543e-06/2.298, allocations: 0 / 1.209 GB, free: 9.281 MB / 0.7638 GB Notification: Performance of Transformations before backend: time 0.002304/2.301, allocations: 0 / 1.209 GB, free: 9.281 MB / 0.7638 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.6063/2.907, allocations: 29.62 MB / 1.238 GB, free: 374.4 MB / 0.7639 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/2.907, allocations: 10.5 kB / 1.238 GB, free: 374.4 MB / 0.7639 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0236/2.931, allocations: 4.306 MB / 1.242 GB, free: 373.3 MB / 0.7639 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0519/2.982, allocations: 9.519 MB / 1.252 GB, free: 369.2 MB / 0.7639 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05787/3.04, allocations: 28.75 MB / 1.28 GB, free: 356.2 MB / 0.7639 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002106/3.043, allocations: 1.893 MB / 1.281 GB, free: 354.5 MB / 0.7639 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01535/3.058, allocations: 2.568 MB / 1.284 GB, free: 352 MB / 0.7639 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1581/3.216, allocations: 65.25 MB / 1.348 GB, free: 284.5 MB / 0.7639 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001932/3.218, allocations: 253.7 kB / 1.348 GB, free: 284.3 MB / 0.7639 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01292/3.231, allocations: 1.117 MB / 1.349 GB, free: 283.3 MB / 0.7639 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01179/3.243, allocations: 7.869 MB / 1.357 GB, free: 275.5 MB / 0.7639 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1122/3.355, allocations: 54.98 MB / 1.41 GB, free: 220.5 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.9317/4.287, allocations: 267.9 MB / 1.672 GB, free: 214.4 MB / 0.7642 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06754/4.354, allocations: 30.65 MB / 1.702 GB, free: 212.7 MB / 0.7642 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.024/4.378, allocations: 18.56 MB / 1.72 GB, free: 212.5 MB / 0.7642 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001951/4.38, allocations: 1.31 MB / 1.721 GB, free: 211.7 MB / 0.7642 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06022/4.441, allocations: 21.98 MB / 1.743 GB, free: 209.9 MB / 0.7642 GB Notification: Performance of pre-optimization done (n=964): time 2.367e-05/4.441, allocations: 0 / 1.743 GB, free: 209.9 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:7863:5-7863:89:writable] Error: Internal error Transformation module sort components failed