Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 198.6 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 227.2 MB / 245 MB, free: 5.754 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008038/0.0008038, allocations: 115.5 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2779/0.2779, allocations: 45.23 MB / 394.7 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002549/0.0002551, allocations: 8 kB / 468.4 MB, free: 7.719 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2757, allocations: 63.25 MB / 0.5192 GB, free: 37.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.3942, allocations: 107.9 MB / 0.6246 GB, free: 11.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/0.3945, allocations: 79.97 kB / 0.6246 GB, free: 11.43 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5561/0.9506, allocations: 161.3 MB / 0.7822 GB, free: 60.33 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.9506, allocations: 0 / 0.7822 GB, free: 60.33 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004461/0.951, allocations: 163.9 kB / 0.7823 GB, free: 60.17 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: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.02388/0.9749, allocations: 8.476 MB / 0.7906 GB, free: 51.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.975, allocations: 12.03 kB / 0.7906 GB, free: 51.59 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04062/1.016, allocations: 11.91 MB / 0.8022 GB, free: 39.65 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0224/1.038, allocations: 9.134 MB / 0.8112 GB, free: 30.44 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004918/1.039, allocations: 0.5775 MB / 0.8117 GB, free: 29.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003142/1.042, allocations: 0.7691 MB / 0.8125 GB, free: 29.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03664/1.078, allocations: 18.12 MB / 0.8302 GB, free: 9.492 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004549/1.079, allocations: 107 kB / 0.8303 GB, free: 9.387 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002419/1.081, allocations: 363.8 kB / 0.8306 GB, free: 9.031 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002202/1.084, allocations: 1.571 MB / 0.8322 GB, free: 7.457 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02876/1.112, allocations: 14.58 MB / 0.8464 GB, free: 8.836 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5922/1.705, allocations: 75.46 MB / 0.9201 GB, free: 56.35 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01604/1.721, allocations: 7.301 MB / 0.9272 GB, free: 55.66 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005479/1.721, allocations: 0.6483 MB / 0.9278 GB, free: 55.1 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/1.721, allocations: 59.62 kB / 0.9279 GB, free: 55.06 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=231): time 5.3e-06/1.721, allocations: 3.609 kB / 0.9279 GB, free: 55.06 MB / 0.5262 GB Notification: Performance of matching and sorting (n=255): time 0.06188/1.783, allocations: 26.37 MB / 0.9537 GB, free: 48.82 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.745e-05/1.783, allocations: 294.3 kB / 0.9539 GB, free: 48.5 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01017/1.794, allocations: 6.52 MB / 0.9603 GB, free: 48 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.000559/1.794, allocations: 63.61 kB / 0.9604 GB, free: 47.97 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00333/1.797, allocations: 5.366 MB / 0.9656 GB, free: 45.32 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001139/1.799, allocations: 0.9892 MB / 0.9666 GB, free: 44.77 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003835/1.799, allocations: 172 kB / 0.9667 GB, free: 44.77 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003376/1.799, allocations: 0.6613 MB / 0.9674 GB, free: 44.45 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003528/1.803, allocations: 2.858 MB / 0.9702 GB, free: 44.42 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005848/1.809, allocations: 8.1 MB / 0.9781 GB, free: 37.63 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005427/1.814, allocations: 4.714 MB / 0.9827 GB, free: 36.51 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-05/1.814, allocations: 53.56 kB / 0.9827 GB, free: 36.51 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1110) (initialization): time 0.01645/1.831, allocations: 11.52 MB / 0.994 GB, free: 32.96 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 9.525e-05/1.831, allocations: 85.03 kB / 0.9941 GB, free: 32.96 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001491/1.831, allocations: 187.1 kB / 0.9942 GB, free: 32.96 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002021/1.833, allocations: 1.032 MB / 0.9953 GB, free: 32.75 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005337/1.838, allocations: 1.948 MB / 0.9972 GB, free: 32.52 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009806/1.848, allocations: 11.43 MB / 1.008 GB, free: 24.61 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006567/1.855, allocations: 467.6 kB / 1.009 GB, free: 24.44 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/1.856, allocations: 0.5172 MB / 1.009 GB, free: 24.37 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 847 * Number of states: 0 () * Number of discrete variables: 74 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,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.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,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 (1030): * Single equations (assignments): 1023 * 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.005722/1.862, allocations: 3.525 MB / 1.013 GB, free: 22.77 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/1.863, allocations: 0.6235 MB / 1.013 GB, free: 22.43 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006767/1.87, allocations: 4.517 MB / 1.018 GB, free: 19.27 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.549e-05/1.87, allocations: 31.75 kB / 1.018 GB, free: 19.24 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.885e-05/1.87, allocations: 8 kB / 1.018 GB, free: 19.23 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.381e-05/1.87, allocations: 18.69 kB / 1.018 GB, free: 19.23 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0207/1.89, allocations: 12.31 MB / 1.03 GB, free: 9.258 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/1.891, allocations: 6.938 kB / 1.03 GB, free: 9.254 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/1.892, allocations: 398 kB / 1.03 GB, free: 8.945 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/1.894, allocations: 0.7009 MB / 1.031 GB, free: 8.418 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001749/1.894, allocations: 44 kB / 1.031 GB, free: 8.375 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008636/1.903, allocations: 10.32 MB / 1.041 GB, free: 14.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.903, allocations: 7.969 kB / 1.041 GB, free: 14.49 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/1.913, allocations: 7.808 MB / 1.049 GB, free: 7.562 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002754/1.916, allocations: 0.6725 MB / 1.049 GB, free: 6.891 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009746/1.917, allocations: 45.7 kB / 1.049 GB, free: 6.852 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002659/1.92, allocations: 144.6 kB / 1.049 GB, free: 6.754 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003882/1.92, allocations: 147.6 kB / 1.05 GB, free: 6.664 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002028/1.92, allocations: 66.91 kB / 1.05 GB, free: 6.602 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.009796/1.93, allocations: 4.662 MB / 1.054 GB, free: 2.805 MB / 0.5418 GB Notification: Performance of sort global known variables: time 3.21e-07/1.93, allocations: 4 kB / 1.054 GB, free: 2.801 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.009057/1.939, allocations: 1.638 MB / 1.056 GB, free: 1.168 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (195): * Single equations (assignments): 188 * 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.0005723/1.94, allocations: 201.6 kB / 1.056 GB, free: 0.9766 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01271/1.953, allocations: 7.536 MB / 1.063 GB, free: 10.7 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.953, allocations: 0 / 1.063 GB, free: 10.7 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.003821/1.957, allocations: 2.563 MB / 1.066 GB, free: 8.391 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005858/1.962, allocations: 0.9114 MB / 1.067 GB, free: 7.645 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03144/1.994, allocations: 18.77 MB / 1.085 GB, free: 6.449 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007834/2.002, allocations: 5.569 MB / 1.091 GB, free: 2.398 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00692/2.009, allocations: 2.732 MB / 1.093 GB, free: 76 kB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/2.01, allocations: 395.4 kB / 1.094 GB, free: 15.69 MB / 0.5887 GB Notification: Performance of SimCode: time 1.363e-06/2.01, allocations: 0 / 1.094 GB, free: 15.69 MB / 0.5887 GB Notification: Performance of Templates: time 0.3916/2.402, allocations: 61.69 MB / 1.154 GB, free: 145.3 MB / 0.5887 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches