Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.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.Torque,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_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,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_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 183.5 kB / 13.19 MB, free: 2.129 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.391/1.391, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.0008482/0.0008481, allocations: 86.12 kB / 267 MB, free: 9.273 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.3471/0.3471, allocations: 43.47 MB / 358.6 MB, free: 51.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.226e-05/3.238e-05, allocations: 4 kB / 425.3 MB, free: 8.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 58.84 MB / 484.1 MB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3924/0.5023, allocations: 107.6 MB / 0.5778 GB, free: 14.45 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001725/0.5025, allocations: 75.78 kB / 0.5779 GB, free: 14.42 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5752/1.078, allocations: 132.6 MB / 0.7074 GB, free: 80.24 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.563e-06/1.078, allocations: 0 / 0.7074 GB, free: 80.24 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000364/1.078, allocations: 139.8 kB / 0.7075 GB, free: 80.24 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: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.01954/1.098, allocations: 6.661 MB / 0.714 GB, free: 77.69 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/1.098, allocations: 9.562 kB / 0.7141 GB, free: 77.69 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02688/1.125, allocations: 7.139 MB / 0.721 GB, free: 77.23 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01832/1.143, allocations: 7.458 MB / 0.7283 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004371/1.143, allocations: 0.5043 MB / 0.7288 GB, free: 76.35 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003238/1.147, allocations: 0.668 MB / 0.7295 GB, free: 76.34 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03481/1.181, allocations: 16.08 MB / 0.7452 GB, free: 72.34 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003055/1.182, allocations: 88.97 kB / 0.7452 GB, free: 72.33 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001587/1.183, allocations: 329.5 kB / 0.7456 GB, free: 72.33 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00253/1.186, allocations: 1.554 MB / 0.7471 GB, free: 72.32 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02571/1.212, allocations: 12.95 MB / 0.7597 GB, free: 72.25 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06866/1.28, allocations: 73.1 MB / 0.8311 GB, free: 35.05 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01303/1.293, allocations: 6.454 MB / 0.8374 GB, free: 32.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003808/1.297, allocations: 3.682 MB / 0.841 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01304/1.31, allocations: 9.272 MB / 0.8501 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/1.31, allocations: 61.06 kB / 0.8501 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=269): time 6.472e-06/1.31, allocations: 0 / 0.8501 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=311): time 0.05651/1.367, allocations: 25.9 MB / 0.8754 GB, free: 7.699 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.882e-05/1.367, allocations: 247.1 kB / 0.8757 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007877/1.375, allocations: 6.118 MB / 0.8816 GB, free: 2.016 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006926/1.376, allocations: 77.22 kB / 0.8817 GB, free: 1.941 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.2606/1.636, allocations: 4.836 MB / 0.8864 GB, free: 90.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001686/1.638, allocations: 1.182 MB / 0.8876 GB, free: 89.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007416/1.639, allocations: 179.5 kB / 0.8877 GB, free: 89.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005161/1.639, allocations: 0.6911 MB / 0.8884 GB, free: 89.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005571/1.645, allocations: 3.501 MB / 0.8918 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006745/1.652, allocations: 8.792 MB / 0.9004 GB, free: 82.83 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007232/1.659, allocations: 5.491 MB / 0.9058 GB, free: 82.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001477/1.659, allocations: 55.22 kB / 0.9058 GB, free: 82.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1179) (initialization): time 0.02184/1.681, allocations: 13.55 MB / 0.9191 GB, free: 81.92 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002772/1.681, allocations: 84.53 kB / 0.9192 GB, free: 81.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000328/1.682, allocations: 186.5 kB / 0.9193 GB, free: 81.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003982/1.686, allocations: 1.702 MB / 0.921 GB, free: 81.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007261/1.693, allocations: 2.144 MB / 0.9231 GB, free: 81.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/1.705, allocations: 11.34 MB / 0.9342 GB, free: 78.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007867/1.713, allocations: 0.5357 MB / 0.9347 GB, free: 78.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002145/1.715, allocations: 0.5375 MB / 0.9352 GB, free: 78.84 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 853 * Number of states: 0 () * Number of discrete variables: 63 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1107): * Single equations (assignments): 1102 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003167/1.719, allocations: 0.7948 MB / 0.936 GB, free: 78.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001548/1.72, allocations: 0.6017 MB / 0.9366 GB, free: 78.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/1.732, allocations: 6.687 MB / 0.9431 GB, free: 77.42 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.081e-05/1.732, allocations: 35.22 kB / 0.9431 GB, free: 77.42 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/1.732, allocations: 11.16 kB / 0.9431 GB, free: 77.42 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-05/1.732, allocations: 22.19 kB / 0.9432 GB, free: 77.42 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02267/1.755, allocations: 15.13 MB / 0.9579 GB, free: 72.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-05/1.755, allocations: 3.906 kB / 0.9579 GB, free: 72.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002459/1.758, allocations: 0.5683 MB / 0.9585 GB, free: 72.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003059/1.761, allocations: 1.418 MB / 0.9599 GB, free: 71.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/1.761, allocations: 54.84 kB / 0.9599 GB, free: 71.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/1.772, allocations: 10.49 MB / 0.9702 GB, free: 66.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/1.772, allocations: 7.062 kB / 0.9702 GB, free: 66.09 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/1.786, allocations: 11.75 MB / 0.9817 GB, free: 60.72 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002737/1.788, allocations: 1.159 MB / 0.9828 GB, free: 60.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009374/1.789, allocations: 56.88 kB / 0.9828 GB, free: 60.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002427/1.792, allocations: 212.4 kB / 0.9831 GB, free: 60 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005333/1.792, allocations: 192 kB / 0.9832 GB, free: 59.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002205/1.792, allocations: 77.53 kB / 0.9833 GB, free: 59.96 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006628/1.799, allocations: 4.368 MB / 0.9876 GB, free: 58.46 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.8e-07/1.799, allocations: 0 / 0.9876 GB, free: 58.46 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008301/1.807, allocations: 1.657 MB / 0.9892 GB, free: 58.28 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006303/1.808, allocations: 206.5 kB / 0.9894 GB, free: 58.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01203/1.82, allocations: 8.707 MB / 0.9979 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/1.82, allocations: 0 / 0.9979 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004646/1.825, allocations: 3.334 MB / 1.001 GB, free: 53.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003522/1.828, allocations: 0.7044 MB / 1.002 GB, free: 53.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/1.849, allocations: 13.22 MB / 1.015 GB, free: 43.09 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004874/1.854, allocations: 5.037 MB / 1.02 GB, free: 39.4 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006694/1.861, allocations: 2.976 MB / 1.023 GB, free: 37.48 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/1.862, allocations: 413.8 kB / 1.023 GB, free: 37.09 MB / 0.5105 GB Notification: Performance of SimCode: time 8.32e-07/1.862, allocations: 0 / 1.023 GB, free: 37.09 MB / 0.5105 GB Notification: Performance of Templates: time 0.3745/2.237, allocations: 63.65 MB / 1.085 GB, free: 91.46 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches