Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.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.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_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_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.3 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2272/0.2272, allocations: 46.1 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 81.09 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1284, allocations: 62.44 MB / 479.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.353/0.4815, allocations: 82.71 MB / 0.5495 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04599/0.5275, allocations: 16.27 MB / 0.5653 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02588/0.5534, allocations: 383.6 kB / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00929/0.5628, allocations: 4.647 MB / 0.5702 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008158/0.571, allocations: 2.297 MB / 0.5725 GB, free: 8.605 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003672/0.5747, allocations: 1.205 MB / 0.5737 GB, free: 7.398 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0191/0.5939, allocations: 11.95 MB / 0.5853 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008667/0.6026, allocations: 5.37 MB / 0.5906 GB, free: 6 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004568/0.6072, allocations: 2.336 MB / 0.5929 GB, free: 3.656 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005971/0.6132, allocations: 3.416 MB / 0.5962 GB, free: 236 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001924/0.6151, allocations: 344 kB / 0.5965 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003775/0.6189, allocations: 1.178 MB / 0.5977 GB, free: 14.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004095/0.6231, allocations: 2.712 MB / 0.6003 GB, free: 12 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006314/0.6294, allocations: 2.87 MB / 0.6031 GB, free: 9.109 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009086/0.6385, allocations: 7.254 MB / 0.6102 GB, free: 1.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.6385, allocations: 0 / 0.6102 GB, free: 1.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.6385, allocations: 4 kB / 0.6102 GB, free: 1.836 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003948/0.6389, allocations: 3.938 kB / 0.6102 GB, free: 1.832 MB / 446.1 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.02111/0.6601, allocations: 7.164 MB / 0.6172 GB, free: 10.58 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.6601, allocations: 10.31 kB / 0.6172 GB, free: 10.57 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01184/0.672, allocations: 1.952 MB / 0.6191 GB, free: 8.613 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01255/0.6846, allocations: 5.415 MB / 0.6244 GB, free: 3.129 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.6849, allocations: 313.9 kB / 0.6247 GB, free: 2.816 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001481/0.6864, allocations: 423.5 kB / 0.6251 GB, free: 2.402 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02401/0.7105, allocations: 11.01 MB / 0.6359 GB, free: 6.82 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002283/0.7107, allocations: 55.47 kB / 0.6359 GB, free: 6.766 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00054/0.7113, allocations: 183.9 kB / 0.6361 GB, free: 6.586 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003327/0.7146, allocations: 1.721 MB / 0.6378 GB, free: 4.859 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02249/0.7371, allocations: 9.547 MB / 0.6471 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07373/0.8109, allocations: 45.35 MB / 0.6914 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02235/0.8333, allocations: 7.865 MB / 0.6991 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2546/1.088, allocations: 5.369 MB / 0.7043 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0233/1.111, allocations: 13.29 MB / 0.7173 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.99e-05/1.111, allocations: 64.12 kB / 0.7173 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=283): time 6.101e-06/1.111, allocations: 0 / 0.7173 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=406): time 0.2281/1.34, allocations: 77.97 MB / 0.7935 GB, free: 116.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01389/1.353, allocations: 10.93 MB / 0.8042 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007265/1.361, allocations: 4.298 MB / 0.8084 GB, free: 101.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001284/1.362, allocations: 101.1 kB / 0.8085 GB, free: 101 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001884/1.364, allocations: 2.864 MB / 0.8113 GB, free: 98.16 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002126/1.366, allocations: 1.414 MB / 0.8126 GB, free: 96.75 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002378/1.369, allocations: 1.278 MB / 0.8139 GB, free: 95.46 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.885e-05/1.369, allocations: 301.1 kB / 0.8142 GB, free: 95.17 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005648/1.374, allocations: 5.09 MB / 0.8191 GB, free: 90.07 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007176/1.381, allocations: 7.153 MB / 0.8261 GB, free: 82 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01461/1.396, allocations: 12.84 MB / 0.8387 GB, free: 68.24 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.174e-05/1.396, allocations: 20 kB / 0.8387 GB, free: 68.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=801) (initialization): time 0.03959/1.436, allocations: 20.99 MB / 0.8592 GB, free: 47.19 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/1.436, allocations: 36.06 kB / 0.8592 GB, free: 47.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001372/1.436, allocations: 64 kB / 0.8593 GB, free: 47.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02511/1.461, allocations: 9.722 MB / 0.8688 GB, free: 37.35 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004342/1.466, allocations: 1.131 MB / 0.8699 GB, free: 36.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3543/1.82, allocations: 53.06 MB / 0.9217 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006714/1.827, allocations: 0.5265 MB / 0.9222 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/1.828, allocations: 297.3 kB / 0.9225 GB, free: 156.7 MB / 0.5294 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(11,104,52.1%), (2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,48)} Notification: Performance of prepare postOptimizeDAE: time 0.004484/1.833, allocations: 2.272 MB / 0.9247 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001484/1.834, allocations: 470.3 kB / 0.9252 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0354/1.87, allocations: 19.44 MB / 0.9441 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0339/1.903, allocations: 17.92 MB / 0.9616 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001211/1.904, allocations: 34.17 kB / 0.9617 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001143/1.904, allocations: 15.94 kB / 0.9617 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06288/1.967, allocations: 36.75 MB / 0.9976 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.962e-05/1.967, allocations: 4 kB / 0.9976 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002341/1.969, allocations: 459.1 kB / 0.998 GB, free: 99.91 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02477/1.994, allocations: 9.727 MB / 1.008 GB, free: 90.23 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001366/1.995, allocations: 75.92 kB / 1.008 GB, free: 90.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06714/2.062, allocations: 51.39 MB / 1.058 GB, free: 38.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01257/2.075, allocations: 9.687 MB / 1.067 GB, free: 29.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04638/2.122, allocations: 25.91 MB / 1.093 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/2.123, allocations: 0.5222 MB / 1.093 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002504/2.126, allocations: 77.91 kB / 1.093 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005285/2.131, allocations: 415.3 kB / 1.094 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002665/2.134, allocations: 320.2 kB / 1.094 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001168/2.135, allocations: 103.9 kB / 1.094 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006461/2.142, allocations: 2.8 MB / 1.097 GB, free: 14.75 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.22e-07/2.142, allocations: 0 / 1.097 GB, free: 14.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01217/2.154, allocations: 2.102 MB / 1.099 GB, free: 12.64 MB / 0.545 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(9,99,61.7%), (5,36,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,49)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001639/2.155, allocations: 192.9 kB / 1.099 GB, free: 12.45 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2746/2.43, allocations: 13.41 MB / 1.112 GB, free: 180.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/2.43, allocations: 1.25 kB / 1.112 GB, free: 180.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0159/2.446, allocations: 7.438 MB / 1.119 GB, free: 179.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005402/2.451, allocations: 0.7314 MB / 1.12 GB, free: 179 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02502/2.476, allocations: 19.45 MB / 1.139 GB, free: 169.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003907/2.48, allocations: 4.099 MB / 1.143 GB, free: 168.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001803/2.482, allocations: 320.6 kB / 1.143 GB, free: 168.1 MB / 0.545 GB Notification: Performance of SimCode: time 8.62e-07/2.482, allocations: 0 / 1.143 GB, free: 168.1 MB / 0.545 GB Notification: Performance of Templates: time 0.1778/2.66, allocations: 154 MB / 1.294 GB, free: 21.66 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevolutePlanarLoopConstraint/RevolutePlanarLoopConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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