Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.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.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2") translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002245/0.002244, allocations: 181.8 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001071/0.001071, allocations: 90.69 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.281/0.281, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.538e-05/3.557e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1136, allocations: 58.85 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5132/0.6269, allocations: 114.6 MB / 0.5847 GB, free: 5.367 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.6272, allocations: 81.23 kB / 0.5848 GB, free: 5.328 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5416/1.169, allocations: 123.6 MB / 0.7055 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.344e-06/1.169, allocations: 0 / 0.7055 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003808/1.169, allocations: 112 kB / 0.7056 GB, free: 1.086 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.3591/1.528, allocations: 5.634 MB / 0.7111 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/1.529, allocations: 9.125 kB / 0.7111 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03805/1.567, allocations: 4.731 MB / 0.7158 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02673/1.593, allocations: 6.647 MB / 0.7223 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008485/1.594, allocations: 445.5 kB / 0.7227 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003446/1.598, allocations: 0.5414 MB / 0.7232 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04574/1.644, allocations: 14.07 MB / 0.7369 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004167/1.644, allocations: 74.66 kB / 0.737 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00286/1.647, allocations: 261.6 kB / 0.7373 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002996/1.65, allocations: 1.296 MB / 0.7385 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03816/1.688, allocations: 11.66 MB / 0.7499 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09422/1.782, allocations: 59.34 MB / 0.8079 GB, free: 61.57 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01987/1.802, allocations: 4.645 MB / 0.8124 GB, free: 59.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005417/1.808, allocations: 2.712 MB / 0.8151 GB, free: 58.63 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0294/1.837, allocations: 12.61 MB / 0.8274 GB, free: 50.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/1.837, allocations: 60.31 kB / 0.8274 GB, free: 50.63 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=191): time 6.152e-06/1.837, allocations: 0 / 0.8274 GB, free: 50.63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=242): time 0.1808/2.018, allocations: 32.84 MB / 0.8595 GB, free: 24.41 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/2.018, allocations: 235.3 kB / 0.8597 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01074/2.029, allocations: 4.2 MB / 0.8638 GB, free: 20.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007137/2.03, allocations: 61.7 kB / 0.8639 GB, free: 20.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003278/2.033, allocations: 3.794 MB / 0.8676 GB, free: 16.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001512/2.035, allocations: 0.9148 MB / 0.8685 GB, free: 16.09 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/2.036, allocations: 147.9 kB / 0.8686 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005706/2.037, allocations: 0.6163 MB / 0.8692 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007933/2.044, allocations: 3.152 MB / 0.8723 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01086/2.055, allocations: 7.435 MB / 0.8796 GB, free: 3.301 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01113/2.067, allocations: 4.752 MB / 0.8842 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001505/2.067, allocations: 44 kB / 0.8842 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.05017/2.117, allocations: 13.52 MB / 0.8974 GB, free: 0.9883 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001376/2.117, allocations: 79.92 kB / 0.8975 GB, free: 0.9102 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002284/2.117, allocations: 148.9 kB / 0.8977 GB, free: 0.7656 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4364/2.554, allocations: 3.799 MB / 0.9014 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01097/2.565, allocations: 1.613 MB / 0.9029 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04485/2.61, allocations: 18 MB / 0.9205 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00969/2.62, allocations: 492 kB / 0.921 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001811/2.621, allocations: 437.3 kB / 0.9214 GB, free: 108.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 689 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (859): * Single equations (assignments): 855 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003077/2.625, allocations: 0.6495 MB / 0.922 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/2.626, allocations: 432.7 kB / 0.9225 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03158/2.657, allocations: 8.084 MB / 0.9304 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.056e-05/2.658, allocations: 24.28 kB / 0.9304 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.211e-05/2.658, allocations: 11.72 kB / 0.9304 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.826e-05/2.658, allocations: 14.59 kB / 0.9304 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05771/2.715, allocations: 17.39 MB / 0.9474 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.741e-05/2.715, allocations: 0 / 0.9474 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004124/2.72, allocations: 390.4 kB / 0.9478 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02193/2.742, allocations: 3.844 MB / 0.9515 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006623/2.742, allocations: 50.06 kB / 0.9516 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03869/2.781, allocations: 16.45 MB / 0.9676 GB, free: 97.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/2.781, allocations: 0 / 0.9676 GB, free: 97.04 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03939/2.82, allocations: 12.55 MB / 0.9799 GB, free: 92.71 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003688/2.824, allocations: 0.939 MB / 0.9808 GB, free: 92.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001624/2.826, allocations: 41.56 kB / 0.9808 GB, free: 92.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005147/2.831, allocations: 213.5 kB / 0.981 GB, free: 92.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00115/2.832, allocations: 145.9 kB / 0.9812 GB, free: 92.17 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003986/2.833, allocations: 61.33 kB / 0.9812 GB, free: 92.16 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007916/2.841, allocations: 2.924 MB / 0.9841 GB, free: 91.13 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.81e-07/2.841, allocations: 0 / 0.9841 GB, free: 91.13 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00986/2.851, allocations: 1.462 MB / 0.9855 GB, free: 90.98 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001234/2.852, allocations: 215.1 kB / 0.9857 GB, free: 90.86 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01767/2.87, allocations: 7.74 MB / 0.9933 GB, free: 86.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/2.87, allocations: 0 / 0.9933 GB, free: 86.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007284/2.877, allocations: 2.918 MB / 0.9961 GB, free: 83.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004571/2.882, allocations: 498.8 kB / 0.9966 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03181/2.913, allocations: 11.26 MB / 1.008 GB, free: 73.31 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009979/2.923, allocations: 4.223 MB / 1.012 GB, free: 70.18 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002028/2.926, allocations: 340 kB / 1.012 GB, free: 69.86 MB / 0.5105 GB Notification: Performance of SimCode: time 1.252e-06/2.926, allocations: 0 / 1.012 GB, free: 69.86 MB / 0.5105 GB Notification: Performance of Templates: time 0.5547/3.48, allocations: 96.69 MB / 1.106 GB, free: 117.2 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUSP2/JointUSP2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches