Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr DroneLibrary_DroneLibrary.Tests.motorTest.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: translateModel(DroneLibrary.Tests.motorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="DroneLibrary_DroneLibrary.Tests.motorTest") translateModel(DroneLibrary.Tests.motorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="DroneLibrary_DroneLibrary.Tests.motorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.06716/0.06716, allocations: 12.05 MB / 28.35 MB, free: 1.734 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.00107/0.001071, allocations: 107.6 kB / 32.07 MB, free: 4.582 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.001147/0.001147, allocations: 196.3 kB / 35.91 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.484/1.484, allocations: 222.9 MB / 262.5 MB, free: 7.426 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DroneLibrary 1.0.0/package.mo): time 0.06216/0.06216, allocations: 13.67 MB / 329.2 MB, free: 492 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.03031/0.03031, allocations: 19.7 MB / 473.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4139/0.4442, allocations: 55.39 MB / 0.5162 GB, free: 20.27 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Parts/BodyShape.mo:21:3-22:65:writable] Warning: Parameter propellerRev1.blades.bodyShape5.r_CM has no value, and is fixed during initialization (fixed=true), using available start value (start={0, 0, 0}) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Parts/BodyShape.mo:21:3-22:65:writable] Warning: Parameter propellerRev1.blades.bodyShape4.r_CM has no value, and is fixed during initialization (fixed=true), using available start value (start={0, 0, 0}) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Parts/BodyShape.mo:21:3-22:65:writable] Warning: Parameter propellerRev2.blades.bodyShape5.r_CM has no value, and is fixed during initialization (fixed=true), using available start value (start={0, 0, 0}) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Parts/BodyShape.mo:21:3-22:65:writable] Warning: Parameter propellerRev2.blades.bodyShape4.r_CM has no value, and is fixed during initialization (fixed=true), using available start value (start={0, 0, 0}) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Parts/Fixed.mo:69:3-69: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/Parts/Fixed.mo:69:3-69: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.Tests.motorTest): time 0.0241/0.4683, allocations: 25.98 MB / 0.5415 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02147/0.4898, allocations: 7.779 MB / 0.5491 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008738/0.4986, allocations: 189.8 kB / 0.5493 GB, free: 13.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02355/0.5222, allocations: 12.89 MB / 0.5619 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01243/0.5347, allocations: 3.555 MB / 0.5654 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00607/0.5407, allocations: 2.095 MB / 0.5674 GB, free: 1.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01694/0.5577, allocations: 9.857 MB / 0.577 GB, free: 7.312 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02742/0.5852, allocations: 17.92 MB / 0.5945 GB, free: 6.109 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01096/0.5961, allocations: 5.098 MB / 0.5995 GB, free: 1 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01035/0.6065, allocations: 6.374 MB / 0.6057 GB, free: 10.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005019/0.6115, allocations: 1.633 MB / 0.6073 GB, free: 8.969 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007803/0.6194, allocations: 2.631 MB / 0.6099 GB, free: 6.336 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008585/0.628, allocations: 6.12 MB / 0.6159 GB, free: 208 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01262/0.6406, allocations: 7.071 MB / 0.6228 GB, free: 9.094 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03042/0.6711, allocations: 24.71 MB / 0.6469 GB, free: 312 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.6711, allocations: 0 / 0.6469 GB, free: 312 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6711, allocations: 0 / 0.6469 GB, free: 312 kB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0008503/0.672, allocations: 0 / 0.6469 GB, free: 312 kB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3617 * Number of variables: 3617 Notification: Performance of Generate backend data structure: time 0.04376/0.7158, allocations: 13.44 MB / 0.66 GB, free: 2.746 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.7158, allocations: 8.031 kB / 0.66 GB, free: 2.738 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01412/0.73, allocations: 2.989 MB / 0.663 GB, free: 15.74 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0189/0.7489, allocations: 7.798 MB / 0.6706 GB, free: 7.863 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008754/0.7498, allocations: 0.7428 MB / 0.6713 GB, free: 7.117 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005314/0.7552, allocations: 1.018 MB / 0.6723 GB, free: 6.102 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06359/0.8188, allocations: 25.4 MB / 0.6971 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006693/0.8195, allocations: 107.2 kB / 0.6972 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004029/0.8236, allocations: 451.8 kB / 0.6976 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006138/0.8297, allocations: 3.333 MB / 0.7009 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04547/0.8752, allocations: 21.16 MB / 0.7216 GB, free: 2.375 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3884/1.264, allocations: 95.81 MB / 0.8151 GB, free: 84.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01993/1.284, allocations: 8.909 MB / 0.8238 GB, free: 78.35 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00539/1.289, allocations: 4.774 MB / 0.8285 GB, free: 73.56 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008614/1.29, allocations: 0.6911 MB / 0.8292 GB, free: 72.78 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.115e-05/1.29, allocations: 74.48 kB / 0.8292 GB, free: 72.7 MB / 0.545 GB Notification: Performance of pre-optimization done (n=285): time 7.003e-06/1.29, allocations: 0 / 0.8292 GB, free: 72.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=309): time 0.0988/1.389, allocations: 41.08 MB / 0.8693 GB, free: 31.88 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.925e-05/1.389, allocations: 267.3 kB / 0.8696 GB, free: 31.57 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.015/1.404, allocations: 9.331 MB / 0.8787 GB, free: 22.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009329/1.405, allocations: 73.7 kB / 0.8788 GB, free: 22.32 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004148/1.409, allocations: 7.275 MB / 0.8859 GB, free: 15.54 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001675/1.411, allocations: 1.303 MB / 0.8872 GB, free: 14.22 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004499/1.415, allocations: 2.455 MB / 0.8896 GB, free: 11.76 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.459e-05/1.415, allocations: 307.8 kB / 0.8899 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005505/1.421, allocations: 4.832 MB / 0.8946 GB, free: 6.617 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009862/1.431, allocations: 12.01 MB / 0.9063 GB, free: 7.246 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06331/1.494, allocations: 28.52 MB / 0.9341 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003075/1.494, allocations: 72 kB / 0.9342 GB, free: 7.277 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1515) (initialization): time 0.04298/1.537, allocations: 20.04 MB / 0.9538 GB, free: 3.199 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004087/1.538, allocations: 120 kB / 0.9539 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000498/1.538, allocations: 252 kB / 0.9541 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3211/1.86, allocations: 4.214 MB / 0.9583 GB, free: 196.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01001/1.87, allocations: 2.678 MB / 0.9609 GB, free: 196.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02213/1.892, allocations: 18.07 MB / 0.9785 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01115/1.903, allocations: 0.6881 MB / 0.9792 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003004/1.906, allocations: 0.6993 MB / 0.9799 GB, free: 188.1 MB / 0.6075 GB Warning: Assuming fixed start value for the following 31 variables: propellerRev1.blades.bodyShape5.v_0[3]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev1.blades.bodyShape5.v_0[2]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev1.blades.bodyShape5.v_0[1]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev1.blades.bodyShape5.body.frame_a.r_0[1]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev1.blades.bodyShape5.body.frame_a.r_0[2]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev1.blades.bodyShape5.body.frame_a.r_0[3]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev1.blades.bodyShape5.body.w_a[3]:VARIABLE(start = propellerRev1.blades.bodyShape5.body.w_0_start[3] unit = "rad/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute angular velocity of frame_a resolved in frame_a" type: Real [3] propellerRev1.blades.bodyShape5.body.phi[1]:VARIABLE(start = propellerRev1.blades.bodyShape5.body.phi_start[1] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev1.blades.bodyShape5.body.phi[2]:VARIABLE(start = propellerRev1.blades.bodyShape5.body.phi_start[2] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev1.blades.bodyShape5.body.phi[3]:VARIABLE(start = propellerRev1.blades.bodyShape5.body.phi_start[3] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev1.blades.bodyShape5.body.phi_d[2]:VARIABLE(unit = "rad/s" fixed = true stateSelect=StateSelect.avoid protected = true ) "= der(phi)" type: Real [3] propellerRev1.blades.bodyShape5.body.phi_d[1]:VARIABLE(unit = "rad/s" fixed = true stateSelect=StateSelect.avoid protected = true ) "= der(phi)" type: Real [3] propellerRev2.blades.bodyShape5.v_0[3]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev2.blades.bodyShape5.v_0[2]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev2.blades.bodyShape5.v_0[1]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev2.blades.bodyShape5.body.frame_a.r_0[1]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev2.blades.bodyShape5.body.frame_a.r_0[2]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev2.blades.bodyShape5.body.frame_a.r_0[3]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev2.blades.bodyShape5.body.w_a[3]:VARIABLE(start = propellerRev2.blades.bodyShape5.body.w_0_start[3] unit = "rad/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute angular velocity of frame_a resolved in frame_a" type: Real [3] propellerRev2.blades.bodyShape5.body.phi[1]:VARIABLE(start = propellerRev2.blades.bodyShape5.body.phi_start[1] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev2.blades.bodyShape5.body.phi[2]:VARIABLE(start = propellerRev2.blades.bodyShape5.body.phi_start[2] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev2.blades.bodyShape5.body.phi[3]:VARIABLE(start = propellerRev2.blades.bodyShape5.body.phi_start[3] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev2.blades.bodyShape5.body.phi_d[2]:VARIABLE(unit = "rad/s" fixed = true stateSelect=StateSelect.avoid protected = true ) "= der(phi)" type: Real [3] propellerRev2.blades.bodyShape5.body.phi_d[1]:VARIABLE(unit = "rad/s" fixed = true stateSelect=StateSelect.avoid protected = true ) "= der(phi)" type: Real [3] propellerRev1.rotor3_1.revolute.phi:VARIABLE(start = 0.0 unit = "rad" fixed = true stateSelect=StateSelect.prefer ) "Relative rotation angle from frame_a to frame_b" type: Real propellerRev1.rotor3_1.revolute.w:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "First derivative of angle phi (relative angular velocity)" type: Real propellerRev2.rotor3_1.revolute.phi:VARIABLE(start = 0.0 unit = "rad" fixed = true stateSelect=StateSelect.prefer ) "Relative rotation angle from frame_a to frame_b" type: Real propellerRev2.rotor3_1.revolute.w:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "First derivative of angle phi (relative angular velocity)" type: Real propellerRev2.dCMotor.dCmotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Angular speed of motor" type: Real propellerRev1.dCMotor.dCmotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Angular speed of motor" type: Real dCmotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Angular speed of motor" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.02041/1.926, allocations: 9.674 MB / 0.9893 GB, free: 183.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01417/1.941, allocations: 11.98 MB / 1.001 GB, free: 172.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.05465/1.995, allocations: 28.43 MB / 1.029 GB, free: 153 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 0.0004263/1.996, allocations: 72 kB / 1.029 GB, free: 153 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1515) (initialization_lambda0): time 0.03861/2.034, allocations: 19.99 MB / 1.048 GB, free: 134.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004217/2.035, allocations: 122.3 kB / 1.048 GB, free: 134.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004479/2.035, allocations: 256 kB / 1.049 GB, free: 133.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01188/2.047, allocations: 4.222 MB / 1.053 GB, free: 129.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008211/2.055, allocations: 2.667 MB / 1.055 GB, free: 127 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01632/2.072, allocations: 18.07 MB / 1.073 GB, free: 108.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009364/2.081, allocations: 0.6435 MB / 1.074 GB, free: 107.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002175/2.083, allocations: 0.6992 MB / 1.074 GB, free: 107.2 MB / 0.6075 GB Warning: Assuming fixed start value for the following 31 variables: propellerRev1.blades.bodyShape5.v_0[3]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev1.blades.bodyShape5.v_0[2]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev1.blades.bodyShape5.v_0[1]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev1.blades.bodyShape5.body.frame_a.r_0[1]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev1.blades.bodyShape5.body.frame_a.r_0[2]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev1.blades.bodyShape5.body.frame_a.r_0[3]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev1.blades.bodyShape5.body.w_a[3]:VARIABLE(start = propellerRev1.blades.bodyShape5.body.w_0_start[3] unit = "rad/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute angular velocity of frame_a resolved in frame_a" type: Real [3] propellerRev1.blades.bodyShape5.body.phi[1]:VARIABLE(start = propellerRev1.blades.bodyShape5.body.phi_start[1] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev1.blades.bodyShape5.body.phi[2]:VARIABLE(start = propellerRev1.blades.bodyShape5.body.phi_start[2] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev1.blades.bodyShape5.body.phi[3]:VARIABLE(start = propellerRev1.blades.bodyShape5.body.phi_start[3] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev1.blades.bodyShape5.body.phi_d[2]:VARIABLE(unit = "rad/s" fixed = true stateSelect=StateSelect.avoid protected = true ) "= der(phi)" type: Real [3] propellerRev1.blades.bodyShape5.body.phi_d[1]:VARIABLE(unit = "rad/s" fixed = true stateSelect=StateSelect.avoid protected = true ) "= der(phi)" type: Real [3] propellerRev2.blades.bodyShape5.v_0[3]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev2.blades.bodyShape5.v_0[2]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev2.blades.bodyShape5.v_0[1]:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute velocity of frame_a, resolved in world frame (= der(r_0))" type: Real [3] propellerRev2.blades.bodyShape5.body.frame_a.r_0[1]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev2.blades.bodyShape5.body.frame_a.r_0[2]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev2.blades.bodyShape5.body.frame_a.r_0[3]:VARIABLE(flow=false start = 0.0 unit = "m" fixed = true ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] propellerRev2.blades.bodyShape5.body.w_a[3]:VARIABLE(start = propellerRev2.blades.bodyShape5.body.w_0_start[3] unit = "rad/s" fixed = true stateSelect=StateSelect.avoid ) "Absolute angular velocity of frame_a resolved in frame_a" type: Real [3] propellerRev2.blades.bodyShape5.body.phi[1]:VARIABLE(start = propellerRev2.blades.bodyShape5.body.phi_start[1] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev2.blades.bodyShape5.body.phi[2]:VARIABLE(start = propellerRev2.blades.bodyShape5.body.phi_start[2] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev2.blades.bodyShape5.body.phi[3]:VARIABLE(start = propellerRev2.blades.bodyShape5.body.phi_start[3] unit = "rad" fixed = true stateSelect=StateSelect.avoid protected = true ) "Dummy or 3 angles to rotate world frame into frame_a of body" type: Real [3] propellerRev2.blades.bodyShape5.body.phi_d[2]:VARIABLE(unit = "rad/s" fixed = true stateSelect=StateSelect.avoid protected = true ) "= der(phi)" type: Real [3] propellerRev2.blades.bodyShape5.body.phi_d[1]:VARIABLE(unit = "rad/s" fixed = true stateSelect=StateSelect.avoid protected = true ) "= der(phi)" type: Real [3] propellerRev1.rotor3_1.revolute.phi:VARIABLE(start = 0.0 unit = "rad" fixed = true stateSelect=StateSelect.prefer ) "Relative rotation angle from frame_a to frame_b" type: Real propellerRev1.rotor3_1.revolute.w:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "First derivative of angle phi (relative angular velocity)" type: Real propellerRev2.rotor3_1.revolute.phi:VARIABLE(start = 0.0 unit = "rad" fixed = true stateSelect=StateSelect.prefer ) "Relative rotation angle from frame_a to frame_b" type: Real propellerRev2.rotor3_1.revolute.w:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "First derivative of angle phi (relative angular velocity)" type: Real propellerRev2.dCMotor.dCmotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Angular speed of motor" type: Real propellerRev1.dCMotor.dCmotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Angular speed of motor" type: Real dCmotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Angular speed of motor" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1165 * Number of states: 0 () * Number of discrete variables: 106 (propellerRev2.rotor3_1.force1.arrow.arrowLine.twoHeadedArrow,propellerRev2.rotor3_1.force1.arrow.headAtOrigin,propellerRev1.rotor3_1.force1.arrow.arrowLine.twoHeadedArrow,propellerRev1.rotor3_1.force1.arrow.headAtOrigin,world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],propellerRev2.blades.fixedShape.color[3],propellerRev2.blades.fixedShape.color[2],propellerRev2.blades.fixedShape.color[1],propellerRev2.blades.bodyShape4.body.sphereColor[3],propellerRev2.blades.bodyShape4.body.sphereColor[2],propellerRev2.blades.bodyShape4.body.sphereColor[1],propellerRev2.blades.bodyShape4.frameTranslation.color[3],propellerRev2.blades.bodyShape4.frameTranslation.color[2],propellerRev2.blades.bodyShape4.frameTranslation.color[1],propellerRev2.blades.bodyShape4.color[3],propellerRev2.blades.bodyShape4.color[2],propellerRev2.blades.bodyShape4.color[1],propellerRev2.blades.bodyShape5.body.sphereColor[3],propellerRev2.blades.bodyShape5.body.sphereColor[2],propellerRev2.blades.bodyShape5.body.sphereColor[1],propellerRev2.blades.bodyShape5.frameTranslation.color[3],propellerRev2.blades.bodyShape5.frameTranslation.color[2],propellerRev2.blades.bodyShape5.frameTranslation.color[1],propellerRev2.blades.bodyShape5.color[3],propellerRev2.blades.bodyShape5.color[2],propellerRev2.blades.bodyShape5.color[1],propellerRev2.rotor3_1.force1.color[3],propellerRev2.rotor3_1.force1.color[2],propellerRev2.rotor3_1.force1.color[1],propellerRev2.rotor3_1.torque.connectionLineColor[3],propellerRev2.rotor3_1.torque.connectionLineColor[2],propellerRev2.rotor3_1.torque.connectionLineColor[1],propellerRev2.rotor3_1.torque.torqueColor[3],propellerRev2.rotor3_1.torque.torqueColor[2],propellerRev2.rotor3_1.torque.torqueColor[1],propellerRev2.rotor3_1.revolute.cylinderColor[3],propellerRev2.rotor3_1.revolute.cylinderColor[2],propellerRev2.rotor3_1.revolute.cylinderColor[1],propellerRev2.dCMotor.torque.connectionLineColor[3],propellerRev2.dCMotor.torque.connectionLineColor[2],propellerRev2.dCMotor.torque.connectionLineColor[1],propellerRev2.dCMotor.torque.torqueColor[3],propellerRev2.dCMotor.torque.torqueColor[2],propellerRev2.dCMotor.torque.torqueColor[1],propellerRev2.dCMotor.force.color[3],propellerRev2.dCMotor.force.color[2],propellerRev2.dCMotor.force.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],propellerRev1.blades.fixedShape.color[3],propellerRev1.blades.fixedShape.color[2],propellerRev1.blades.fixedShape.color[1],propellerRev1.blades.bodyShape4.body.sphereColor[3],propellerRev1.blades.bodyShape4.body.sphereColor[2],propellerRev1.blades.bodyShape4.body.sphereColor[1],propellerRev1.blades.bodyShape4.frameTranslation.color[3],propellerRev1.blades.bodyShape4.frameTranslation.color[2],propellerRev1.blades.bodyShape4.frameTranslation.color[1],propellerRev1.blades.bodyShape4.color[3],propellerRev1.blades.bodyShape4.color[2],propellerRev1.blades.bodyShape4.color[1],propellerRev1.blades.bodyShape5.body.sphereColor[3],propellerRev1.blades.bodyShape5.body.sphereColor[2],propellerRev1.blades.bodyShape5.body.sphereColor[1],propellerRev1.blades.bodyShape5.frameTranslation.color[3],propellerRev1.blades.bodyShape5.frameTranslation.color[2],propellerRev1.blades.bodyShape5.frameTranslation.color[1],propellerRev1.blades.bodyShape5.color[3],propellerRev1.blades.bodyShape5.color[2],propellerRev1.blades.bodyShape5.color[1],propellerRev1.rotor3_1.force1.color[3],propellerRev1.rotor3_1.force1.color[2],propellerRev1.rotor3_1.force1.color[1],propellerRev1.rotor3_1.torque.connectionLineColor[3],propellerRev1.rotor3_1.torque.connectionLineColor[2],propellerRev1.rotor3_1.torque.connectionLineColor[1],propellerRev1.rotor3_1.torque.torqueColor[3],propellerRev1.rotor3_1.torque.torqueColor[2],propellerRev1.rotor3_1.torque.torqueColor[1],propellerRev1.rotor3_1.revolute.cylinderColor[3],propellerRev1.rotor3_1.revolute.cylinderColor[2],propellerRev1.rotor3_1.revolute.cylinderColor[1],propellerRev1.dCMotor.torque.connectionLineColor[3],propellerRev1.dCMotor.torque.connectionLineColor[2],propellerRev1.dCMotor.torque.connectionLineColor[1],propellerRev1.dCMotor.torque.torqueColor[3],propellerRev1.dCMotor.torque.torqueColor[2],propellerRev1.dCMotor.torque.torqueColor[1],propellerRev1.dCMotor.force.color[3],propellerRev1.dCMotor.force.color[2],propellerRev1.dCMotor.force.color[1],fixed.color[3],fixed.color[2],fixed.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1455): * Single equations (assignments): 1444 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (3,100.0%), (2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,1,100.0%), (2,1,100.0%), (3,11,77.8%), (3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004375/2.088, allocations: 1.381 MB / 1.076 GB, free: 106 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002013/2.09, allocations: 0.772 MB / 1.077 GB, free: 105.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01946/2.109, allocations: 9.608 MB / 1.086 GB, free: 95.98 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-05/2.109, allocations: 32 kB / 1.086 GB, free: 95.95 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.664e-05/2.109, allocations: 8 kB / 1.086 GB, free: 95.95 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.384e-05/2.109, allocations: 19.94 kB / 1.086 GB, free: 95.93 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04256/2.152, allocations: 22.78 MB / 1.108 GB, free: 73.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.665e-05/2.152, allocations: 4 kB / 1.108 GB, free: 73.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002598/2.155, allocations: 0.5426 MB / 1.109 GB, free: 72.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01103/2.166, allocations: 3.802 MB / 1.112 GB, free: 68.83 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006405/2.166, allocations: 83.97 kB / 1.113 GB, free: 68.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/2.181, allocations: 16.56 MB / 1.129 GB, free: 51.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/2.181, allocations: 11.88 kB / 1.129 GB, free: 51.75 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02292/2.204, allocations: 14.48 MB / 1.143 GB, free: 37.39 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004004/2.208, allocations: 0.8471 MB / 1.144 GB, free: 36.54 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002903/2.211, allocations: 87.92 kB / 1.144 GB, free: 36.45 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003782/2.215, allocations: 191.7 kB / 1.144 GB, free: 36.26 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006843/2.215, allocations: 201.8 kB / 1.144 GB, free: 36.06 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002935/2.216, allocations: 83.98 kB / 1.144 GB, free: 35.98 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01019/2.226, allocations: 6.028 MB / 1.15 GB, free: 29.98 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/2.226, allocations: 4 kB / 1.15 GB, free: 29.97 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0205/2.246, allocations: 4.016 MB / 1.154 GB, free: 25.96 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 31 (dCmotor.w,propellerRev1.dCMotor.dCmotor.w,propellerRev1.rotor3_1.revolute.phi,propellerRev1.rotor3_1.revolute.w,propellerRev2.dCMotor.dCmotor.w,propellerRev2.rotor3_1.revolute.phi,propellerRev2.rotor3_1.revolute.w,propellerRev2.blades.bodyShape5.v_0[1],propellerRev2.blades.bodyShape5.v_0[2],propellerRev2.blades.bodyShape5.v_0[3],propellerRev2.blades.bodyShape5.body.frame_a.r_0[1],propellerRev2.blades.bodyShape5.body.frame_a.r_0[2],propellerRev2.blades.bodyShape5.body.frame_a.r_0[3],propellerRev2.blades.bodyShape5.body.w_a[3],propellerRev2.blades.bodyShape5.body.phi[1],propellerRev2.blades.bodyShape5.body.phi[2],propellerRev2.blades.bodyShape5.body.phi[3],propellerRev2.blades.bodyShape5.body.phi_d[1],propellerRev2.blades.bodyShape5.body.phi_d[2],propellerRev1.blades.bodyShape5.v_0[1],propellerRev1.blades.bodyShape5.v_0[2],propellerRev1.blades.bodyShape5.v_0[3],propellerRev1.blades.bodyShape5.body.frame_a.r_0[1],propellerRev1.blades.bodyShape5.body.frame_a.r_0[2],propellerRev1.blades.bodyShape5.body.frame_a.r_0[3],propellerRev1.blades.bodyShape5.body.w_a[3],propellerRev1.blades.bodyShape5.body.phi[1],propellerRev1.blades.bodyShape5.body.phi[2],propellerRev1.blades.bodyShape5.body.phi[3],propellerRev1.blades.bodyShape5.body.phi_d[1],propellerRev1.blades.bodyShape5.body.phi_d[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (277): * Single equations (assignments): 266 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (3,100.0%), (2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,10,100.0%), (1,10,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008618/2.247, allocations: 236.4 kB / 1.154 GB, free: 25.74 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.03329/2.28, allocations: 22.04 MB / 1.176 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/2.281, allocations: 0 / 1.176 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.008528/2.289, allocations: 4.786 MB / 1.18 GB, free: 14.62 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009239/2.298, allocations: 1.252 MB / 1.182 GB, free: 13.5 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3377/2.636, allocations: 25.51 MB / 1.207 GB, free: 188 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01952/2.656, allocations: 7.574 MB / 1.214 GB, free: 186.8 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002639/2.658, allocations: 0.5679 MB / 1.215 GB, free: 186.8 MB / 0.6232 GB Notification: Performance of SimCode: time 1.974e-06/2.658, allocations: 0 / 1.215 GB, free: 186.8 MB / 0.6232 GB Notification: Performance of Templates: time 1.201/3.86, allocations: 0.5562 GB / 1.771 GB, free: 132.2 MB / 0.6544 GB make -j1 -f DroneLibrary_DroneLibrary.Tests.motorTest.makefile (rm -f DroneLibrary_DroneLibrary.Tests.motorTest.pipe ; mkfifo DroneLibrary_DroneLibrary.Tests.motorTest.pipe ; head -c 1048576 < DroneLibrary_DroneLibrary.Tests.motorTest.pipe >> ../files/DroneLibrary_DroneLibrary.Tests.motorTest.sim & ./DroneLibrary_DroneLibrary.Tests.motorTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > DroneLibrary_DroneLibrary.Tests.motorTest.pipe 2>&1)