Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 112.2 kB / 17.04 MB, free: 5.801 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.001551/0.001551, allocations: 195 kB / 17.97 MB, free: 5.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2369/0.2369, allocations: 43.52 MB / 314.7 MB, free: 492 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001939/0.00194, allocations: 71.16 kB / 384.2 MB, free: 56.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1617, allocations: 57.79 MB / 442 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02693/0.1887, allocations: 18.6 MB / 460.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.206, allocations: 5.366 MB / 465.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006657/0.2127, allocations: 107.7 kB / 466 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.2228, allocations: 3.067 MB / 469.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0125/0.2354, allocations: 2.622 MB / 471.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004207/0.2397, allocations: 1.026 MB / 472.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01658/0.2563, allocations: 7.41 MB / 480.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007138/0.2635, allocations: 4.242 MB / 484.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006145/0.2697, allocations: 2.289 MB / 486.7 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00626/0.276, allocations: 3.287 MB / 490 MB, free: 5.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001437/0.2774, allocations: 460 kB / 490.4 MB, free: 5.484 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003106/0.2806, allocations: 1.295 MB / 491.7 MB, free: 4.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003273/0.2838, allocations: 2.875 MB / 494.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00468/0.2885, allocations: 3.27 MB / 497.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.3017, allocations: 10.14 MB / 0.4961 GB, free: 3.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.3017, allocations: 0 / 0.4961 GB, free: 3.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3017, allocations: 4 kB / 0.4961 GB, free: 3.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000397/0.3021, allocations: 0 / 0.4961 GB, free: 3.836 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.0228/0.3249, allocations: 7.306 MB / 0.5032 GB, free: 12.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.325, allocations: 8.031 kB / 0.5033 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01634/0.3414, allocations: 3.841 MB / 0.507 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/0.3535, allocations: 4.323 MB / 0.5112 GB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005851/0.3541, allocations: 328.5 kB / 0.5115 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003273/0.3574, allocations: 443.7 kB / 0.512 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03503/0.3925, allocations: 15.8 MB / 0.5274 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003784/0.3929, allocations: 55.48 kB / 0.5274 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002117/0.395, allocations: 203.7 kB / 0.5276 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3703/0.7654, allocations: 3.469 MB / 0.531 GB, free: 80.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05281/0.8182, allocations: 14.92 MB / 0.5456 GB, free: 77.8 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1021/0.9203, allocations: 55.79 MB / 0.6001 GB, free: 26.87 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01781/0.9382, allocations: 8.198 MB / 0.6081 GB, free: 18.45 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006521/0.9448, allocations: 4.839 MB / 0.6128 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002058/0.9469, allocations: 2.206 MB / 0.615 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.595e-05/0.947, allocations: 73.02 kB / 0.615 GB, free: 10.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=367): time 1.243e-05/0.947, allocations: 0 / 0.615 GB, free: 10.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=419): time 0.1246/1.072, allocations: 40.26 MB / 0.6544 GB, free: 2.672 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/1.072, allocations: 116 kB / 0.6545 GB, free: 2.539 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01016/1.082, allocations: 4.361 MB / 0.6587 GB, free: 14.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001431/1.084, allocations: 89.53 kB / 0.6588 GB, free: 14.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004849/1.088, allocations: 3.867 MB / 0.6626 GB, free: 10.19 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004274/1.093, allocations: 1.493 MB / 0.6641 GB, free: 8.711 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007892/1.101, allocations: 1.583 MB / 0.6656 GB, free: 7.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/1.101, allocations: 301.1 kB / 0.6659 GB, free: 6.824 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008526/1.109, allocations: 4.087 MB / 0.6699 GB, free: 2.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/1.122, allocations: 7.908 MB / 0.6776 GB, free: 8.984 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02029/1.142, allocations: 12.97 MB / 0.6903 GB, free: 10.17 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002391/1.143, allocations: 36 kB / 0.6903 GB, free: 10.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.03768/1.18, allocations: 14.81 MB / 0.7048 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003243/1.181, allocations: 60 kB / 0.7048 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000425/1.181, allocations: 128 kB / 0.7049 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009393/1.191, allocations: 2.932 MB / 0.7078 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007921/1.199, allocations: 1.829 MB / 0.7096 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02793/1.227, allocations: 15.95 MB / 0.7252 GB, free: 6.102 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008743/1.235, allocations: 0.5055 MB / 0.7257 GB, free: 5.598 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002705/1.238, allocations: 431.9 kB / 0.7261 GB, free: 5.176 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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 (951): * Single equations (assignments): 943 * 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.009308/1.247, allocations: 2.925 MB / 0.7289 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00223/1.25, allocations: 458.1 kB / 0.7294 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3737/1.623, allocations: 10.93 MB / 0.74 GB, free: 174 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002096/1.624, allocations: 68.5 kB / 0.7401 GB, free: 174 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.142e-05/1.624, allocations: 9.188 kB / 0.7401 GB, free: 174 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001271/1.624, allocations: 19.12 kB / 0.7401 GB, free: 174 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04819/1.672, allocations: 21.66 MB / 0.7613 GB, free: 167.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.554e-05/1.672, allocations: 11.59 kB / 0.7613 GB, free: 167.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003539/1.676, allocations: 0.6858 MB / 0.762 GB, free: 167.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008119/1.684, allocations: 2.733 MB / 0.7646 GB, free: 167 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001474/1.685, allocations: 82.53 kB / 0.7647 GB, free: 166.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01947/1.705, allocations: 14.55 MB / 0.7789 GB, free: 155 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.318e-05/1.705, allocations: 15.94 kB / 0.7789 GB, free: 155 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02488/1.73, allocations: 15.57 MB / 0.7941 GB, free: 139.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004287/1.734, allocations: 1.176 MB / 0.7953 GB, free: 138.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002017/1.736, allocations: 79.72 kB / 0.7954 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003826/1.74, allocations: 311.4 kB / 0.7957 GB, free: 138.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001108/1.741, allocations: 277.7 kB / 0.7959 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005599/1.742, allocations: 112 kB / 0.796 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005791/1.748, allocations: 2.741 MB / 0.7987 GB, free: 135 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/1.748, allocations: 0 / 0.7987 GB, free: 135 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.009878/1.758, allocations: 1.698 MB / 0.8004 GB, free: 133.3 MB / 0.5137 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.001178/1.759, allocations: 229.8 kB / 0.8006 GB, free: 133.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01603/1.775, allocations: 10.13 MB / 0.8105 GB, free: 123 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.932e-05/1.775, allocations: 4 kB / 0.8105 GB, free: 123 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.007012/1.782, allocations: 4.37 MB / 0.8147 GB, free: 118.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007326/1.789, allocations: 0.7065 MB / 0.8154 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03016/1.819, allocations: 15.9 MB / 0.831 GB, free: 102 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008489/1.828, allocations: 4.613 MB / 0.8355 GB, free: 97.35 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.009125/1.837, allocations: 2.74 MB / 0.8381 GB, free: 94.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002425/1.84, allocations: 347.4 kB / 0.8385 GB, free: 94.26 MB / 0.5137 GB Notification: Performance of SimCode: time 2.325e-06/1.84, allocations: 0 / 0.8385 GB, free: 94.26 MB / 0.5137 GB Notification: Performance of Templates: time 0.1136/1.953, allocations: 66.47 MB / 0.9034 GB, free: 28.01 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches