Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001211/0.001211, allocations: 113.6 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.4 MB / 246.4 MB, free: 10.84 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.47 kB / 306.6 MB, free: 0.8711 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08187/0.08313, allocations: 50.52 MB / 357.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1924/0.2755, allocations: 49.34 MB / 406.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02443/0.3, allocations: 10.22 MB / 416.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008812/0.3088, allocations: 216.5 kB / 416.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005446/0.3143, allocations: 3.062 MB / 419.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00444/0.3188, allocations: 1.744 MB / 421.7 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.3205, allocations: 0.7878 MB / 422.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005608/0.3262, allocations: 4.625 MB / 427.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004802/0.331, allocations: 4.221 MB / 431.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002339/0.3333, allocations: 1.647 MB / 432.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002892/0.3363, allocations: 2.348 MB / 435.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008765/0.3371, allocations: 344 kB / 435.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.3395, allocations: 1.26 MB / 436.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002133/0.3416, allocations: 2.03 MB / 438.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00308/0.3447, allocations: 2.33 MB / 441.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006949/0.3517, allocations: 7.243 MB / 448.5 MB, free: 76 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3517, allocations: 4 kB / 448.5 MB, free: 72 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3517, allocations: 0 / 448.5 MB, free: 72 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001292/0.3519, allocations: 0 / 448.5 MB, free: 72 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01044/0.3623, allocations: 5.147 MB / 453.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3624, allocations: 12.03 kB / 453.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001256/0.3636, allocations: 0.7399 MB / 454.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02097/0.3846, allocations: 3.872 MB / 458.3 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005901/0.3905, allocations: 2.921 MB / 461.2 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.3908, allocations: 246.1 kB / 461.4 MB, free: 2.984 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009553/0.3917, allocations: 319.8 kB / 461.7 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/0.4088, allocations: 10.38 MB / 472.1 MB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001341/0.4089, allocations: 39.67 kB / 472.2 MB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006631/0.4096, allocations: 155.9 kB / 472.3 MB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003202/0.4128, allocations: 2.033 MB / 474.3 MB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01593/0.4288, allocations: 8.784 MB / 483.1 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04507/0.4739, allocations: 40.76 MB / 0.5116 GB, free: 2.703 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01079/0.4847, allocations: 4.433 MB / 0.5159 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003047/0.4877, allocations: 2.438 MB / 0.5183 GB, free: 11.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01165/0.4994, allocations: 7.216 MB / 0.5254 GB, free: 4.242 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.4995, allocations: 51.56 kB / 0.5254 GB, free: 4.184 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.078e-06/0.4995, allocations: 0 / 0.5254 GB, free: 4.184 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.1976/0.6971, allocations: 17.79 MB / 0.5428 GB, free: 143.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.6972, allocations: 173.8 kB / 0.543 GB, free: 143.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005161/0.7023, allocations: 4.564 MB / 0.5474 GB, free: 141.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001645/0.7025, allocations: 52.64 kB / 0.5475 GB, free: 141.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.7038, allocations: 3.157 MB / 0.5505 GB, free: 139.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004722/0.7043, allocations: 0.7498 MB / 0.5513 GB, free: 138.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/0.7055, allocations: 1.248 MB / 0.5525 GB, free: 138.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.812e-05/0.7055, allocations: 301.1 kB / 0.5528 GB, free: 137.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/0.7079, allocations: 2.282 MB / 0.555 GB, free: 137 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003336/0.7113, allocations: 5.96 MB / 0.5608 GB, free: 131.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006385/0.7177, allocations: 8.955 MB / 0.5696 GB, free: 124 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.172e-05/0.7177, allocations: 36.41 kB / 0.5696 GB, free: 124 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01022/0.7279, allocations: 8.798 MB / 0.5782 GB, free: 115.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.514e-05/0.728, allocations: 60 kB / 0.5783 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.167e-05/0.7281, allocations: 128 kB / 0.5784 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001821/0.7299, allocations: 0.9481 MB / 0.5793 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003276/0.7332, allocations: 1.407 MB / 0.5807 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006048/0.7393, allocations: 6.523 MB / 0.5871 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003904/0.7432, allocations: 339.4 kB / 0.5874 GB, free: 106.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003646/0.7436, allocations: 376 kB / 0.5877 GB, free: 105.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (744): * Single equations (assignments): 738 * 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.002276/0.7458, allocations: 2.179 MB / 0.5899 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005048/0.7463, allocations: 386.9 kB / 0.5902 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005023/0.7514, allocations: 3.687 MB / 0.5938 GB, free: 99.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.112e-05/0.7514, allocations: 27.83 kB / 0.5939 GB, free: 99.42 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.7514, allocations: 7.938 kB / 0.5939 GB, free: 99.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.7515, allocations: 11.95 kB / 0.5939 GB, free: 99.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/0.7635, allocations: 9.141 MB / 0.6028 GB, free: 90.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.7635, allocations: 4 kB / 0.6028 GB, free: 90.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.7648, allocations: 319.5 kB / 0.6031 GB, free: 89.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001636/0.7664, allocations: 0.77 MB / 0.6039 GB, free: 89.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/0.7666, allocations: 41.02 kB / 0.6039 GB, free: 89.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005904/0.7725, allocations: 6.056 MB / 0.6098 GB, free: 82.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.7725, allocations: 11.94 kB / 0.6098 GB, free: 82.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007429/0.78, allocations: 6.594 MB / 0.6163 GB, free: 76.15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000908/0.7809, allocations: 459.8 kB / 0.6167 GB, free: 75.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007602/0.7816, allocations: 39.98 kB / 0.6168 GB, free: 75.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001764/0.7834, allocations: 115.8 kB / 0.6169 GB, free: 75.53 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002677/0.7837, allocations: 121 kB / 0.617 GB, free: 75.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.7838, allocations: 59.98 kB / 0.617 GB, free: 75.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003699/0.7875, allocations: 2.928 MB / 0.6199 GB, free: 72.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7875, allocations: 0 / 0.6199 GB, free: 72.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004447/0.792, allocations: 1.029 MB / 0.6209 GB, free: 71.39 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.007485/0.7995, allocations: 7.242 MB / 0.628 GB, free: 64.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008146/0.8076, allocations: 6.632 MB / 0.6344 GB, free: 57.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.8077, allocations: 0 / 0.6344 GB, free: 57.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002666/0.8103, allocations: 1.973 MB / 0.6364 GB, free: 55.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003542/0.8139, allocations: 0.4886 MB / 0.6369 GB, free: 55.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07143/0.8853, allocations: 59.86 MB / 0.6953 GB, free: 2.801 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1558/1.041, allocations: 3.359 MB / 0.6986 GB, free: 153.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005237/1.046, allocations: 2.033 MB / 0.7006 GB, free: 153.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002544/1.049, allocations: 1.99 MB / 0.7025 GB, free: 153.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/1.049, allocations: 3.562 kB / 0.7025 GB, free: 153.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3913/1.44, allocations: 80.25 MB / 0.7809 GB, free: 91.02 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/1.441, allocations: 253.4 kB / 0.7811 GB, free: 90.76 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.58/6.021, allocations: 0 / 0.7811 GB, free: 90.76 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches