Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.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.Joints.RevolutePlanarLoopConstraint,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_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint") translateModel(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,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_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 226.6 MB / 243.4 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008316/0.0008318, allocations: 99.34 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3437/0.3437, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003679/0.0003682, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3446, allocations: 62.96 MB / 0.5159 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.05929/0.4039, allocations: 75.61 MB / 0.5897 GB, free: 12.71 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03968/0.4437, allocations: 15.77 MB / 0.6051 GB, free: 13.89 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01822/0.4619, allocations: 382.9 kB / 0.6055 GB, free: 13.52 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01405/0.476, allocations: 3.81 MB / 0.6092 GB, free: 9.688 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03408/0.5102, allocations: 11.39 MB / 0.6203 GB, free: 14.25 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006229/0.5164, allocations: 1.186 MB / 0.6215 GB, free: 13.07 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.4494/0.9658, allocations: 119.7 MB / 0.7384 GB, free: 40.88 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009758/0.9757, allocations: 7.552 MB / 0.7458 GB, free: 35.52 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004104/0.9798, allocations: 2.083 MB / 0.7478 GB, free: 34.1 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004229/0.9841, allocations: 2.923 MB / 0.7507 GB, free: 32.01 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009875/0.9851, allocations: 184 kB / 0.7509 GB, free: 31.83 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002662/0.9878, allocations: 1.014 MB / 0.7518 GB, free: 31.04 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002582/0.9904, allocations: 2.464 MB / 0.7543 GB, free: 29.2 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005422/0.9958, allocations: 2.474 MB / 0.7567 GB, free: 28.26 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0088/1.005, allocations: 7.104 MB / 0.7636 GB, free: 22.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.538e-05/1.005, allocations: 0 / 0.7636 GB, free: 22.1 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.638e-06/1.005, allocations: 0 / 0.7636 GB, free: 22.1 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004822/1.005, allocations: 0 / 0.7636 GB, free: 22.1 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01644/1.022, allocations: 6.043 MB / 0.7695 GB, free: 16.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/1.022, allocations: 12.03 kB / 0.7695 GB, free: 16.51 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01201/1.034, allocations: 1.969 MB / 0.7714 GB, free: 14.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01243/1.046, allocations: 5.413 MB / 0.7767 GB, free: 10.58 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003083/1.047, allocations: 319.4 kB / 0.777 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002145/1.049, allocations: 417.6 kB / 0.7774 GB, free: 10.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02179/1.071, allocations: 11.02 MB / 0.7882 GB, free: 1.637 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002504/1.071, allocations: 59.17 kB / 0.7883 GB, free: 1.598 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006841/1.072, allocations: 183 kB / 0.7884 GB, free: 1.547 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00274/1.074, allocations: 1.721 MB / 0.7901 GB, free: 124 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02276/1.097, allocations: 9.555 MB / 0.7994 GB, free: 9.363 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0675/1.165, allocations: 45.4 MB / 0.8438 GB, free: 3.855 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.021/1.186, allocations: 7.898 MB / 0.8515 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00691/1.193, allocations: 5.369 MB / 0.8567 GB, free: 6.574 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02007/1.213, allocations: 13.29 MB / 0.8697 GB, free: 9.125 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/1.213, allocations: 60.8 kB / 0.8698 GB, free: 9.055 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=283): time 4.508e-06/1.213, allocations: 0 / 0.8698 GB, free: 9.055 MB / 0.5573 GB Notification: Performance of matching and sorting (n=406): time 0.5195/1.732, allocations: 79.11 MB / 0.947 GB, free: 201.6 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01361/1.746, allocations: 10.95 MB / 0.9577 GB, free: 190.5 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005706/1.752, allocations: 4.266 MB / 0.9619 GB, free: 186.2 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001318/1.753, allocations: 92.17 kB / 0.962 GB, free: 186.1 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001563/1.755, allocations: 2.883 MB / 0.9648 GB, free: 183.2 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00213/1.757, allocations: 1.411 MB / 0.9662 GB, free: 181.8 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004884/1.757, allocations: 124 kB / 0.9663 GB, free: 181.7 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002478/1.758, allocations: 0.5623 MB / 0.9668 GB, free: 181.1 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005936/1.764, allocations: 5.06 MB / 0.9718 GB, free: 176.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007064/1.771, allocations: 7.135 MB / 0.9787 GB, free: 168 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0153/1.786, allocations: 12.79 MB / 0.9912 GB, free: 154.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.627e-05/1.786, allocations: 16 kB / 0.9912 GB, free: 154.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=801) (initialization): time 0.03952/1.826, allocations: 20.96 MB / 1.012 GB, free: 133.3 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/1.826, allocations: 32 kB / 1.012 GB, free: 133.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.224e-05/1.826, allocations: 64 kB / 1.012 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0236/1.849, allocations: 9.753 MB / 1.021 GB, free: 123.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004512/1.854, allocations: 1.131 MB / 1.022 GB, free: 122.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06285/1.917, allocations: 53.18 MB / 1.074 GB, free: 68.74 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006744/1.924, allocations: 0.5354 MB / 1.075 GB, free: 68.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00161/1.925, allocations: 295.9 kB / 1.075 GB, free: 67.91 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 294 * Number of states: 0 () * Number of discrete variables: 57 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (591): * Single equations (assignments): 582 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(11,51.2%) 104,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.005399/1.931, allocations: 2.266 MB / 1.077 GB, free: 65.64 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/1.932, allocations: 466 kB / 1.078 GB, free: 65.18 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03424/1.966, allocations: 19.43 MB / 1.097 GB, free: 45.68 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03204/1.999, allocations: 17.91 MB / 1.114 GB, free: 27.73 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000102/1.999, allocations: 32 kB / 1.114 GB, free: 27.7 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000145/1.999, allocations: 19.92 kB / 1.114 GB, free: 27.68 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3635/2.362, allocations: 36.74 MB / 1.15 GB, free: 198 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-05/2.362, allocations: 3.188 kB / 1.15 GB, free: 198 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002406/2.365, allocations: 455 kB / 1.151 GB, free: 198 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02754/2.392, allocations: 9.759 MB / 1.16 GB, free: 196.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001168/2.394, allocations: 76.62 kB / 1.16 GB, free: 196.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06221/2.456, allocations: 51.45 MB / 1.211 GB, free: 165 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01174/2.468, allocations: 9.701 MB / 1.22 GB, free: 155.3 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04215/2.51, allocations: 25.88 MB / 1.245 GB, free: 129.6 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/2.512, allocations: 0.5268 MB / 1.246 GB, free: 129.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001922/2.513, allocations: 75.92 kB / 1.246 GB, free: 129.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004263/2.518, allocations: 419.2 kB / 1.246 GB, free: 128.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001863/2.52, allocations: 324.2 kB / 1.247 GB, free: 128.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005512/2.52, allocations: 103.9 kB / 1.247 GB, free: 128.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003983/2.524, allocations: 2.773 MB / 1.249 GB, free: 125.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.71e-07/2.524, allocations: 2.812 kB / 1.249 GB, free: 125.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007046/2.531, allocations: 2.111 MB / 1.251 GB, free: 123.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * 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 (217): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,61.7%) 99,(5,88.0%) 36} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007457/2.532, allocations: 186.3 kB / 1.252 GB, free: 123.3 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0176/2.55, allocations: 13.4 MB / 1.265 GB, free: 110 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/2.55, allocations: 0 / 1.265 GB, free: 110 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01172/2.561, allocations: 7.402 MB / 1.272 GB, free: 102.6 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006447/2.568, allocations: 0.7296 MB / 1.273 GB, free: 101.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02356/2.591, allocations: 18.85 MB / 1.291 GB, free: 83.11 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003631/2.595, allocations: 4.113 MB / 1.295 GB, free: 78.96 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/2.597, allocations: 311.4 kB / 1.295 GB, free: 78.66 MB / 0.573 GB Notification: Performance of SimCode: time 1.021e-06/2.597, allocations: 0 / 1.295 GB, free: 78.66 MB / 0.573 GB Notification: Performance of Templates: time 0.4259/3.023, allocations: 153.4 MB / 1.445 GB, free: 150.9 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevolutePlanarLoopConstraint/RevolutePlanarLoopConstraint.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w,revolute4.phi,revolute4.w Variables in the result:revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w,revolute4.phi,revolute4.w,time