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.001431/0.001431, allocations: 105.2 kB / 17.05 MB, free: 6.027 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.001626/0.001626, allocations: 196 kB / 18 MB, free: 5.105 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.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2191, allocations: 49.45 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01156/0.2307, allocations: 11.4 MB / 411.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0071/0.2378, allocations: 4.066 MB / 415.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001088/0.2389, allocations: 71.81 kB / 415.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005202/0.2442, allocations: 3.197 MB / 419 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003929/0.2481, allocations: 1.959 MB / 420.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.2498, allocations: 0.8188 MB / 421.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005334/0.2551, allocations: 4.456 MB / 426.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004673/0.2598, allocations: 4.06 MB / 430.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002407/0.2622, allocations: 1.651 MB / 431.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002921/0.2652, allocations: 2.161 MB / 434.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008418/0.266, allocations: 356 kB / 434.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002306/0.2683, allocations: 1.256 MB / 435.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002147/0.2705, allocations: 2.073 MB / 437.8 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002891/0.2734, allocations: 2.385 MB / 440.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007289/0.2807, allocations: 7.697 MB / 447.8 MB, free: 8.996 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.2808, allocations: 8 kB / 447.9 MB, free: 8.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2808, allocations: 7.938 kB / 447.9 MB, free: 8.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001354/0.2809, allocations: 0 / 447.9 MB, free: 8.98 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.00994/0.2909, allocations: 5.268 MB / 453.1 MB, free: 3.641 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.2909, allocations: 8.031 kB / 453.1 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001088/0.292, allocations: 0.7609 MB / 453.9 MB, free: 2.859 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02361/0.3156, allocations: 3.918 MB / 457.8 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007864/0.3235, allocations: 3.123 MB / 460.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001843/0.3237, allocations: 250.3 kB / 461.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008404/0.3246, allocations: 323.8 kB / 461.5 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/0.3435, allocations: 10.76 MB / 472.3 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.3436, allocations: 39.59 kB / 472.3 MB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004415/0.3441, allocations: 159.8 kB / 472.5 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003656/0.3478, allocations: 2.154 MB / 474.6 MB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01742/0.3652, allocations: 9.098 MB / 483.7 MB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04936/0.4146, allocations: 41.49 MB / 0.5129 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/0.4263, allocations: 4.433 MB / 0.5172 GB, free: 5.066 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002991/0.4293, allocations: 2.431 MB / 0.5196 GB, free: 2.629 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.4413, allocations: 7.236 MB / 0.5267 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.4414, allocations: 59.48 kB / 0.5267 GB, free: 11.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.498e-06/0.4414, allocations: 0 / 0.5267 GB, free: 11.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2104/0.6518, allocations: 17.91 MB / 0.5442 GB, free: 128.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.6519, allocations: 175.2 kB / 0.5444 GB, free: 128.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00507/0.6569, allocations: 4.623 MB / 0.5489 GB, free: 126.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002132/0.6572, allocations: 54.55 kB / 0.5489 GB, free: 126.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.6585, allocations: 3.244 MB / 0.5521 GB, free: 123.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005281/0.659, allocations: 0.7521 MB / 0.5528 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.6603, allocations: 1.256 MB / 0.5541 GB, free: 122.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.597e-05/0.6604, allocations: 304.8 kB / 0.5544 GB, free: 122.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/0.663, allocations: 2.291 MB / 0.5566 GB, free: 121.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003837/0.6669, allocations: 6.027 MB / 0.5625 GB, free: 115.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007282/0.6742, allocations: 9.045 MB / 0.5713 GB, free: 105.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.404e-05/0.6743, allocations: 40 kB / 0.5713 GB, free: 105.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01198/0.6863, allocations: 8.874 MB / 0.58 GB, free: 96.85 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.818e-05/0.6864, allocations: 64 kB / 0.5801 GB, free: 96.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000102/0.6865, allocations: 128 kB / 0.5802 GB, free: 96.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001986/0.6885, allocations: 0.9499 MB / 0.5811 GB, free: 95.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/0.6923, allocations: 1.415 MB / 0.5825 GB, free: 94.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006316/0.6986, allocations: 6.52 MB / 0.5889 GB, free: 87.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004083/0.7027, allocations: 335.5 kB / 0.5892 GB, free: 87.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005045/0.7032, allocations: 379.7 kB / 0.5896 GB, free: 86.93 MB / 462.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.002533/0.7057, allocations: 2.242 MB / 0.5917 GB, free: 84.68 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005584/0.7063, allocations: 394.9 kB / 0.5921 GB, free: 84.29 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005143/0.7115, allocations: 3.68 MB / 0.5957 GB, free: 80.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/0.7115, allocations: 20 kB / 0.5957 GB, free: 80.58 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.7115, allocations: 11.94 kB / 0.5957 GB, free: 80.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/0.7115, allocations: 12.41 kB / 0.5958 GB, free: 80.55 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/0.7249, allocations: 9.146 MB / 0.6047 GB, free: 71.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.7249, allocations: 8 kB / 0.6047 GB, free: 71.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/0.7264, allocations: 330 kB / 0.605 GB, free: 70.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.7282, allocations: 0.7675 MB / 0.6058 GB, free: 70.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/0.7283, allocations: 45.02 kB / 0.6058 GB, free: 70.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006259/0.7346, allocations: 6.103 MB / 0.6118 GB, free: 63.94 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.7346, allocations: 8 kB / 0.6118 GB, free: 63.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00771/0.7423, allocations: 6.599 MB / 0.6182 GB, free: 57.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/0.7434, allocations: 463.8 kB / 0.6187 GB, free: 56.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/0.7439, allocations: 40 kB / 0.6187 GB, free: 56.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.7454, allocations: 115.8 kB / 0.6188 GB, free: 56.62 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002842/0.7457, allocations: 132.9 kB / 0.6189 GB, free: 56.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/0.7458, allocations: 63.91 kB / 0.619 GB, free: 56.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003331/0.7492, allocations: 2.961 MB / 0.6219 GB, free: 53.47 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7492, allocations: 0 / 0.6219 GB, free: 53.47 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004368/0.7536, allocations: 1.058 MB / 0.6229 GB, free: 52.41 MB / 462.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.007973/0.7616, allocations: 7.257 MB / 0.63 GB, free: 45.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006572/0.7682, allocations: 5.568 MB / 0.6354 GB, free: 39.51 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.7682, allocations: 0 / 0.6354 GB, free: 39.51 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002575/0.7708, allocations: 1.985 MB / 0.6374 GB, free: 37.51 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002737/0.7735, allocations: 0.5131 MB / 0.6379 GB, free: 37.01 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05787/0.8314, allocations: 50.62 MB / 0.6873 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003797/0.8352, allocations: 3.46 MB / 0.6907 GB, free: 8.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004364/0.8396, allocations: 2.047 MB / 0.6927 GB, free: 6.879 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002661/0.8423, allocations: 2.054 MB / 0.6947 GB, free: 4.824 MB / 494.1 MB Notification: Performance of SimCode: time 6.81e-07/0.8423, allocations: 0 / 0.6947 GB, free: 4.824 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2856/1.128, allocations: 78.52 MB / 0.7714 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.43/27.56, allocations: 7.562 kB / 0.7714 GB, free: 148.9 MB / 0.5137 GB (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