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.001562/0.001562, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001741/0.001741, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.298/1.298, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 43.62 kB / 300.7 MB, free: 5.719 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.083/0.08408, allocations: 49.45 MB / 350.2 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01138/0.09549, allocations: 11.39 MB / 361.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007122/0.1026, allocations: 4.077 MB / 365.6 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0014/0.1041, allocations: 71.81 kB / 365.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005087/0.1092, allocations: 3.197 MB / 368.9 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1535/0.2627, allocations: 1.949 MB / 370.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002063/0.2648, allocations: 0.8268 MB / 371.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007149/0.272, allocations: 4.442 MB / 376.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00491/0.2769, allocations: 4.068 MB / 380.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002688/0.2796, allocations: 1.646 MB / 381.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002794/0.2824, allocations: 2.158 MB / 384 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006986/0.2831, allocations: 357.1 kB / 384.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.2852, allocations: 1.262 MB / 385.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001337/0.2866, allocations: 2.066 MB / 387.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001806/0.2884, allocations: 2.383 MB / 390.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005645/0.294, allocations: 7.45 MB / 397.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2941, allocations: 0 / 397.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2941, allocations: 0 / 397.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.655e-05/0.2942, allocations: 0 / 397.5 MB, free: 1.27 MB / 302.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.01074/0.3049, allocations: 5.283 MB / 402.8 MB, free: 12.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/0.305, allocations: 8.031 kB / 402.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001103/0.3061, allocations: 0.7559 MB / 403.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0226/0.3287, allocations: 3.917 MB / 407.5 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006385/0.3351, allocations: 3.076 MB / 410.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.3353, allocations: 255.8 kB / 410.8 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008515/0.3362, allocations: 319.8 kB / 411.1 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01576/0.352, allocations: 10.76 MB / 421.9 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.726e-05/0.3521, allocations: 45.19 kB / 421.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003511/0.3525, allocations: 154.5 kB / 422.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003221/0.3557, allocations: 2.151 MB / 424.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01495/0.3706, allocations: 9.09 MB / 433.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0418/0.4125, allocations: 41.69 MB / 475 MB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01086/0.4233, allocations: 4.428 MB / 479.4 MB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002611/0.426, allocations: 2.437 MB / 481.9 MB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009209/0.4352, allocations: 7.236 MB / 489.1 MB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.4353, allocations: 47.56 kB / 489.1 MB, free: 5.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 3.486e-06/0.4353, allocations: 4 kB / 489.1 MB, free: 5.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.0404/0.4757, allocations: 17.91 MB / 0.4952 GB, free: 3.102 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.738e-05/0.4758, allocations: 179.5 kB / 0.4953 GB, free: 2.891 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005428/0.4812, allocations: 4.624 MB / 0.4999 GB, free: 14.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001915/0.4814, allocations: 55.97 kB / 0.4999 GB, free: 14.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/0.4835, allocations: 3.234 MB / 0.5031 GB, free: 10.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006839/0.4842, allocations: 0.7576 MB / 0.5038 GB, free: 10.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00148/0.4857, allocations: 1.26 MB / 0.505 GB, free: 8.938 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.643e-05/0.4858, allocations: 305.1 kB / 0.5053 GB, free: 8.637 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002967/0.4887, allocations: 2.292 MB / 0.5076 GB, free: 6.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005086/0.4938, allocations: 6.02 MB / 0.5135 GB, free: 14.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009302/0.5032, allocations: 9.046 MB / 0.5223 GB, free: 3.602 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.115e-05/0.5033, allocations: 36 kB / 0.5223 GB, free: 3.566 MB / 446.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.169/0.6723, allocations: 8.871 MB / 0.531 GB, free: 141.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/0.6724, allocations: 61.94 kB / 0.531 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001974/0.6727, allocations: 130.4 kB / 0.5312 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/0.6749, allocations: 0.943 MB / 0.5321 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004189/0.6791, allocations: 1.418 MB / 0.5335 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007427/0.6865, allocations: 6.546 MB / 0.5399 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004149/0.6907, allocations: 347.8 kB / 0.5402 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006305/0.6914, allocations: 381.9 kB / 0.5406 GB, free: 138.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.003244/0.6946, allocations: 2.237 MB / 0.5427 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006423/0.6953, allocations: 393.1 kB / 0.5431 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005543/0.7008, allocations: 3.691 MB / 0.5467 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.858e-05/0.7009, allocations: 23.97 kB / 0.5467 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.7009, allocations: 3.625 kB / 0.5468 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.7009, allocations: 6.938 kB / 0.5468 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.7136, allocations: 9.257 MB / 0.5558 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.7136, allocations: 11.81 kB / 0.5558 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/0.715, allocations: 320.3 kB / 0.5561 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001738/0.7168, allocations: 0.7638 MB / 0.5569 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001422/0.7169, allocations: 40.2 kB / 0.5569 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006198/0.7231, allocations: 6.061 MB / 0.5628 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.7231, allocations: 11.47 kB / 0.5628 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007547/0.7307, allocations: 6.586 MB / 0.5693 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009267/0.7316, allocations: 459.8 kB / 0.5697 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004684/0.7321, allocations: 47.5 kB / 0.5697 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/0.7336, allocations: 115.8 kB / 0.5699 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002784/0.7339, allocations: 125 kB / 0.57 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.734, allocations: 56 kB / 0.57 GB, free: 122.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003656/0.7377, allocations: 2.965 MB / 0.5729 GB, free: 119.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7377, allocations: 4 kB / 0.5729 GB, free: 119.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004477/0.7422, allocations: 1.05 MB / 0.574 GB, free: 118.2 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.007246/0.7494, allocations: 7.254 MB / 0.581 GB, free: 110.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008126/0.7576, allocations: 6.661 MB / 0.5875 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.7576, allocations: 0 / 0.5875 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002435/0.76, allocations: 1.976 MB / 0.5895 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/0.7636, allocations: 0.5228 MB / 0.59 GB, free: 101.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05383/0.8174, allocations: 58.92 MB / 0.6475 GB, free: 34.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002582/0.82, allocations: 3.456 MB / 0.6509 GB, free: 30.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003817/0.8239, allocations: 2.05 MB / 0.6529 GB, free: 28.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001859/0.8257, allocations: 2.061 MB / 0.6549 GB, free: 26.81 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.8257, allocations: 0 / 0.6549 GB, free: 26.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7061/1.532, allocations: 81.45 MB / 0.7344 GB, free: 142.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/14.07, allocations: 5.016 kB / 0.7345 GB, free: 142.8 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