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.001304/0.001304, allocations: 181.2 kB / 17.41 MB, free: 4.41 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.853/1.853, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.001159/0.001159, allocations: 93.06 kB / 271.9 MB, free: 8.27 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.569/0.569, allocations: 43.56 MB / 363.8 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005237/0.000524, allocations: 12 kB / 432.6 MB, free: 5.668 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1553, allocations: 58.85 MB / 491.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5545/0.7098, allocations: 106 MB / 0.5834 GB, free: 12.29 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004068/0.7103, allocations: 79.95 kB / 0.5835 GB, free: 12.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9866/1.697, allocations: 168 MB / 0.7475 GB, free: 79.72 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.827e-06/1.697, allocations: 0 / 0.7475 GB, free: 79.72 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007485/1.698, allocations: 172.8 kB / 0.7477 GB, free: 79.71 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: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.05135/1.749, allocations: 8.736 MB / 0.7562 GB, free: 75.41 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/1.749, allocations: 7.781 kB / 0.7562 GB, free: 75.41 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07469/1.824, allocations: 8.796 MB / 0.7648 GB, free: 73.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03903/1.863, allocations: 9.66 MB / 0.7743 GB, free: 68.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001363/1.865, allocations: 0.6372 MB / 0.7749 GB, free: 67.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006389/1.871, allocations: 0.8592 MB / 0.7757 GB, free: 67.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07779/1.949, allocations: 19.87 MB / 0.7951 GB, free: 51.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008895/1.95, allocations: 107.2 kB / 0.7952 GB, free: 51.83 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006083/1.956, allocations: 415.5 kB / 0.7956 GB, free: 51.47 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004902/1.961, allocations: 1.821 MB / 0.7974 GB, free: 49.65 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05948/2.02, allocations: 16.08 MB / 0.8131 GB, free: 33.55 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6403/2.661, allocations: 82.08 MB / 0.8933 GB, free: 50.18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03997/2.701, allocations: 8.139 MB / 0.9012 GB, free: 49.49 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01093/2.712, allocations: 4.131 MB / 0.9053 GB, free: 49.45 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001368/2.713, allocations: 0.6675 MB / 0.9059 GB, free: 48.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/2.713, allocations: 74.34 kB / 0.906 GB, free: 48.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=311): time 1.918e-05/2.713, allocations: 0 / 0.906 GB, free: 48.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=335): time 0.1764/2.89, allocations: 30.71 MB / 0.936 GB, free: 42.25 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002334/2.89, allocations: 299.9 kB / 0.9363 GB, free: 41.93 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03361/2.924, allocations: 7.741 MB / 0.9438 GB, free: 41.34 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001418/2.925, allocations: 77.92 kB / 0.9439 GB, free: 41.31 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.009591/2.935, allocations: 5.866 MB / 0.9496 GB, free: 37.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00329/2.938, allocations: 1.272 MB / 0.9509 GB, free: 36.12 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002354/2.941, allocations: 194.3 kB / 0.9511 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00184/2.943, allocations: 0.7098 MB / 0.9517 GB, free: 35.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01176/2.954, allocations: 3.524 MB / 0.9552 GB, free: 34.33 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01866/2.973, allocations: 9.261 MB / 0.9642 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02763/3.001, allocations: 13.89 MB / 0.9778 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003724/3.001, allocations: 57.19 kB / 0.9779 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1262) (initialization): time 0.04646/3.048, allocations: 13.37 MB / 0.9909 GB, free: 9.961 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002547/3.048, allocations: 96.81 kB / 0.991 GB, free: 9.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004964/3.049, allocations: 201.5 kB / 0.9912 GB, free: 9.957 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004537/3.053, allocations: 1.029 MB / 0.9922 GB, free: 9.742 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01459/3.068, allocations: 2.252 MB / 0.9944 GB, free: 9.477 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02434/3.092, allocations: 11.32 MB / 1.005 GB, free: 1.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01696/3.109, allocations: 0.5269 MB / 1.006 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003807/3.113, allocations: 0.5703 MB / 1.007 GB, free: 1.309 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 915 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1182): * Single equations (assignments): 1175 * 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.01936/3.133, allocations: 3.897 MB / 1.01 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004504/3.137, allocations: 0.675 MB / 1.011 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02494/3.162, allocations: 6.049 MB / 1.017 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001154/3.162, allocations: 32 kB / 1.017 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-05/3.162, allocations: 12 kB / 1.017 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001071/3.163, allocations: 13.83 kB / 1.017 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07029/3.233, allocations: 15.17 MB / 1.032 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.908e-05/3.233, allocations: 4.125 kB / 1.032 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006483/3.24, allocations: 0.552 MB / 1.032 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004546/3.244, allocations: 0.7046 MB / 1.033 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001388/3.246, allocations: 61.23 kB / 1.033 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0219/3.268, allocations: 10.14 MB / 1.043 GB, free: 3.805 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.266e-06/3.268, allocations: 7.5 kB / 1.043 GB, free: 3.801 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04712/3.315, allocations: 10.42 MB / 1.053 GB, free: 12.4 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007163/3.322, allocations: 1.195 MB / 1.054 GB, free: 11.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004098/3.326, allocations: 55.52 kB / 1.054 GB, free: 11.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008606/3.335, allocations: 196.2 kB / 1.055 GB, free: 11.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001788/3.337, allocations: 197.5 kB / 1.055 GB, free: 10.98 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007904/3.338, allocations: 90.81 kB / 1.055 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.02134/3.359, allocations: 4.938 MB / 1.06 GB, free: 6.844 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.014e-06/3.359, allocations: 0 / 1.06 GB, free: 6.844 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02223/3.381, allocations: 1.864 MB / 1.061 GB, free: 4.984 MB / 0.5573 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 269 * 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.001911/3.383, allocations: 213.5 kB / 1.062 GB, free: 4.777 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02835/3.412, allocations: 9.064 MB / 1.071 GB, free: 12.85 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.413e-05/3.412, allocations: 0 / 1.071 GB, free: 12.85 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.009133/3.421, allocations: 3.242 MB / 1.074 GB, free: 9.555 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0191/3.44, allocations: 0.9606 MB / 1.075 GB, free: 8.629 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5213/3.961, allocations: 22.46 MB / 1.097 GB, free: 149.5 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02427/3.986, allocations: 5.954 MB / 1.102 GB, free: 148.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004283/3.99, allocations: 0.514 MB / 1.103 GB, free: 148.6 MB / 0.573 GB Notification: Performance of SimCode: time 1.663e-06/3.99, allocations: 2.844 kB / 1.103 GB, free: 148.6 MB / 0.573 GB Notification: Performance of Templates: time 1.062/5.052, allocations: 258.2 MB / 1.355 GB, free: 138.9 MB / 0.573 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