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.001577/0.001577, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.058/2.058, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 94.67 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2947/0.2947, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.181e-05/2.188e-05, allocations: 8.203 kB / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4022, allocations: 58.85 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2093/0.6115, allocations: 114 MB / 0.5772 GB, free: 1.273 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.6119, allocations: 75.97 kB / 0.5773 GB, free: 1.199 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8484/1.46, allocations: 121.1 MB / 0.6955 GB, free: 108.6 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.154e-06/1.46, allocations: 7.938 kB / 0.6955 GB, free: 108.6 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003139/1.461, allocations: 109.2 kB / 0.6957 GB, free: 108.6 MB / 475.1 MB 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.0219/1.483, allocations: 5.648 MB / 0.7012 GB, free: 104.9 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/1.483, allocations: 9.906 kB / 0.7012 GB, free: 104.9 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03405/1.517, allocations: 4.727 MB / 0.7058 GB, free: 102.6 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02465/1.541, allocations: 6.632 MB / 0.7123 GB, free: 97.11 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004812/1.542, allocations: 260.8 kB / 0.7125 GB, free: 96.85 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003109/1.545, allocations: 327.9 kB / 0.7128 GB, free: 96.53 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02107/1.566, allocations: 8.463 MB / 0.7211 GB, free: 88.07 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03075/1.597, allocations: 12.06 MB / 0.7329 GB, free: 74.88 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003114/1.597, allocations: 67.41 kB / 0.7329 GB, free: 74.81 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002231/1.6, allocations: 35.95 kB / 0.733 GB, free: 74.78 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002754/1.602, allocations: 1.309 MB / 0.7343 GB, free: 73.47 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08899/1.691, allocations: 57.64 MB / 0.7905 GB, free: 14.36 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007037/1.699, allocations: 3.918 MB / 0.7944 GB, free: 10.28 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004794/1.703, allocations: 2.63 MB / 0.7969 GB, free: 7.641 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02951/1.733, allocations: 11.73 MB / 0.8084 GB, free: 11.45 MB / 491.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.418e-05/1.733, allocations: 55.88 kB / 0.8084 GB, free: 11.38 MB / 491.1 MB Notification: Performance of pre-optimization done (n=191): time 6.663e-06/1.733, allocations: 0 / 0.8084 GB, free: 11.38 MB / 491.1 MB Notification: Performance of matching and sorting (n=242): time 1.05/2.783, allocations: 33.55 MB / 0.8412 GB, free: 130.1 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/2.783, allocations: 230.3 kB / 0.8414 GB, free: 129.9 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01367/2.797, allocations: 3.671 MB / 0.845 GB, free: 129.5 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0007119/2.798, allocations: 31.64 kB / 0.845 GB, free: 129.4 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004097/2.802, allocations: 3.897 MB / 0.8489 GB, free: 127.4 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.001765/2.803, allocations: 0.8859 MB / 0.8497 GB, free: 126.9 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/2.804, allocations: 1.094 kB / 0.8497 GB, free: 126.9 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0005878/2.805, allocations: 0.6295 MB / 0.8503 GB, free: 126.5 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007801/2.813, allocations: 3.062 MB / 0.8533 GB, free: 126.5 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01178/2.825, allocations: 7.45 MB / 0.8606 GB, free: 120.8 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/2.836, allocations: 4.662 MB / 0.8651 GB, free: 120.6 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003071/2.836, allocations: 42.88 kB / 0.8652 GB, free: 120.6 MB / 0.4952 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.04473/2.881, allocations: 12.71 MB / 0.8776 GB, free: 116.9 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001537/2.881, allocations: 72.19 kB / 0.8777 GB, free: 116.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002583/2.882, allocations: 164 kB / 0.8778 GB, free: 116.9 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0207/2.902, allocations: 3.78 MB / 0.8815 GB, free: 116.2 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0105/2.913, allocations: 1.663 MB / 0.8831 GB, free: 115.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.038/2.951, allocations: 16.52 MB / 0.8993 GB, free: 108.8 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009778/2.961, allocations: 355.4 kB / 0.8996 GB, free: 108.8 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002008/2.963, allocations: 443.2 kB / 0.9 GB, free: 108.8 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 716 * 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 (885): * Single equations (assignments): 881 * 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.002688/2.966, allocations: 0.4892 MB / 0.9005 GB, free: 108.3 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/2.967, allocations: 403.5 kB / 0.9009 GB, free: 108.1 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03014/2.997, allocations: 7.888 MB / 0.9086 GB, free: 105.6 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.441e-05/2.997, allocations: 28.97 kB / 0.9086 GB, free: 105.6 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.173e-05/2.997, allocations: 11.06 kB / 0.9086 GB, free: 105.6 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.755e-05/2.997, allocations: 13.44 kB / 0.9087 GB, free: 105.6 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05417/3.051, allocations: 16.21 MB / 0.9245 GB, free: 94.18 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.007e-05/3.052, allocations: 7.953 kB / 0.9245 GB, free: 94.17 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003734/3.055, allocations: 390.9 kB / 0.9249 GB, free: 93.88 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02092/3.076, allocations: 3.827 MB / 0.9286 GB, free: 91.39 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000668/3.077, allocations: 6.734 kB / 0.9286 GB, free: 91.39 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03452/3.112, allocations: 15.01 MB / 0.9433 GB, free: 76.95 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/3.112, allocations: 0 / 0.9433 GB, free: 76.95 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03763/3.149, allocations: 12.35 MB / 0.9553 GB, free: 64.54 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003689/3.153, allocations: 0.9011 MB / 0.9562 GB, free: 63.61 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001613/3.155, allocations: 8 kB / 0.9562 GB, free: 63.61 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005233/3.16, allocations: 179.7 kB / 0.9564 GB, free: 63.43 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001095/3.161, allocations: 142.2 kB / 0.9565 GB, free: 63.29 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003591/3.162, allocations: 60 kB / 0.9566 GB, free: 63.23 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.006304/3.168, allocations: 2.455 MB / 0.959 GB, free: 60.77 MB / 0.4952 GB Notification: Performance of sort global known variables: time 7.02e-07/3.168, allocations: 0 / 0.959 GB, free: 60.77 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01071/3.179, allocations: 1.273 MB / 0.9602 GB, free: 59.51 MB / 0.4952 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.001222/3.18, allocations: 187.8 kB / 0.9604 GB, free: 59.34 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01623/3.196, allocations: 7.414 MB / 0.9676 GB, free: 51.95 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/3.196, allocations: 4.375 kB / 0.9676 GB, free: 51.95 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.006367/3.203, allocations: 2.844 MB / 0.9704 GB, free: 49.09 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004242/3.207, allocations: 412.5 kB / 0.9708 GB, free: 48.7 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03161/3.239, allocations: 11.12 MB / 0.9817 GB, free: 37.52 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01008/3.249, allocations: 4.214 MB / 0.9858 GB, free: 33.3 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/3.251, allocations: 335.4 kB / 0.9861 GB, free: 32.98 MB / 0.4952 GB Notification: Performance of SimCode: time 1.353e-06/3.251, allocations: 0 / 0.9861 GB, free: 32.98 MB / 0.4952 GB Notification: Performance of Templates: time 0.5616/3.812, allocations: 94.2 MB / 1.078 GB, free: 111.7 MB / 0.5108 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