Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json 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) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 117.5 kB / 16.63 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 191.1 kB / 17.55 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 46.66 kB / 300.2 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08043/0.08158, allocations: 49.44 MB / 349.7 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2275/0.3092, allocations: 56.87 MB / 406.6 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02937/0.3386, allocations: 11.56 MB / 418.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01395/0.3526, allocations: 242.1 kB / 418.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006305/0.3589, allocations: 3.08 MB / 421.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005623/0.3646, allocations: 1.819 MB / 423.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.3665, allocations: 0.7801 MB / 424 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006042/0.3725, allocations: 4.668 MB / 428.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004467/0.377, allocations: 4.283 MB / 433 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002126/0.3791, allocations: 1.678 MB / 434.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002518/0.3817, allocations: 2.411 MB / 437.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005268/0.3822, allocations: 352 kB / 437.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001895/0.3841, allocations: 1.272 MB / 438.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001608/0.3857, allocations: 2.096 MB / 440.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001851/0.3876, allocations: 2.419 MB / 443.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006706/0.3943, allocations: 7.5 MB / 450.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.081e-05/0.3943, allocations: 4 kB / 450.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3944, allocations: 4 kB / 450.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001537/0.3945, allocations: 0 / 450.7 MB, free: 15.5 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01031/0.4048, allocations: 5.268 MB / 456 MB, free: 10.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.599e-05/0.4049, allocations: 8.031 kB / 456 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009594/0.4059, allocations: 0.7609 MB / 456.8 MB, free: 9.379 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02084/0.4267, allocations: 3.91 MB / 460.7 MB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006617/0.4334, allocations: 3.077 MB / 463.7 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002038/0.4336, allocations: 254.2 kB / 464 MB, free: 2.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008866/0.4345, allocations: 331.7 kB / 464.3 MB, free: 1.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0174/0.4519, allocations: 10.76 MB / 475.1 MB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.882e-05/0.4521, allocations: 43.59 kB / 475.1 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000379/0.4525, allocations: 155.9 kB / 475.3 MB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003379/0.4558, allocations: 2.15 MB / 477.4 MB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01686/0.4727, allocations: 9.102 MB / 486.5 MB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05027/0.523, allocations: 41.67 MB / 0.5158 GB, free: 24 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01088/0.5339, allocations: 4.439 MB / 0.5201 GB, free: 11.44 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002814/0.5368, allocations: 2.43 MB / 0.5225 GB, free: 8.992 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009667/0.5464, allocations: 7.24 MB / 0.5296 GB, free: 1.547 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.5465, allocations: 43.56 kB / 0.5296 GB, free: 1.496 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.359e-06/0.5465, allocations: 0 / 0.5296 GB, free: 1.496 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.1947/0.7412, allocations: 17.91 MB / 0.5471 GB, free: 148.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.228e-05/0.7413, allocations: 177.8 kB / 0.5473 GB, free: 148.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005459/0.7468, allocations: 4.634 MB / 0.5518 GB, free: 146.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001654/0.747, allocations: 52.64 kB / 0.5519 GB, free: 146.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.7484, allocations: 3.236 MB / 0.555 GB, free: 144.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005098/0.7489, allocations: 0.7568 MB / 0.5558 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001214/0.7501, allocations: 1.258 MB / 0.557 GB, free: 143.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.279e-05/0.7502, allocations: 301.1 kB / 0.5573 GB, free: 142.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002509/0.7527, allocations: 2.288 MB / 0.5595 GB, free: 142.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004232/0.7569, allocations: 6.029 MB / 0.5654 GB, free: 136.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00713/0.764, allocations: 9.043 MB / 0.5742 GB, free: 126.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.04e-05/0.7641, allocations: 40 kB / 0.5743 GB, free: 126.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01263/0.7768, allocations: 8.873 MB / 0.5829 GB, free: 117.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.7769, allocations: 64.19 kB / 0.583 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/0.777, allocations: 136 kB / 0.5831 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001957/0.779, allocations: 0.9413 MB / 0.5841 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004102/0.7831, allocations: 1.423 MB / 0.5854 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006345/0.7895, allocations: 6.53 MB / 0.5918 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004665/0.7942, allocations: 343.4 kB / 0.5921 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005433/0.7947, allocations: 380 kB / 0.5925 GB, free: 107.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 747 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002807/0.7976, allocations: 2.245 MB / 0.5947 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005627/0.7981, allocations: 394.8 kB / 0.5951 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005024/0.8032, allocations: 3.688 MB / 0.5987 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/0.8032, allocations: 24.47 kB / 0.5987 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.8032, allocations: 7.938 kB / 0.5987 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.8032, allocations: 7.969 kB / 0.5987 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/0.8148, allocations: 9.246 MB / 0.6077 GB, free: 91.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.8148, allocations: 4 kB / 0.6077 GB, free: 91.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.8161, allocations: 323.5 kB / 0.6081 GB, free: 91.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001689/0.8178, allocations: 0.7711 MB / 0.6088 GB, free: 90.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001276/0.818, allocations: 37.25 kB / 0.6088 GB, free: 90.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006079/0.824, allocations: 6.059 MB / 0.6148 GB, free: 84.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.8241, allocations: 11.94 kB / 0.6148 GB, free: 84.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007538/0.8316, allocations: 6.6 MB / 0.6212 GB, free: 77.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/0.8331, allocations: 463.8 kB / 0.6217 GB, free: 77.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006686/0.8338, allocations: 43.94 kB / 0.6217 GB, free: 77.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.8354, allocations: 115.8 kB / 0.6218 GB, free: 77.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003284/0.8357, allocations: 125 kB / 0.6219 GB, free: 76.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.8359, allocations: 56 kB / 0.622 GB, free: 76.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003815/0.8397, allocations: 2.965 MB / 0.6249 GB, free: 73.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8397, allocations: 0 / 0.6249 GB, free: 73.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005321/0.845, allocations: 1.06 MB / 0.6259 GB, free: 72.87 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * 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 (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007785/0.8528, allocations: 7.25 MB / 0.633 GB, free: 65.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008366/0.8612, allocations: 6.66 MB / 0.6395 GB, free: 58.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/0.8613, allocations: 0 / 0.6395 GB, free: 58.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002456/0.8637, allocations: 1.966 MB / 0.6414 GB, free: 56.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003014/0.8668, allocations: 0.5291 MB / 0.6419 GB, free: 56.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0752/0.942, allocations: 60.76 MB / 0.7013 GB, free: 3.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1659/1.108, allocations: 3.453 MB / 0.7046 GB, free: 157.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005531/1.113, allocations: 2.048 MB / 0.7066 GB, free: 157.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00251/1.116, allocations: 2.055 MB / 0.7087 GB, free: 157.8 MB / 462.1 MB Notification: Performance of SimCode: time 7.91e-07/1.116, allocations: 2.906 kB / 0.7087 GB, free: 157.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9048/2.021, allocations: 81.31 MB / 0.7881 GB, free: 94.82 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/2.021, allocations: 238.8 kB / 0.7883 GB, free: 94.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.866/5.887, allocations: 7.25 kB / 0.7883 GB, free: 94.56 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches