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.001411/0.001411, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00175/0.00175, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247.1 MB, free: 10.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2513/0.2513, allocations: 46.1 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 76.91 kB / 417.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.139, allocations: 62.44 MB / 480.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.3767/0.5157, allocations: 82.7 MB / 0.5497 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05045/0.5662, allocations: 16.17 MB / 0.5654 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02189/0.5882, allocations: 383.2 kB / 0.5658 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01151/0.5998, allocations: 4.475 MB / 0.5702 GB, free: 11.06 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.6106, allocations: 2.273 MB / 0.5724 GB, free: 8.781 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004614/0.6153, allocations: 1.229 MB / 0.5736 GB, free: 7.551 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01952/0.6349, allocations: 9.354 MB / 0.5827 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01328/0.6482, allocations: 5.787 MB / 0.5884 GB, free: 8.352 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007834/0.6561, allocations: 2.664 MB / 0.591 GB, free: 5.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007594/0.6638, allocations: 3.552 MB / 0.5945 GB, free: 2.117 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002914/0.6667, allocations: 0.4961 MB / 0.5949 GB, free: 1.621 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005511/0.6723, allocations: 1.256 MB / 0.5962 GB, free: 372 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004838/0.6772, allocations: 2.868 MB / 0.599 GB, free: 13.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005372/0.6826, allocations: 3.054 MB / 0.602 GB, free: 10.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.6931, allocations: 7.336 MB / 0.6091 GB, free: 3.066 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.6931, allocations: 4 kB / 0.6091 GB, free: 3.062 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.6932, allocations: 0 / 0.6091 GB, free: 3.062 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004032/0.6936, allocations: 0 / 0.6091 GB, free: 3.062 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.02114/0.7147, allocations: 7.164 MB / 0.6161 GB, free: 11.81 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.7148, allocations: 17.47 kB / 0.6161 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01326/0.7281, allocations: 1.952 MB / 0.618 GB, free: 9.832 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01298/0.7411, allocations: 5.403 MB / 0.6233 GB, free: 4.359 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003987/0.7415, allocations: 321.9 kB / 0.6236 GB, free: 4.039 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002014/0.7436, allocations: 419.5 kB / 0.624 GB, free: 3.629 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02523/0.7688, allocations: 11.01 MB / 0.6348 GB, free: 8.047 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000316/0.7692, allocations: 55.47 kB / 0.6348 GB, free: 7.992 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001403/0.7706, allocations: 179.9 kB / 0.635 GB, free: 7.816 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003554/0.7741, allocations: 1.721 MB / 0.6367 GB, free: 6.09 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02267/0.7968, allocations: 9.547 MB / 0.646 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0713/0.8682, allocations: 45.34 MB / 0.6903 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02265/0.8909, allocations: 7.877 MB / 0.698 GB, free: 6.066 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0069/0.8978, allocations: 5.368 MB / 0.7032 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02208/0.9199, allocations: 13.28 MB / 0.7162 GB, free: 3.141 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.423e-05/0.92, allocations: 72.77 kB / 0.7163 GB, free: 3.059 MB / 0.545 GB Notification: Performance of pre-optimization done (n=283): time 5.931e-06/0.9201, allocations: 4 kB / 0.7163 GB, free: 3.055 MB / 0.545 GB Notification: Performance of matching and sorting (n=406): time 0.5865/1.507, allocations: 78.01 MB / 0.7924 GB, free: 149.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01432/1.521, allocations: 11.11 MB / 0.8033 GB, free: 138.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007851/1.529, allocations: 4.285 MB / 0.8075 GB, free: 134.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001421/1.53, allocations: 93.7 kB / 0.8076 GB, free: 134 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00212/1.532, allocations: 2.873 MB / 0.8104 GB, free: 131.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00234/1.535, allocations: 1.417 MB / 0.8118 GB, free: 129.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004527/1.539, allocations: 1.281 MB / 0.813 GB, free: 128.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.033e-05/1.539, allocations: 301.1 kB / 0.8133 GB, free: 128.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006686/1.546, allocations: 5.088 MB / 0.8183 GB, free: 123.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007966/1.554, allocations: 7.157 MB / 0.8253 GB, free: 115 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01562/1.57, allocations: 12.83 MB / 0.8378 GB, free: 101.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-05/1.57, allocations: 19.94 kB / 0.8378 GB, free: 101.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=801) (initialization): time 0.04363/1.613, allocations: 21 MB / 0.8583 GB, free: 80.17 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.552e-05/1.614, allocations: 32 kB / 0.8583 GB, free: 80.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.731e-05/1.614, allocations: 64 kB / 0.8584 GB, free: 80.08 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02657/1.64, allocations: 9.765 MB / 0.8679 GB, free: 70.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004539/1.645, allocations: 1.127 MB / 0.869 GB, free: 69.17 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07551/1.72, allocations: 57.06 MB / 0.9248 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00723/1.728, allocations: 0.5305 MB / 0.9253 GB, free: 11.17 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002082/1.73, allocations: 295.9 kB / 0.9256 GB, free: 10.88 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.317/2.047, allocations: 2.273 MB / 0.9278 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001974/2.049, allocations: 467 kB / 0.9282 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06261/2.111, allocations: 19.44 MB / 0.9472 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04787/2.159, allocations: 17.92 MB / 0.9647 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-05/2.159, allocations: 28.97 kB / 0.9647 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001014/2.16, allocations: 18.42 kB / 0.9647 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06178/2.221, allocations: 36.75 MB / 1.001 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-05/2.221, allocations: 4 kB / 1.001 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002441/2.224, allocations: 451.3 kB / 1.001 GB, free: 139.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02388/2.248, allocations: 9.642 MB / 1.01 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001168/2.249, allocations: 68 kB / 1.011 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06515/2.314, allocations: 55.45 MB / 1.065 GB, free: 74.64 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01176/2.326, allocations: 9.781 MB / 1.074 GB, free: 64.77 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04119/2.367, allocations: 25.9 MB / 1.1 GB, free: 38.92 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/2.369, allocations: 0.5261 MB / 1.1 GB, free: 38.37 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001947/2.371, allocations: 76.81 kB / 1.1 GB, free: 38.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0043/2.375, allocations: 415.3 kB / 1.101 GB, free: 37.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001727/2.377, allocations: 328.1 kB / 1.101 GB, free: 37.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003907/2.377, allocations: 95.98 kB / 1.101 GB, free: 37.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003826/2.381, allocations: 2.797 MB / 1.104 GB, free: 34.68 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.21e-07/2.381, allocations: 0 / 1.104 GB, free: 34.68 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008362/2.389, allocations: 2.098 MB / 1.106 GB, free: 32.58 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.0009475/2.39, allocations: 200.5 kB / 1.106 GB, free: 32.38 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03262/2.423, allocations: 19.81 MB / 1.125 GB, free: 12.54 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/2.423, allocations: 0 / 1.125 GB, free: 12.54 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.283/2.706, allocations: 7.427 MB / 1.133 GB, free: 178.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006452/2.713, allocations: 0.7801 MB / 1.133 GB, free: 178.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03891/2.752, allocations: 19.44 MB / 1.152 GB, free: 172.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005689/2.757, allocations: 4.101 MB / 1.156 GB, free: 171.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002471/2.76, allocations: 323.8 kB / 1.157 GB, free: 171.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.683e-06/2.76, allocations: 1.312 kB / 1.157 GB, free: 171.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1604/2.92, allocations: 154 MB / 1.307 GB, free: 33.16 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