Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001239, allocations: 96.36 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 200.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2213/0.2213, allocations: 45.92 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002922, allocations: 4 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.154, allocations: 63.46 MB / 481.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3864/0.5405, allocations: 54.34 MB / 0.5232 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04054/0.5811, allocations: 12.74 MB / 0.5356 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0208/0.602, allocations: 271.9 kB / 0.5359 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01345/0.6154, allocations: 2.744 MB / 0.5385 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03774/0.6532, allocations: 8.004 MB / 0.5464 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006246/0.6595, allocations: 0.8911 MB / 0.5472 GB, free: 304 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04461/0.7041, allocations: 26.79 MB / 0.5734 GB, free: 9.328 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008855/0.713, allocations: 4.923 MB / 0.5782 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003506/0.7166, allocations: 1.569 MB / 0.5797 GB, free: 2.789 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004239/0.7208, allocations: 2.243 MB / 0.5819 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007945/0.7217, allocations: 216 kB / 0.5821 GB, free: 336 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002288/0.724, allocations: 0.952 MB / 0.5831 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002543/0.7265, allocations: 2.369 MB / 0.5854 GB, free: 13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.7279, allocations: 1.178 MB / 0.5865 GB, free: 11.81 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009446/0.7373, allocations: 7.677 MB / 0.594 GB, free: 4.117 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.7374, allocations: 0 / 0.594 GB, free: 4.117 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.7374, allocations: 0 / 0.594 GB, free: 4.117 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003305/0.7377, allocations: 3.938 kB / 0.594 GB, free: 4.113 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01746/0.7552, allocations: 6.362 MB / 0.6002 GB, free: 13.67 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.7553, allocations: 11.97 kB / 0.6002 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03333/0.7886, allocations: 7.079 MB / 0.6072 GB, free: 6.562 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01157/0.8002, allocations: 4.344 MB / 0.6114 GB, free: 2.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003038/0.8005, allocations: 316 kB / 0.6117 GB, free: 1.848 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002397/0.8029, allocations: 431.6 kB / 0.6121 GB, free: 1.426 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03517/0.8381, allocations: 15.71 MB / 0.6275 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002268/0.8384, allocations: 59.48 kB / 0.6275 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008996/0.8393, allocations: 195.8 kB / 0.6277 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006667/0.846, allocations: 3.384 MB / 0.631 GB, free: 13.34 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03508/0.8811, allocations: 14.88 MB / 0.6455 GB, free: 14.44 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09655/0.9777, allocations: 55.25 MB / 0.6995 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3235/1.301, allocations: 8.182 MB / 0.7075 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002968/1.304, allocations: 2.21 MB / 0.7096 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001149/1.304, allocations: 66.39 kB / 0.7097 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 9.307e-06/1.304, allocations: 0 / 0.7097 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.1148/1.419, allocations: 40.54 MB / 0.7493 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/1.419, allocations: 120 kB / 0.7494 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006191/1.426, allocations: 4.74 MB / 0.754 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001006/1.427, allocations: 88.67 kB / 0.7541 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001942/1.429, allocations: 3.83 MB / 0.7579 GB, free: 152 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002007/1.431, allocations: 1.486 MB / 0.7593 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003961/1.431, allocations: 148.9 kB / 0.7595 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003032/1.431, allocations: 0.6325 MB / 0.7601 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00452/1.436, allocations: 3.919 MB / 0.7639 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005932/1.442, allocations: 7.631 MB / 0.7713 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006387/1.448, allocations: 5.44 MB / 0.7767 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.085e-05/1.448, allocations: 36 kB / 0.7767 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02488/1.473, allocations: 14.11 MB / 0.7905 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/1.473, allocations: 60 kB / 0.7905 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001867/1.474, allocations: 129.1 kB / 0.7907 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00748/1.481, allocations: 2.702 MB / 0.7933 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008114/1.489, allocations: 1.766 MB / 0.795 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01929/1.509, allocations: 14.55 MB / 0.8092 GB, free: 97.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007483/1.516, allocations: 0.4892 MB / 0.8097 GB, free: 96.97 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001965/1.518, allocations: 427.9 kB / 0.8101 GB, free: 96.55 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (911): * Single equations (assignments): 903 * Array equations: 6 * 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 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007195/1.525, allocations: 2.872 MB / 0.8129 GB, free: 93.67 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001692/1.527, allocations: 462 kB / 0.8134 GB, free: 93.21 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01894/1.546, allocations: 10.54 MB / 0.8237 GB, free: 82.61 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.984e-05/1.546, allocations: 65 kB / 0.8237 GB, free: 82.55 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.212e-05/1.546, allocations: 8 kB / 0.8237 GB, free: 82.54 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-05/1.546, allocations: 19.92 kB / 0.8237 GB, free: 82.52 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04089/1.587, allocations: 21.32 MB / 0.8446 GB, free: 60.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.871e-05/1.587, allocations: 12 kB / 0.8446 GB, free: 60.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003932/1.591, allocations: 0.6794 MB / 0.8452 GB, free: 60.28 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006999/1.598, allocations: 2.487 MB / 0.8477 GB, free: 57.79 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001075/1.599, allocations: 81.94 kB / 0.8478 GB, free: 57.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01502/1.614, allocations: 13.33 MB / 0.8608 GB, free: 44.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.859e-06/1.614, allocations: 19.88 kB / 0.8608 GB, free: 44.08 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02681/1.641, allocations: 16.42 MB / 0.8768 GB, free: 26.96 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001946/1.643, allocations: 0.5185 MB / 0.8773 GB, free: 26.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002427/1.646, allocations: 80.02 kB / 0.8774 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004463/1.65, allocations: 307.5 kB / 0.8777 GB, free: 26.04 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001561/1.652, allocations: 269.1 kB / 0.878 GB, free: 25.78 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009745/1.653, allocations: 112 kB / 0.8781 GB, free: 25.67 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005187/1.658, allocations: 3.034 MB / 0.881 GB, free: 22.64 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.7e-07/1.658, allocations: 4 kB / 0.881 GB, free: 22.63 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009665/1.668, allocations: 1.654 MB / 0.8826 GB, free: 20.98 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * 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 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001631/1.669, allocations: 248.5 kB / 0.8829 GB, free: 20.74 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0164/1.686, allocations: 9.771 MB / 0.8924 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.536e-05/1.686, allocations: 4.062 kB / 0.8924 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007064/1.693, allocations: 4.292 MB / 0.8966 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004846/1.698, allocations: 0.6501 MB / 0.8973 GB, free: 5.988 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3073/2.005, allocations: 18.19 MB / 0.915 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01004/2.015, allocations: 4.678 MB / 0.9196 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00938/2.025, allocations: 2.736 MB / 0.9223 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001752/2.026, allocations: 352.4 kB / 0.9226 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.413e-06/2.026, allocations: 2.734 kB / 0.9226 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1092/2.136, allocations: 66.2 MB / 0.9872 GB, free: 111.1 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches