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.001584/0.001584, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 247.5 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.226/0.226, allocations: 46.12 MB / 344.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002281/0.002282, allocations: 75.97 kB / 418.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1387, allocations: 62.46 MB / 480.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.02001/0.1587, allocations: 16.79 MB / 497.6 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01326/0.172, allocations: 5.494 MB / 0.4913 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003687/0.1758, allocations: 135.5 kB / 0.4914 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01002/0.1859, allocations: 4.641 MB / 0.4959 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008134/0.194, allocations: 2.424 MB / 0.4983 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003667/0.1978, allocations: 1.307 MB / 0.4996 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2444/0.4421, allocations: 8.609 MB / 0.508 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007015/0.4492, allocations: 5.528 MB / 0.5134 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005368/0.4546, allocations: 2.562 MB / 0.5159 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005841/0.4605, allocations: 3.191 MB / 0.519 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002276/0.4628, allocations: 0.4921 MB / 0.5195 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004127/0.467, allocations: 1.251 MB / 0.5207 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004631/0.4716, allocations: 2.839 MB / 0.5235 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005246/0.4769, allocations: 3.034 MB / 0.5264 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.4871, allocations: 8.983 MB / 0.5352 GB, free: 6.641 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4871, allocations: 0 / 0.5352 GB, free: 6.641 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4871, allocations: 0 / 0.5352 GB, free: 6.641 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003203/0.4875, allocations: 4 kB / 0.5352 GB, free: 6.637 MB / 382.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.01809/0.5056, allocations: 7.177 MB / 0.5422 GB, free: 1.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.5056, allocations: 10.47 kB / 0.5422 GB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01208/0.5177, allocations: 1.954 MB / 0.5441 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01281/0.5306, allocations: 5.398 MB / 0.5494 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003615/0.531, allocations: 315.8 kB / 0.5497 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001737/0.5327, allocations: 419.5 kB / 0.5501 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02605/0.5588, allocations: 11.01 MB / 0.5609 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002621/0.5591, allocations: 60.77 kB / 0.5609 GB, free: 12 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008297/0.5599, allocations: 183 kB / 0.5611 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003494/0.5634, allocations: 1.728 MB / 0.5628 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02385/0.5873, allocations: 9.545 MB / 0.5721 GB, free: 4.734 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07126/0.6586, allocations: 45.34 MB / 0.6164 GB, free: 6.773 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02328/0.6819, allocations: 7.89 MB / 0.6241 GB, free: 14.94 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007571/0.6895, allocations: 5.376 MB / 0.6293 GB, free: 9.562 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02318/0.7128, allocations: 13.29 MB / 0.6423 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.766e-05/0.7129, allocations: 68.8 kB / 0.6424 GB, free: 12.02 MB / 494.1 MB Notification: Performance of pre-optimization done (n=283): time 4.659e-06/0.7129, allocations: 0 / 0.6424 GB, free: 12.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=406): time 0.4877/1.201, allocations: 78.01 MB / 0.7186 GB, free: 191 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01687/1.217, allocations: 11.11 MB / 0.7294 GB, free: 186.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007496/1.225, allocations: 4.286 MB / 0.7336 GB, free: 185.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001218/1.226, allocations: 91.52 kB / 0.7337 GB, free: 185.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002093/1.228, allocations: 2.87 MB / 0.7365 GB, free: 184 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001921/1.23, allocations: 1.412 MB / 0.7379 GB, free: 182.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002445/1.233, allocations: 1.281 MB / 0.7391 GB, free: 182.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.104e-05/1.233, allocations: 304.6 kB / 0.7394 GB, free: 182.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00684/1.24, allocations: 5.086 MB / 0.7444 GB, free: 180.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008321/1.248, allocations: 7.154 MB / 0.7514 GB, free: 175.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01525/1.263, allocations: 12.83 MB / 0.7639 GB, free: 168.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.297e-05/1.263, allocations: 18.09 kB / 0.7639 GB, free: 168.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=801) (initialization): time 0.0398/1.303, allocations: 21 MB / 0.7844 GB, free: 152.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.733e-05/1.303, allocations: 35.94 kB / 0.7844 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.429e-05/1.303, allocations: 64 kB / 0.7845 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02513/1.328, allocations: 9.76 MB / 0.794 GB, free: 143 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004401/1.333, allocations: 1.128 MB / 0.7951 GB, free: 141.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06478/1.398, allocations: 57.06 MB / 0.8509 GB, free: 84.44 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00684/1.405, allocations: 0.5393 MB / 0.8514 GB, free: 83.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001346/1.406, allocations: 303.1 kB / 0.8517 GB, free: 83.61 MB / 0.545 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.004527/1.411, allocations: 2.263 MB / 0.8539 GB, free: 81.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/1.412, allocations: 466.1 kB / 0.8543 GB, free: 80.88 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03556/1.447, allocations: 19.45 MB / 0.8733 GB, free: 61.37 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03354/1.481, allocations: 17.92 MB / 0.8908 GB, free: 43.41 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.379e-05/1.481, allocations: 31.84 kB / 0.8908 GB, free: 43.38 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001022/1.481, allocations: 23.86 kB / 0.8909 GB, free: 43.36 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3165/1.798, allocations: 36.74 MB / 0.9267 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.192e-05/1.798, allocations: 4.188 kB / 0.9268 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00276/1.801, allocations: 452.8 kB / 0.9272 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02848/1.829, allocations: 9.639 MB / 0.9366 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001591/1.831, allocations: 78.73 kB / 0.9367 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06702/1.898, allocations: 55.45 MB / 0.9908 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01223/1.91, allocations: 9.78 MB / 1 GB, free: 137 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04354/1.954, allocations: 25.91 MB / 1.026 GB, free: 111.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/1.956, allocations: 0.5193 MB / 1.026 GB, free: 110.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002444/1.958, allocations: 75.98 kB / 1.026 GB, free: 110.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005232/1.963, allocations: 411.3 kB / 1.027 GB, free: 110.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002043/1.965, allocations: 325.2 kB / 1.027 GB, free: 110.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005529/1.966, allocations: 104 kB / 1.027 GB, free: 110 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004206/1.97, allocations: 2.797 MB / 1.03 GB, free: 107.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.21e-07/1.97, allocations: 0 / 1.03 GB, free: 107.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009015/1.979, allocations: 2.098 MB / 1.032 GB, free: 105.1 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.00108/1.98, allocations: 200.2 kB / 1.032 GB, free: 104.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02997/2.01, allocations: 19.81 MB / 1.051 GB, free: 85.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/2.01, allocations: 4 kB / 1.051 GB, free: 85.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01296/2.023, allocations: 7.434 MB / 1.059 GB, free: 77.61 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005689/2.029, allocations: 0.7817 MB / 1.059 GB, free: 76.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/2.055, allocations: 16.99 MB / 1.076 GB, free: 59.81 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006638/2.061, allocations: 4.101 MB / 1.08 GB, free: 55.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001975/2.063, allocations: 323.3 kB / 1.08 GB, free: 55.36 MB / 0.545 GB Notification: Performance of SimCode: time 9.01e-07/2.063, allocations: 0 / 1.08 GB, free: 55.36 MB / 0.545 GB Notification: Performance of Templates: time 0.4349/2.498, allocations: 154 MB / 1.231 GB, free: 90.48 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