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: translateModel(DroneLibrary.Examples.DronePayload.DroneTest_payload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="DroneLibrary_DroneLibrary.Examples.DronePayload.DroneTest_payload") translateModel(DroneLibrary.Examples.DronePayload.DroneTest_payload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="DroneLibrary_DroneLibrary.Examples.DronePayload.DroneTest_payload") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/package.mo): time 0.06735/0.06735, allocations: 12.03 MB / 27.53 MB, free: 1.332 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.00101/0.00101, allocations: 108 kB / 31.22 MB, free: 4.59 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.001254/0.001254, allocations: 196.2 kB / 35.05 MB, free: 0.7812 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.284/1.284, 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.05702/0.05702, allocations: 13.67 MB / 328.3 MB, free: 1.117 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.03677/0.03677, allocations: 19.58 MB / 415.6 MB, free: 25.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1395, allocations: 55.41 MB / 471 MB, free: 4.035 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.2645/0.404, allocations: 65.02 MB / 0.5235 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03402/0.438, allocations: 18.53 MB / 0.5416 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01419/0.4523, allocations: 0.5194 MB / 0.5421 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04753/0.4998, allocations: 32.14 MB / 0.5735 GB, free: 14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02226/0.5221, allocations: 8.577 MB / 0.5819 GB, free: 8.531 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.01293/0.5351, allocations: 6.041 MB / 0.5878 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03929/0.5744, allocations: 29.94 MB / 0.617 GB, free: 7.516 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06946/0.6439, allocations: 48.61 MB / 0.6645 GB, free: 7.312 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02296/0.6669, allocations: 14.32 MB / 0.6785 GB, free: 8.965 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02697/0.6939, allocations: 17.4 MB / 0.6954 GB, free: 7.523 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 0.01248/0.7064, allocations: 4.992 MB / 0.7003 GB, free: 2.531 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2859/0.9924, allocations: 6.362 MB / 0.7065 GB, free: 70.42 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 0.02405/1.016, allocations: 16.46 MB / 0.7226 GB, free: 70.42 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.04209/1.059, allocations: 19.68 MB / 0.7418 GB, free: 65.61 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.0665/1.125, allocations: 68.89 MB / 0.8091 GB, free: 28.37 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/1.125, allocations: 1.688 kB / 0.8091 GB, free: 28.37 MB / 0.4982 GB Notification: Performance of FrontEnd: time 2.024e-06/1.125, allocations: 0 / 0.8091 GB, free: 28.37 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.002406/1.128, allocations: 3.406 kB / 0.8091 GB, free: 28.37 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.1053/1.233, allocations: 36.62 MB / 0.8449 GB, free: 13.04 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/1.233, allocations: 12.03 kB / 0.8449 GB, free: 13.02 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03524/1.268, allocations: 7.357 MB / 0.8521 GB, free: 5.637 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05055/1.319, allocations: 24.6 MB / 0.8761 GB, free: 14.02 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001901/1.321, allocations: 1.893 MB / 0.8779 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01206/1.333, allocations: 2.571 MB / 0.8805 GB, free: 9.77 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4019/1.735, allocations: 65.34 MB / 0.9443 GB, free: 157.5 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.002119/1.737, allocations: 258.8 kB / 0.9445 GB, free: 157.5 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0132/1.75, allocations: 1.12 MB / 0.9456 GB, free: 157.5 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01472/1.765, allocations: 7.868 MB / 0.9533 GB, free: 155.8 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1114/1.876, allocations: 55.17 MB / 1.007 GB, free: 130.7 MB / 0.5763 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.616/2.492, allocations: 268.9 MB / 1.27 GB, free: 77.38 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06894/2.561, allocations: 30.61 MB / 1.3 GB, free: 70.92 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02093/2.582, allocations: 18.63 MB / 1.318 GB, free: 61.89 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001967/2.584, allocations: 1.3 MB / 1.319 GB, free: 60.95 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06221/2.647, allocations: 21.97 MB / 1.341 GB, free: 47.1 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=964): time 2.365e-05/2.647, allocations: 0 / 1.341 GB, free: 47.1 MB / 0.6232 GB [/var/lib/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7956:5-7956:89:writable] Error: Internal error Transformation module sort components failed