Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001207, allocations: 106.8 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 209.8 kB / 18.27 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2285/0.2285, allocations: 46.1 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 79.88 kB / 417.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1432, allocations: 62.44 MB / 479.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3682/0.5114, allocations: 63.14 MB / 0.53 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03597/0.5475, allocations: 12.5 MB / 0.5422 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01862/0.5661, allocations: 272.2 kB / 0.5425 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006406/0.5725, allocations: 2.915 MB / 0.5453 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008051/0.5807, allocations: 2.371 MB / 0.5476 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002792/0.5835, allocations: 0.9634 MB / 0.5486 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01147/0.595, allocations: 7.817 MB / 0.5562 GB, free: 8.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006835/0.6019, allocations: 4.367 MB / 0.5605 GB, free: 4.383 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005356/0.6072, allocations: 2.274 MB / 0.5627 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006112/0.6134, allocations: 3.548 MB / 0.5662 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001661/0.6151, allocations: 455.9 kB / 0.5666 GB, free: 14.1 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003327/0.6184, allocations: 1.295 MB / 0.5679 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00327/0.6217, allocations: 2.836 MB / 0.5706 GB, free: 9.957 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004461/0.6262, allocations: 3.246 MB / 0.5738 GB, free: 6.691 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.6374, allocations: 9.723 MB / 0.5833 GB, free: 12.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.6374, allocations: 0 / 0.5833 GB, free: 12.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.6374, allocations: 4 kB / 0.5833 GB, free: 12.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003161/0.6378, allocations: 0 / 0.5833 GB, free: 12.93 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01903/0.6568, allocations: 7.329 MB / 0.5905 GB, free: 5.523 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.6569, allocations: 8.031 kB / 0.5905 GB, free: 5.516 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002399/0.6593, allocations: 1.014 MB / 0.5915 GB, free: 4.492 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0289/0.6882, allocations: 5.604 MB / 0.5969 GB, free: 14.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01306/0.7013, allocations: 4.807 MB / 0.6016 GB, free: 10 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000402/0.7018, allocations: 320.6 kB / 0.6019 GB, free: 9.688 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002477/0.7043, allocations: 439.5 kB / 0.6023 GB, free: 9.258 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0334/0.7377, allocations: 15.52 MB / 0.6175 GB, free: 9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000328/0.7381, allocations: 59.48 kB / 0.6176 GB, free: 8.941 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002026/0.7401, allocations: 199.8 kB / 0.6178 GB, free: 8.746 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006557/0.7467, allocations: 3.376 MB / 0.6211 GB, free: 5.367 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02879/0.7755, allocations: 14.7 MB / 0.6354 GB, free: 6.652 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08509/0.8606, allocations: 55.08 MB / 0.6892 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0185/0.8791, allocations: 8.145 MB / 0.6971 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006463/0.8856, allocations: 4.771 MB / 0.7018 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002135/0.8878, allocations: 2.208 MB / 0.704 GB, free: 14.64 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.374e-05/0.8879, allocations: 69.08 kB / 0.704 GB, free: 14.56 MB / 0.545 GB Notification: Performance of pre-optimization done (n=367): time 8.906e-06/0.8879, allocations: 0 / 0.704 GB, free: 14.56 MB / 0.545 GB Notification: Performance of matching and sorting (n=419): time 0.3597/1.248, allocations: 39.55 MB / 0.7426 GB, free: 189.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.981e-05/1.248, allocations: 119.4 kB / 0.7428 GB, free: 189.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007049/1.255, allocations: 4.314 MB / 0.747 GB, free: 187.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008716/1.256, allocations: 81.33 kB / 0.7471 GB, free: 187.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002089/1.258, allocations: 3.824 MB / 0.7508 GB, free: 184.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001907/1.26, allocations: 1.485 MB / 0.7522 GB, free: 183.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00378/1.264, allocations: 1.522 MB / 0.7537 GB, free: 182.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.609e-05/1.264, allocations: 304.9 kB / 0.754 GB, free: 182.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004616/1.268, allocations: 3.94 MB / 0.7579 GB, free: 181.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006248/1.274, allocations: 7.695 MB / 0.7654 GB, free: 173 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/1.286, allocations: 12.65 MB / 0.7777 GB, free: 158.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001238/1.286, allocations: 36 kB / 0.7778 GB, free: 158.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02388/1.31, allocations: 14.17 MB / 0.7916 GB, free: 144.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002286/1.31, allocations: 63.98 kB / 0.7917 GB, free: 144.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003168/1.311, allocations: 132.1 kB / 0.7918 GB, free: 144.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006969/1.318, allocations: 2.682 MB / 0.7944 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006204/1.324, allocations: 1.758 MB / 0.7961 GB, free: 139.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01774/1.342, allocations: 15.23 MB / 0.811 GB, free: 124.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006487/1.348, allocations: 499.5 kB / 0.8115 GB, free: 123.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.35, allocations: 423.9 kB / 0.8119 GB, free: 123.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[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],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (911): * Single equations (assignments): 903 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006527/1.356, allocations: 2.866 MB / 0.8147 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/1.358, allocations: 466 kB / 0.8151 GB, free: 119.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01886/1.377, allocations: 10.56 MB / 0.8254 GB, free: 109.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.339e-05/1.377, allocations: 71.34 kB / 0.8255 GB, free: 109.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-05/1.377, allocations: 8 kB / 0.8255 GB, free: 109.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.888e-05/1.377, allocations: 15.94 kB / 0.8255 GB, free: 109.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04026/1.417, allocations: 21.34 MB / 0.8464 GB, free: 87.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.422e-05/1.418, allocations: 12 kB / 0.8464 GB, free: 87.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003315/1.421, allocations: 0.6779 MB / 0.847 GB, free: 87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00684/1.428, allocations: 2.504 MB / 0.8495 GB, free: 84.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008258/1.429, allocations: 75.98 kB / 0.8496 GB, free: 84.41 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/1.444, allocations: 13.82 MB / 0.8631 GB, free: 70.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/1.444, allocations: 19.88 kB / 0.8631 GB, free: 70.29 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02259/1.466, allocations: 15.11 MB / 0.8778 GB, free: 54.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/1.468, allocations: 495.4 kB / 0.8783 GB, free: 54.39 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001635/1.47, allocations: 83.98 kB / 0.8784 GB, free: 54.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003543/1.473, allocations: 303.8 kB / 0.8787 GB, free: 54.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00118/1.474, allocations: 265.9 kB / 0.8789 GB, free: 53.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006712/1.475, allocations: 123.4 kB / 0.879 GB, free: 53.64 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004458/1.48, allocations: 2.702 MB / 0.8817 GB, free: 50.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/1.48, allocations: 0 / 0.8817 GB, free: 50.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007444/1.487, allocations: 1.616 MB / 0.8833 GB, free: 49.32 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02413/1.511, allocations: 15.82 MB / 0.8987 GB, free: 33.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02782/1.539, allocations: 19.72 MB / 0.918 GB, free: 13.54 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.435e-05/1.539, allocations: 4 kB / 0.918 GB, free: 13.54 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2492/1.788, allocations: 4.311 MB / 0.9222 GB, free: 190.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004996/1.793, allocations: 0.7299 MB / 0.9229 GB, free: 190.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1304/1.924, allocations: 82.73 MB / 1.004 GB, free: 120.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008354/1.932, allocations: 4.539 MB / 1.008 GB, free: 115.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007701/1.94, allocations: 2.72 MB / 1.011 GB, free: 113 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005521/1.945, allocations: 2.827 MB / 1.014 GB, free: 110.2 MB / 0.545 GB Notification: Performance of SimCode: time 2.575e-06/1.945, allocations: 0 / 1.014 GB, free: 110.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3954/2.341, allocations: 117 MB / 1.128 GB, free: 173 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/2.341, allocations: 216.5 kB / 1.128 GB, free: 172.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.484/7.825, allocations: 1.375 kB / 1.128 GB, free: 172.8 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches