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-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: "" <> 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-master/package.mo): time 0.08104/0.08103, allocations: 12.03 MB / 27.53 MB, free: 1.383 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.001492/0.001492, allocations: 109.6 kB / 31.24 MB, free: 4.578 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.002078/0.002078, allocations: 192.4 kB / 35.07 MB, free: 0.7617 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.398/1.398, allocations: 222.9 MB / 261.6 MB, free: 24 kB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DroneLibrary 1.0.0/package.mo): time 0.07684/0.07684, allocations: 13.68 MB / 328.4 MB, free: 1.133 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.02715/0.02715, allocations: 19.59 MB / 415.8 MB, free: 25.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1389, allocations: 55.42 MB / 471.2 MB, free: 3.934 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.3371/0.4761, allocations: 65.02 MB / 0.5236 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04461/0.5207, allocations: 18.52 MB / 0.5417 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02217/0.5429, allocations: 0.5217 MB / 0.5422 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.05573/0.5987, allocations: 32.14 MB / 0.5736 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02794/0.6267, allocations: 8.577 MB / 0.582 GB, free: 8.617 MB / 398.1 MB [/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.0162/0.6429, allocations: 6.046 MB / 0.5879 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04796/0.6909, allocations: 29.93 MB / 0.6171 GB, free: 7.621 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08479/0.7757, allocations: 48.61 MB / 0.6646 GB, free: 7.426 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03184/0.8076, allocations: 14.31 MB / 0.6786 GB, free: 9.082 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03167/0.8393, allocations: 17.4 MB / 0.6956 GB, free: 7.641 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 0.01658/0.8559, allocations: 4.988 MB / 0.7004 GB, free: 2.652 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3727/1.229, allocations: 6.375 MB / 0.7067 GB, free: 70.87 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 0.02639/1.255, allocations: 16.45 MB / 0.7227 GB, free: 70.87 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.04842/1.304, allocations: 19.78 MB / 0.7421 GB, free: 66.04 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.07607/1.38, allocations: 69.21 MB / 0.8096 GB, free: 28.34 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 9.989e-06/1.38, allocations: 0 / 0.8096 GB, free: 28.34 MB / 0.4982 GB Notification: Performance of FrontEnd: time 2.785e-06/1.38, allocations: 0 / 0.8096 GB, free: 28.34 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.002528/1.382, allocations: 3.094 kB / 0.8096 GB, free: 28.34 MB / 0.4982 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.1236/1.506, allocations: 36.88 MB / 0.8457 GB, free: 12.68 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 6.113e-05/1.506, allocations: 12.03 kB / 0.8457 GB, free: 12.67 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02307/1.529, allocations: 4.3 MB / 0.8499 GB, free: 8.465 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05465/1.584, allocations: 9.356 MB / 0.859 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06579/1.65, allocations: 29.12 MB / 0.8874 GB, free: 3.215 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002395/1.652, allocations: 1.893 MB / 0.8893 GB, free: 1.43 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01473/1.667, allocations: 2.567 MB / 0.8918 GB, free: 14.97 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5345/2.201, allocations: 65.27 MB / 0.9555 GB, free: 135.1 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.003339/2.205, allocations: 254.8 kB / 0.9558 GB, free: 135.1 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0148/2.22, allocations: 1.115 MB / 0.9569 GB, free: 134.4 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01499/2.235, allocations: 7.881 MB / 0.9646 GB, free: 132.7 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1164/2.351, allocations: 55 MB / 1.018 GB, free: 90.59 MB / 0.5607 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.8157/3.167, allocations: 268.4 MB / 1.28 GB, free: 67.2 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07652/3.243, allocations: 30.55 MB / 1.31 GB, free: 54.03 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02373/3.267, allocations: 18.54 MB / 1.328 GB, free: 43.43 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002199/3.269, allocations: 1.309 MB / 1.33 GB, free: 42.37 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06484/3.334, allocations: 21.9 MB / 1.351 GB, free: 21.16 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=964): time 3.161e-05/3.334, allocations: 0 / 1.351 GB, free: 21.16 MB / 0.6232 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:7956:5-7956:89:writable] Error: Internal error Transformation module sort components failed