Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.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.Torque2,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2") translateModel(ModelicaTest.MultiBody.Forces.Torque2,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002141/0.002141, allocations: 189.2 kB / 16.41 MB, free: 5.727 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.049/2.049, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001097/0.001096, allocations: 84.44 kB / 270.9 MB, free: 8.383 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.4909/0.4909, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004598/0.0004598, allocations: 16 kB / 431.4 MB, free: 5.961 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1215, allocations: 58.85 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4931/0.6147, allocations: 111.5 MB / 0.5877 GB, free: 6.992 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.6151, allocations: 83.95 kB / 0.5877 GB, free: 6.91 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.302/1.917, allocations: 241.1 MB / 0.8232 GB, free: 25.06 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.256e-06/1.917, allocations: 4 kB / 0.8232 GB, free: 25.05 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0008666/1.918, allocations: 248 kB / 0.8235 GB, free: 24.81 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: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.05632/1.974, allocations: 13.36 MB / 0.8365 GB, free: 11.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/1.974, allocations: 16.02 kB / 0.8365 GB, free: 11.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09376/2.068, allocations: 12.81 MB / 0.849 GB, free: 14.47 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04982/2.118, allocations: 13.38 MB / 0.8621 GB, free: 0.9961 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001599/2.119, allocations: 0.9548 MB / 0.863 GB, free: 40 kB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.7674/2.887, allocations: 1.268 MB / 0.8643 GB, free: 51.15 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1017/2.989, allocations: 30.19 MB / 0.8937 GB, free: 44.99 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001129/2.99, allocations: 149.1 kB / 0.8939 GB, free: 44.99 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006771/2.997, allocations: 0.5954 MB / 0.8945 GB, free: 44.99 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00685/3.003, allocations: 2.859 MB / 0.8973 GB, free: 44.96 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08355/3.087, allocations: 24.69 MB / 0.9214 GB, free: 44.83 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2304/3.318, allocations: 127.9 MB / 1.046 GB, free: 5.461 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07956/3.397, allocations: 14.81 MB / 1.061 GB, free: 11.98 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4669/3.864, allocations: 19.84 MB / 1.08 GB, free: 108.9 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/3.864, allocations: 96.8 kB / 1.08 GB, free: 108.9 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=562): time 1.05e-05/3.864, allocations: 0 / 1.08 GB, free: 108.9 MB / 0.5574 GB Notification: Performance of matching and sorting (n=646): time 0.292/4.156, allocations: 67.89 MB / 1.146 GB, free: 95.62 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/4.156, allocations: 379.1 kB / 1.147 GB, free: 95.24 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03201/4.188, allocations: 10.75 MB / 1.157 GB, free: 94.47 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.002043/4.191, allocations: 128.6 kB / 1.157 GB, free: 94.44 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.007936/4.199, allocations: 8.03 MB / 1.165 GB, free: 90.3 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.00432/4.203, allocations: 2.379 MB / 1.168 GB, free: 88.9 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003413/4.206, allocations: 310.1 kB / 1.168 GB, free: 88.9 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.001884/4.208, allocations: 0.9668 MB / 1.169 GB, free: 88.43 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01855/4.227, allocations: 6.776 MB / 1.175 GB, free: 86.12 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02445/4.251, allocations: 15.21 MB / 1.19 GB, free: 72.61 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02356/4.275, allocations: 9.941 MB / 1.2 GB, free: 69.09 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003563/4.275, allocations: 87.94 kB / 1.2 GB, free: 69.09 MB / 0.5574 GB Notification: Performance of matching and sorting (n=2020) (initialization): time 0.06952/4.345, allocations: 24.36 MB / 1.224 GB, free: 51.77 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002422/4.345, allocations: 132 kB / 1.224 GB, free: 51.64 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005863/4.346, allocations: 296 kB / 1.224 GB, free: 51.35 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01429/4.36, allocations: 3.309 MB / 1.228 GB, free: 48.93 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02551/4.386, allocations: 3.762 MB / 1.231 GB, free: 45.76 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04371/4.429, allocations: 23.24 MB / 1.254 GB, free: 24.95 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02021/4.45, allocations: 0.9435 MB / 1.255 GB, free: 24.17 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004338/4.454, allocations: 0.8835 MB / 1.256 GB, free: 23.32 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1346 * Number of states: 0 () * Number of discrete variables: 120 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1900): * Single equations (assignments): 1893 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01807/4.472, allocations: 5.753 MB / 1.261 GB, free: 18.27 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003941/4.476, allocations: 1.068 MB / 1.262 GB, free: 17.19 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04612/4.522, allocations: 14.75 MB / 1.277 GB, free: 5.238 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/4.523, allocations: 72 kB / 1.277 GB, free: 5.168 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-05/4.523, allocations: 16 kB / 1.277 GB, free: 5.152 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002069/4.523, allocations: 34.94 kB / 1.277 GB, free: 5.148 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5255/5.048, allocations: 32.56 MB / 1.309 GB, free: 90.33 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001076/5.048, allocations: 10.62 kB / 1.309 GB, free: 90.33 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01298/5.061, allocations: 1.286 MB / 1.31 GB, free: 90.33 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01373/5.075, allocations: 2.836 MB / 1.313 GB, free: 90.29 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002063/5.077, allocations: 126.6 kB / 1.313 GB, free: 90.29 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04643/5.124, allocations: 21.73 MB / 1.334 GB, free: 84.93 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.697e-05/5.124, allocations: 18.62 kB / 1.334 GB, free: 84.93 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06615/5.19, allocations: 26.33 MB / 1.36 GB, free: 76.07 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01033/5.2, allocations: 2.182 MB / 1.362 GB, free: 75.53 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005606/5.206, allocations: 126.5 kB / 1.362 GB, free: 75.45 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01206/5.218, allocations: 440.9 kB / 1.362 GB, free: 75.37 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003023/5.221, allocations: 412.5 kB / 1.363 GB, free: 75.3 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002086/5.223, allocations: 167.8 kB / 1.363 GB, free: 75.26 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.02229/5.246, allocations: 7.775 MB / 1.371 GB, free: 72.73 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.122e-06/5.246, allocations: 5.875 kB / 1.371 GB, free: 72.73 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.02077/5.267, allocations: 3.11 MB / 1.374 GB, free: 72.39 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.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 (553): * Single equations (assignments): 546 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.002363/5.269, allocations: 305.2 kB / 1.374 GB, free: 72.22 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.03937/5.308, allocations: 16.85 MB / 1.39 GB, free: 66.83 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.587e-05/5.308, allocations: 0 / 1.39 GB, free: 66.83 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.01914/5.328, allocations: 7.121 MB / 1.397 GB, free: 64.13 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01204/5.34, allocations: 1.349 MB / 1.399 GB, free: 63.57 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08358/5.423, allocations: 36.57 MB / 1.434 GB, free: 33.07 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02347/5.447, allocations: 8.894 MB / 1.443 GB, free: 26.7 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0064/5.453, allocations: 0.8376 MB / 1.444 GB, free: 25.91 MB / 0.5574 GB Notification: Performance of SimCode: time 1.513e-06/5.453, allocations: 3.75 kB / 1.444 GB, free: 25.91 MB / 0.5574 GB Notification: Performance of Templates: time 1.658/7.111, allocations: 373.6 MB / 1.809 GB, free: 116.4 MB / 0.6199 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches