Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001607/0.001607, allocations: 181.3 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.4 MB / 223.6 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007528/0.0007528, allocations: 81.45 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3336/0.3336, allocations: 43.56 MB / 363.7 MB, free: 51.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003693/0.0003695, allocations: 12 kB / 432.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1166, allocations: 58.85 MB / 491.4 MB, free: 10.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3403/0.4569, allocations: 105.6 MB / 0.583 GB, free: 12.66 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.4573, allocations: 83.95 kB / 0.5831 GB, free: 12.58 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5196/0.9769, allocations: 126.5 MB / 0.7067 GB, free: 89.9 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.9769, allocations: 0 / 0.7067 GB, free: 89.9 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004065/0.9773, allocations: 124.3 kB / 0.7068 GB, free: 89.89 MB / 490.7 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.02181/0.9991, allocations: 6.404 MB / 0.713 GB, free: 87.25 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.9992, allocations: 13.5 kB / 0.713 GB, free: 87.24 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02418/1.023, allocations: 5.545 MB / 0.7185 GB, free: 86.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01632/1.04, allocations: 7.236 MB / 0.7255 GB, free: 85.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006025/1.04, allocations: 434.7 kB / 0.7259 GB, free: 85.91 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00392/1.044, allocations: 0.5772 MB / 0.7265 GB, free: 85.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03455/1.079, allocations: 15.3 MB / 0.7414 GB, free: 81.99 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004107/1.079, allocations: 61.3 kB / 0.7415 GB, free: 81.96 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003277/1.083, allocations: 264.2 kB / 0.7418 GB, free: 81.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003377/1.086, allocations: 1.698 MB / 0.7434 GB, free: 81.51 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02781/1.114, allocations: 14.66 MB / 0.7577 GB, free: 77.19 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08029/1.194, allocations: 56.28 MB / 0.8127 GB, free: 33.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0165/1.211, allocations: 7.942 MB / 0.8205 GB, free: 25.35 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00582/1.217, allocations: 4.737 MB / 0.8251 GB, free: 20.61 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001716/1.218, allocations: 2.21 MB / 0.8272 GB, free: 18.04 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.798e-05/1.219, allocations: 61.08 kB / 0.8273 GB, free: 17.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 8.065e-06/1.219, allocations: 0 / 0.8273 GB, free: 17.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.334/1.553, allocations: 38.76 MB / 0.8651 GB, free: 97.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.059e-05/1.553, allocations: 115.5 kB / 0.8653 GB, free: 97.19 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008848/1.561, allocations: 4.372 MB / 0.8695 GB, free: 96.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001066/1.563, allocations: 85.81 kB / 0.8696 GB, free: 96.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002747/1.565, allocations: 3.923 MB / 0.8734 GB, free: 95.88 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002143/1.568, allocations: 1.493 MB / 0.8749 GB, free: 95 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007964/1.568, allocations: 152.5 kB / 0.875 GB, free: 95 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005199/1.569, allocations: 0.6381 MB / 0.8757 GB, free: 94.69 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006213/1.575, allocations: 3.89 MB / 0.8795 GB, free: 94.67 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008976/1.584, allocations: 7.722 MB / 0.887 GB, free: 89.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01517/1.599, allocations: 12.66 MB / 0.8994 GB, free: 84.44 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001695/1.6, allocations: 36.53 kB / 0.8994 GB, free: 84.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1020) (initialization): time 0.03208/1.632, allocations: 14.1 MB / 0.9132 GB, free: 79.79 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002232/1.632, allocations: 63.58 kB / 0.9132 GB, free: 79.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002866/1.632, allocations: 136.2 kB / 0.9134 GB, free: 79.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007521/1.64, allocations: 2.614 MB / 0.9159 GB, free: 79.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007185/1.647, allocations: 1.952 MB / 0.9178 GB, free: 79.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01722/1.664, allocations: 13.64 MB / 0.9311 GB, free: 72.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006408/1.671, allocations: 485 kB / 0.9316 GB, free: 72.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/1.672, allocations: 428 kB / 0.932 GB, free: 72.68 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 597 * 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 (923): * Single equations (assignments): 915 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007669/1.68, allocations: 2.909 MB / 0.9349 GB, free: 71.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/1.682, allocations: 471.8 kB / 0.9353 GB, free: 71.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0199/1.702, allocations: 10.44 MB / 0.9455 GB, free: 67.73 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.73e-05/1.702, allocations: 64.31 kB / 0.9456 GB, free: 67.73 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.519e-05/1.702, allocations: 14.75 kB / 0.9456 GB, free: 67.73 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.427e-05/1.702, allocations: 17.44 kB / 0.9456 GB, free: 67.73 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04269/1.745, allocations: 21.06 MB / 0.9662 GB, free: 60.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.558e-05/1.745, allocations: 18.91 kB / 0.9662 GB, free: 60.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003702/1.748, allocations: 0.787 MB / 0.9669 GB, free: 60.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006714/1.755, allocations: 2.411 MB / 0.9693 GB, free: 60.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001017/1.756, allocations: 83.22 kB / 0.9694 GB, free: 60.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01515/1.771, allocations: 12.38 MB / 0.9815 GB, free: 51.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/1.771, allocations: 15.94 kB / 0.9815 GB, free: 51.38 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02346/1.795, allocations: 14.87 MB / 0.996 GB, free: 38.67 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003959/1.799, allocations: 1.159 MB / 0.9971 GB, free: 37.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002522/1.801, allocations: 77.41 kB / 0.9972 GB, free: 37.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004113/1.806, allocations: 292.8 kB / 0.9975 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00132/1.807, allocations: 271 kB / 0.9977 GB, free: 37.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008451/1.808, allocations: 114.7 kB / 0.9979 GB, free: 37.05 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005551/1.813, allocations: 2.723 MB / 1.001 GB, free: 34.83 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.022e-06/1.813, allocations: 0 / 1.001 GB, free: 34.83 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009778/1.823, allocations: 1.657 MB / 1.002 GB, free: 33.18 MB / 0.4948 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0015/1.825, allocations: 244.2 kB / 1.002 GB, free: 32.95 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01501/1.84, allocations: 9.725 MB / 1.012 GB, free: 24.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.511e-05/1.84, allocations: 4 kB / 1.012 GB, free: 24.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006521/1.846, allocations: 4.253 MB / 1.016 GB, free: 20.02 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01193/1.858, allocations: 0.6839 MB / 1.017 GB, free: 19.36 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03086/1.889, allocations: 19.13 MB / 1.035 GB, free: 100 kB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01035/1.9, allocations: 4.632 MB / 1.04 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00283/1.903, allocations: 403.3 kB / 1.04 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of SimCode: time 7.71e-07/1.903, allocations: 4 kB / 1.04 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of Templates: time 0.4204/2.323, allocations: 142.2 MB / 1.179 GB, free: 41.65 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches