Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",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.001071/0.001071, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001031/0.001031, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.336/1.336, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2743/0.2743, allocations: 44.18 MB / 336.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 70.05 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1272, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02053/0.1478, allocations: 18.19 MB / 487.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01152/0.1593, allocations: 5.292 MB / 492.8 MB, free: 6.707 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002809/0.1622, allocations: 111.7 kB / 492.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006189/0.1684, allocations: 3.06 MB / 496 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006661/0.1752, allocations: 2.579 MB / 498.6 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00288/0.1781, allocations: 1.018 MB / 499.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01059/0.1887, allocations: 7.469 MB / 0.4952 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008186/0.1969, allocations: 4.191 MB / 0.4993 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006856/0.2038, allocations: 2.25 MB / 0.5015 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2581/0.4619, allocations: 3.231 MB / 0.5046 GB, free: 17.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002465/0.4644, allocations: 453.4 kB / 0.5051 GB, free: 17.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004169/0.4686, allocations: 1.31 MB / 0.5063 GB, free: 17.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005097/0.4737, allocations: 2.827 MB / 0.5091 GB, free: 17.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007871/0.4816, allocations: 3.244 MB / 0.5123 GB, free: 16.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01676/0.4984, allocations: 9.756 MB / 0.5218 GB, free: 15.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.4985, allocations: 0 / 0.5218 GB, free: 15.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4985, allocations: 4.281 kB / 0.5218 GB, free: 15.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004356/0.4989, allocations: 0 / 0.5218 GB, free: 15.54 MB / 382.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.02631/0.5253, allocations: 7.329 MB / 0.529 GB, free: 11.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.053e-05/0.5253, allocations: 10.19 kB / 0.529 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004132/0.5295, allocations: 1.008 MB / 0.53 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02928/0.5588, allocations: 5.604 MB / 0.5354 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0104/0.5692, allocations: 5.245 MB / 0.5406 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.5694, allocations: 317.5 kB / 0.5409 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001996/0.5714, allocations: 431.8 kB / 0.5413 GB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02783/0.5993, allocations: 15.53 MB / 0.5564 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002403/0.5995, allocations: 60.28 kB / 0.5565 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000947/0.6005, allocations: 200 kB / 0.5567 GB, free: 6.758 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006715/0.6072, allocations: 3.376 MB / 0.56 GB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03456/0.6418, allocations: 14.69 MB / 0.5743 GB, free: 4.898 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09504/0.7369, allocations: 55.08 MB / 0.6281 GB, free: 13.43 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02067/0.7576, allocations: 8.145 MB / 0.6361 GB, free: 5.066 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008186/0.7658, allocations: 4.775 MB / 0.6407 GB, free: 288 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002499/0.7684, allocations: 2.21 MB / 0.6429 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.152e-05/0.7685, allocations: 65.08 kB / 0.6429 GB, free: 13.63 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 9.939e-06/0.7685, allocations: 0 / 0.6429 GB, free: 13.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1325/0.901, allocations: 39.56 MB / 0.6816 GB, free: 6.121 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002/0.9012, allocations: 120 kB / 0.6817 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01049/0.9117, allocations: 4.314 MB / 0.6859 GB, free: 1.652 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001567/0.9133, allocations: 85.7 kB / 0.686 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004279/0.9176, allocations: 3.823 MB / 0.6897 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003198/0.9208, allocations: 1.49 MB / 0.6912 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005611/0.9265, allocations: 1.52 MB / 0.6927 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.9266, allocations: 305.1 kB / 0.693 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006948/0.9336, allocations: 3.946 MB / 0.6968 GB, free: 6.484 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2751/1.209, allocations: 7.69 MB / 0.7043 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01646/1.225, allocations: 12.65 MB / 0.7167 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001922/1.225, allocations: 36.94 kB / 0.7167 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02821/1.254, allocations: 14.17 MB / 0.7305 GB, free: 169 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/1.254, allocations: 62.59 kB / 0.7306 GB, free: 169 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000147/1.254, allocations: 125.4 kB / 0.7307 GB, free: 169 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007135/1.261, allocations: 2.685 MB / 0.7333 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006684/1.268, allocations: 1.765 MB / 0.7351 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/1.285, allocations: 15.22 MB / 0.7499 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006939/1.292, allocations: 495.6 kB / 0.7504 GB, free: 157 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/1.294, allocations: 431.1 kB / 0.7508 GB, free: 156.6 MB / 0.5294 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.005494/1.299, allocations: 2.874 MB / 0.7536 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009206/1.3, allocations: 463 kB / 0.7541 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01603/1.316, allocations: 10.56 MB / 0.7644 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.457e-05/1.316, allocations: 63.94 kB / 0.7644 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/1.316, allocations: 8 kB / 0.7644 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.245e-05/1.316, allocations: 19.92 kB / 0.7645 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03597/1.352, allocations: 21.34 MB / 0.7853 GB, free: 122.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.556e-05/1.352, allocations: 8 kB / 0.7853 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003181/1.355, allocations: 0.6899 MB / 0.786 GB, free: 122.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00661/1.362, allocations: 2.49 MB / 0.7884 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007373/1.363, allocations: 81.16 kB / 0.7885 GB, free: 119.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01468/1.378, allocations: 13.83 MB / 0.802 GB, free: 105.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.799e-06/1.378, allocations: 16.81 kB / 0.802 GB, free: 105.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02148/1.399, allocations: 15.12 MB / 0.8168 GB, free: 90.12 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001566/1.401, allocations: 0.491 MB / 0.8173 GB, free: 89.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001361/1.402, allocations: 72 kB / 0.8173 GB, free: 89.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003036/1.405, allocations: 309.3 kB / 0.8176 GB, free: 89.23 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007473/1.406, allocations: 262 kB / 0.8179 GB, free: 88.98 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002914/1.406, allocations: 116 kB / 0.818 GB, free: 88.86 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003805/1.41, allocations: 2.714 MB / 0.8206 GB, free: 86.15 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.5e-07/1.41, allocations: 0 / 0.8206 GB, free: 86.15 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007446/1.417, allocations: 1.634 MB / 0.8222 GB, free: 84.52 MB / 0.5294 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.02104/1.439, allocations: 15.82 MB / 0.8377 GB, free: 68.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02976/1.468, allocations: 19.72 MB / 0.8569 GB, free: 48.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.678e-05/1.468, allocations: 0 / 0.8569 GB, free: 48.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006041/1.474, allocations: 4.308 MB / 0.8611 GB, free: 44.36 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004504/1.479, allocations: 0.7383 MB / 0.8619 GB, free: 43.64 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3164/1.795, allocations: 79.88 MB / 0.9399 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005346/1.801, allocations: 4.543 MB / 0.9443 GB, free: 153 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006142/1.807, allocations: 2.722 MB / 0.947 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005045/1.812, allocations: 2.823 MB / 0.9497 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.203e-06/1.812, allocations: 0 / 0.9497 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1986/2.011, allocations: 117.2 MB / 1.064 GB, free: 31.46 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/14.43, allocations: 0 / 1.064 GB, free: 31.46 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches