Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.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.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0015/0.0015, allocations: 178.1 kB / 8.362 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.021/2.021, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001073/0.001073, allocations: 92.34 kB / 262.1 MB, free: 13.88 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.3/0.3, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.633e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3968, allocations: 58.85 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.5894, allocations: 105.1 MB / 0.5685 GB, free: 10.22 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.5897, allocations: 75.97 kB / 0.5686 GB, free: 10.15 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.03/1.62, allocations: 167.4 MB / 0.732 GB, free: 75.82 MB / 475.1 MB Notification: Performance of FrontEnd: time 4.208e-06/1.62, allocations: 4 kB / 0.732 GB, free: 75.81 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.000616/1.62, allocations: 171.9 kB / 0.7322 GB, free: 75.64 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: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.03464/1.655, allocations: 8.26 MB / 0.7403 GB, free: 67.32 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/1.655, allocations: 12.03 kB / 0.7403 GB, free: 67.31 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08541/1.741, allocations: 12.08 MB / 0.7521 GB, free: 55.2 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03872/1.779, allocations: 10.95 MB / 0.7628 GB, free: 44.27 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005368/1.78, allocations: 276 kB / 0.763 GB, free: 44 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004581/1.784, allocations: 0.5075 MB / 0.7635 GB, free: 43.49 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02958/1.814, allocations: 11.44 MB / 0.7747 GB, free: 32.05 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04655/1.861, allocations: 17.21 MB / 0.7915 GB, free: 13.32 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006154/1.861, allocations: 107 kB / 0.7916 GB, free: 13.21 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003815/1.865, allocations: 44 kB / 0.7917 GB, free: 13.17 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004048/1.869, allocations: 1.82 MB / 0.7934 GB, free: 11.35 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.076/2.945, allocations: 78.77 MB / 0.8704 GB, free: 57.88 MB / 0.4953 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01227/2.958, allocations: 5.859 MB / 0.8761 GB, free: 57.18 MB / 0.4953 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008243/2.966, allocations: 3.99 MB / 0.88 GB, free: 57.14 MB / 0.4953 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001148/2.967, allocations: 0.6607 MB / 0.8806 GB, free: 56.57 MB / 0.4953 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.587e-05/2.967, allocations: 73.33 kB / 0.8807 GB, free: 56.54 MB / 0.4953 GB Notification: Performance of pre-optimization done (n=311): time 7.875e-06/2.967, allocations: 0 / 0.8807 GB, free: 56.54 MB / 0.4953 GB Notification: Performance of matching and sorting (n=338): time 0.1064/3.074, allocations: 33.72 MB / 0.9136 GB, free: 48.98 MB / 0.4953 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/3.074, allocations: 288.1 kB / 0.9139 GB, free: 48.67 MB / 0.4953 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01375/3.088, allocations: 5.54 MB / 0.9193 GB, free: 46.7 MB / 0.4953 GB Notification: Performance of collectPreVariables (initialization): time 0.0008545/3.088, allocations: 28.22 kB / 0.9193 GB, free: 46.66 MB / 0.4953 GB Notification: Performance of collectInitialEqns (initialization): time 0.00492/3.093, allocations: 5.771 MB / 0.925 GB, free: 42.23 MB / 0.4953 GB Notification: Performance of collectInitialBindings (initialization): time 0.002067/3.096, allocations: 1.244 MB / 0.9262 GB, free: 41.32 MB / 0.4953 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001319/3.097, allocations: 0 / 0.9262 GB, free: 41.32 MB / 0.4953 GB Notification: Performance of setup shared object (initialization): time 0.0008965/3.098, allocations: 0.7352 MB / 0.9269 GB, free: 40.82 MB / 0.4953 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008395/3.106, allocations: 3.336 MB / 0.9302 GB, free: 39.62 MB / 0.4953 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0124/3.119, allocations: 9.256 MB / 0.9392 GB, free: 30.43 MB / 0.4953 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01247/3.131, allocations: 5.479 MB / 0.9445 GB, free: 28.78 MB / 0.4953 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002647/3.131, allocations: 61.75 kB / 0.9446 GB, free: 28.78 MB / 0.4953 GB Notification: Performance of matching and sorting (n=1313) (initialization): time 0.03329/3.165, allocations: 11.94 MB / 0.9563 GB, free: 21.43 MB / 0.4953 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001631/3.165, allocations: 96 kB / 0.9564 GB, free: 21.34 MB / 0.4953 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000352/3.165, allocations: 212 kB / 0.9566 GB, free: 21.13 MB / 0.4953 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004117/3.17, allocations: 1.042 MB / 0.9576 GB, free: 20.26 MB / 0.4953 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01493/3.184, allocations: 2.345 MB / 0.9599 GB, free: 18.23 MB / 0.4953 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01646/3.201, allocations: 10.85 MB / 0.9705 GB, free: 7.949 MB / 0.4953 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01136/3.212, allocations: 360.9 kB / 0.9708 GB, free: 7.656 MB / 0.4953 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002585/3.215, allocations: 0.5922 MB / 0.9714 GB, free: 7.078 MB / 0.4953 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 963 * Number of states: 0 () * Number of discrete variables: 66 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1233): * Single equations (assignments): 1226 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003878/3.219, allocations: 0.6382 MB / 0.972 GB, free: 6.438 MB / 0.4953 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001962/3.221, allocations: 0.6042 MB / 0.9726 GB, free: 5.828 MB / 0.4953 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01675/3.238, allocations: 5.679 MB / 0.9781 GB, free: 1.129 MB / 0.4953 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/3.238, allocations: 39.09 kB / 0.9782 GB, free: 1.094 MB / 0.4953 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.96e-05/3.238, allocations: 18.94 kB / 0.9782 GB, free: 1.078 MB / 0.4953 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001005/3.238, allocations: 16.27 kB / 0.9782 GB, free: 1.078 MB / 0.4953 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05023/3.288, allocations: 13.47 MB / 0.9914 GB, free: 6.492 MB / 0.5109 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.025e-05/3.288, allocations: 0 / 0.9914 GB, free: 6.492 MB / 0.5109 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006155/3.295, allocations: 0.5606 MB / 0.9919 GB, free: 6.043 MB / 0.5109 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003774/3.298, allocations: 0.6909 MB / 0.9926 GB, free: 5.512 MB / 0.5109 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009346/3.299, allocations: 15.61 kB / 0.9926 GB, free: 5.5 MB / 0.5109 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/3.319, allocations: 9.726 MB / 1.002 GB, free: 12.2 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/3.319, allocations: 0 / 1.002 GB, free: 12.2 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02668/3.345, allocations: 9.754 MB / 1.012 GB, free: 3.461 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005129/3.35, allocations: 1.081 MB / 1.013 GB, free: 2.445 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00236/3.353, allocations: 7.953 kB / 1.013 GB, free: 2.438 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007306/3.36, allocations: 146.8 kB / 1.013 GB, free: 2.355 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001362/3.362, allocations: 189.2 kB / 1.013 GB, free: 2.238 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006935/3.362, allocations: 87.7 kB / 1.013 GB, free: 2.156 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.01351/3.376, allocations: 3.881 MB / 1.017 GB, free: 15.17 MB / 0.5421 GB Notification: Performance of sort global known variables: time 9.32e-07/3.376, allocations: 0 / 1.017 GB, free: 15.17 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.01457/3.391, allocations: 1.624 MB / 1.018 GB, free: 13.55 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (279): * Single equations (assignments): 272 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001311/3.392, allocations: 171.9 kB / 1.019 GB, free: 13.39 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.02203/3.414, allocations: 8.483 MB / 1.027 GB, free: 5.699 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/3.414, allocations: 0 / 1.027 GB, free: 5.699 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.00999/3.424, allocations: 3.1 MB / 1.03 GB, free: 2.855 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009603/3.434, allocations: 0.7365 MB / 1.031 GB, free: 2.238 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07166/3.505, allocations: 15.85 MB / 1.046 GB, free: 4.449 MB / 0.5578 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5337/4.039, allocations: 6.141 MB / 1.052 GB, free: 143.3 MB / 0.5578 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003577/4.043, allocations: 494.5 kB / 1.053 GB, free: 143.3 MB / 0.5578 GB Notification: Performance of SimCode: time 1.573e-06/4.043, allocations: 1.062 kB / 1.053 GB, free: 143.3 MB / 0.5578 GB Notification: Performance of Templates: time 0.8697/4.913, allocations: 239.8 MB / 1.287 GB, free: 146.4 MB / 0.5578 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches