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.001396/0.001396, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001598/0.001598, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.632/1.632, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2459/0.2459, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.00184, allocations: 76.12 kB / 482 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4739/0.4757, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02214/0.4979, allocations: 18.13 MB / 0.5494 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01631/0.5143, allocations: 5.302 MB / 0.5546 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005794/0.5201, allocations: 107.7 kB / 0.5547 GB, free: 10.09 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007354/0.5275, allocations: 3.044 MB / 0.5576 GB, free: 7.039 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009822/0.5374, allocations: 2.541 MB / 0.5601 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003444/0.5409, allocations: 1.018 MB / 0.5611 GB, free: 3.469 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01266/0.5536, allocations: 7.67 MB / 0.5686 GB, free: 11.79 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007238/0.5609, allocations: 4.175 MB / 0.5727 GB, free: 7.562 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004773/0.5657, allocations: 2.262 MB / 0.5749 GB, free: 5.293 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006664/0.5724, allocations: 3.221 MB / 0.578 GB, free: 2.062 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002597/0.575, allocations: 456 kB / 0.5785 GB, free: 1.617 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005094/0.5801, allocations: 1.303 MB / 0.5797 GB, free: 320 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005295/0.5855, allocations: 2.805 MB / 0.5825 GB, free: 13.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008428/0.5939, allocations: 3.18 MB / 0.5856 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01803/0.612, allocations: 9.944 MB / 0.5953 GB, free: 332 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.427e-06/0.612, allocations: 0 / 0.5953 GB, free: 332 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.612, allocations: 7.875 kB / 0.5953 GB, free: 324 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004373/0.6125, allocations: 0 / 0.5953 GB, free: 324 kB / 446.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.0231/0.6356, allocations: 7.204 MB / 0.6023 GB, free: 9.027 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.6357, allocations: 8.031 kB / 0.6023 GB, free: 9.02 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0166/0.6523, allocations: 3.834 MB / 0.6061 GB, free: 5.172 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01223/0.6645, allocations: 4.01 MB / 0.61 GB, free: 1.102 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004161/0.665, allocations: 324.4 kB / 0.6103 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002414/0.6674, allocations: 439.7 kB / 0.6107 GB, free: 360 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03735/0.7048, allocations: 15.58 MB / 0.6259 GB, free: 40 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004026/0.7053, allocations: 59.59 kB / 0.626 GB, free: 15.98 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002471/0.7077, allocations: 195.8 kB / 0.6262 GB, free: 15.79 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007294/0.7151, allocations: 3.384 MB / 0.6295 GB, free: 12.4 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03385/0.7489, allocations: 14.82 MB / 0.644 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1019/0.8509, allocations: 54.97 MB / 0.6976 GB, free: 5.402 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02055/0.8715, allocations: 8.209 MB / 0.7057 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007674/0.8792, allocations: 4.836 MB / 0.7104 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002581/0.8818, allocations: 2.207 MB / 0.7125 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.513e-05/0.8819, allocations: 69.02 kB / 0.7126 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 8.716e-06/0.8819, allocations: 0 / 0.7126 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.4087/1.291, allocations: 40.15 MB / 0.7518 GB, free: 149 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.203e-05/1.291, allocations: 126.7 kB / 0.7519 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005112/1.296, allocations: 4.281 MB / 0.7561 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001202/1.297, allocations: 85.7 kB / 0.7562 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00213/1.299, allocations: 3.788 MB / 0.7599 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001948/1.301, allocations: 1.494 MB / 0.7614 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00225/1.304, allocations: 1.568 MB / 0.7629 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.791e-05/1.304, allocations: 301.1 kB / 0.7632 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004887/1.308, allocations: 4.079 MB / 0.7672 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006442/1.315, allocations: 7.843 MB / 0.7748 GB, free: 123.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01297/1.328, allocations: 12.88 MB / 0.7874 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001019/1.328, allocations: 36 kB / 0.7874 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02992/1.358, allocations: 14.73 MB / 0.8018 GB, free: 94.11 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.589e-05/1.358, allocations: 60 kB / 0.8019 GB, free: 94.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/1.358, allocations: 128 kB / 0.802 GB, free: 93.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008278/1.367, allocations: 2.932 MB / 0.8049 GB, free: 90.99 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006369/1.373, allocations: 1.809 MB / 0.8066 GB, free: 89.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01973/1.393, allocations: 15.95 MB / 0.8222 GB, free: 72.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006649/1.399, allocations: 0.4957 MB / 0.8227 GB, free: 72.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/1.401, allocations: 435.9 kB / 0.8231 GB, free: 72.02 MB / 0.5606 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 (942): * Single equations (assignments): 934 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00508/1.406, allocations: 2.867 MB / 0.8259 GB, free: 69.15 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009688/1.407, allocations: 458.1 kB / 0.8263 GB, free: 68.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01623/1.423, allocations: 10.93 MB / 0.837 GB, free: 57.71 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.388e-05/1.423, allocations: 67.92 kB / 0.8371 GB, free: 57.64 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/1.423, allocations: 15.88 kB / 0.8371 GB, free: 57.63 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.428e-05/1.423, allocations: 19.92 kB / 0.8371 GB, free: 57.61 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03733/1.461, allocations: 21.57 MB / 0.8582 GB, free: 35.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-05/1.461, allocations: 12.22 kB / 0.8582 GB, free: 35.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003497/1.464, allocations: 0.6865 MB / 0.8589 GB, free: 35.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007501/1.472, allocations: 2.728 MB / 0.8615 GB, free: 32.43 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009399/1.473, allocations: 83.81 kB / 0.8616 GB, free: 32.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01566/1.489, allocations: 14.55 MB / 0.8758 GB, free: 17.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/1.489, allocations: 20 kB / 0.8758 GB, free: 17.49 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02262/1.511, allocations: 15.56 MB / 0.891 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/1.513, allocations: 495.2 kB / 0.8915 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001121/1.514, allocations: 79.98 kB / 0.8916 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002858/1.517, allocations: 315 kB / 0.8919 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007092/1.517, allocations: 265.9 kB / 0.8921 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002792/1.518, allocations: 120.2 kB / 0.8923 GB, free: 396 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004214/1.522, allocations: 2.685 MB / 0.8949 GB, free: 13.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.5e-07/1.522, allocations: 0 / 0.8949 GB, free: 13.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007887/1.53, allocations: 1.668 MB / 0.8965 GB, free: 12.04 MB / 0.5763 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009469/1.531, allocations: 225.5 kB / 0.8967 GB, free: 11.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01685/1.548, allocations: 10.1 MB / 0.9066 GB, free: 1.695 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/1.548, allocations: 0.5 kB / 0.9066 GB, free: 1.695 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006748/1.554, allocations: 4.374 MB / 0.9109 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004536/1.559, allocations: 0.7168 MB / 0.9116 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02796/1.587, allocations: 16.23 MB / 0.9274 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006216/1.593, allocations: 4.524 MB / 0.9318 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002219/1.595, allocations: 403.3 kB / 0.9322 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of SimCode: time 1.492e-06/1.595, allocations: 0 / 0.9322 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of Templates: time 0.4669/2.062, allocations: 143 MB / 1.072 GB, free: 101.5 MB / 0.6231 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches