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.0009715/0.0009714, allocations: 194.9 kB / 16.79 MB, free: 5.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.5 MB / 244.1 MB, free: 8.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007562/0.0007561, allocations: 91.06 kB / 296.1 MB, free: 6.855 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2979/0.2979, allocations: 44.83 MB / 393 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002604, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3174, allocations: 62.95 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.4415, allocations: 107.3 MB / 0.6213 GB, free: 13.98 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.4417, allocations: 79.97 kB / 0.6214 GB, free: 13.91 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4729/0.9146, allocations: 113.5 MB / 0.7322 GB, free: 94.83 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.9147, allocations: 0 / 0.7322 GB, free: 94.83 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006356/0.9153, allocations: 103.2 kB / 0.7323 GB, free: 94.83 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.02322/0.9386, allocations: 6.58 MB / 0.7387 GB, free: 91.77 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.9386, allocations: 11.47 kB / 0.7387 GB, free: 91.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02687/0.9655, allocations: 6.836 MB / 0.7454 GB, free: 90.32 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0174/0.983, allocations: 7.551 MB / 0.7528 GB, free: 85.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004132/0.9834, allocations: 366.2 kB / 0.7531 GB, free: 85.74 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002126/0.9856, allocations: 469.5 kB / 0.7536 GB, free: 85.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02542/1.011, allocations: 10.57 MB / 0.7639 GB, free: 78.28 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004765/1.012, allocations: 63.39 kB / 0.7639 GB, free: 78.21 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001898/1.013, allocations: 205.8 kB / 0.7641 GB, free: 78.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00155/1.015, allocations: 0.9919 MB / 0.7651 GB, free: 77.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02012/1.035, allocations: 8.838 MB / 0.7737 GB, free: 68.19 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05703/1.092, allocations: 43.86 MB / 0.8166 GB, free: 23.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01949/1.112, allocations: 7.644 MB / 0.824 GB, free: 15.68 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005286/1.117, allocations: 4.972 MB / 0.8289 GB, free: 10.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001099/1.118, allocations: 1.121 MB / 0.83 GB, free: 9.414 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.778e-05/1.118, allocations: 60.81 kB / 0.83 GB, free: 9.344 MB / 490.7 MB Notification: Performance of pre-optimization done (n=286): time 5.801e-06/1.118, allocations: 7.938 kB / 0.8301 GB, free: 9.336 MB / 490.7 MB Notification: Performance of matching and sorting (n=415): time 0.4595/1.578, allocations: 75.17 MB / 0.9035 GB, free: 129 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0172/1.595, allocations: 10.93 MB / 0.9141 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009764/1.605, allocations: 4.187 MB / 0.9182 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001106/1.606, allocations: 87.33 kB / 0.9183 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002662/1.609, allocations: 2.997 MB / 0.9212 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002018/1.611, allocations: 1.43 MB / 0.9226 GB, free: 121.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009913/1.612, allocations: 113.6 kB / 0.9227 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000389/1.612, allocations: 0.5351 MB / 0.9233 GB, free: 121 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006208/1.618, allocations: 4.484 MB / 0.9276 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007192/1.626, allocations: 6.552 MB / 0.934 GB, free: 115 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01367/1.639, allocations: 11.78 MB / 0.9455 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.191e-05/1.639, allocations: 19.81 kB / 0.9456 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.03489/1.674, allocations: 18.61 MB / 0.9637 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.14e-05/1.674, allocations: 34.34 kB / 0.9638 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/1.675, allocations: 64.88 kB / 0.9638 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02069/1.695, allocations: 8.608 MB / 0.9722 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003912/1.699, allocations: 1.04 MB / 0.9732 GB, free: 101 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05918/1.758, allocations: 48.61 MB / 1.021 GB, free: 58.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005784/1.764, allocations: 491.3 kB / 1.021 GB, free: 57.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001301/1.766, allocations: 279.9 kB / 1.021 GB, free: 57.64 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * 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 (531): * Single equations (assignments): 526 * Array equations: 2 * 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 {(12,51.4%) 103,(3,88.9%) 23} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.00581/1.771, allocations: 2.282 MB / 1.024 GB, free: 55.35 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/1.773, allocations: 481.9 kB / 1.024 GB, free: 54.87 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03338/1.806, allocations: 17.61 MB / 1.041 GB, free: 37.21 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03096/1.837, allocations: 16.12 MB / 1.057 GB, free: 21.05 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.458e-05/1.838, allocations: 24 kB / 1.057 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.782e-05/1.838, allocations: 23.92 kB / 1.057 GB, free: 21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3168/2.154, allocations: 34.75 MB / 1.091 GB, free: 133.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.219e-05/2.155, allocations: 5.531 kB / 1.091 GB, free: 133.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002167/2.157, allocations: 445.3 kB / 1.091 GB, free: 133.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02164/2.178, allocations: 8.062 MB / 1.099 GB, free: 133.3 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001052/2.179, allocations: 80.27 kB / 1.099 GB, free: 133.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06736/2.247, allocations: 47.67 MB / 1.146 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01293/2.26, allocations: 9.698 MB / 1.155 GB, free: 116 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04068/2.301, allocations: 23.25 MB / 1.178 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/2.302, allocations: 0.5118 MB / 1.179 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002219/2.305, allocations: 75.05 kB / 1.179 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004474/2.309, allocations: 360.5 kB / 1.179 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002158/2.311, allocations: 331.1 kB / 1.179 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009605/2.312, allocations: 107.9 kB / 1.179 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006308/2.319, allocations: 2.741 MB / 1.182 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.11e-07/2.319, allocations: 2.031 kB / 1.182 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009332/2.328, allocations: 1.972 MB / 1.184 GB, free: 101.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (226): * Single equations (assignments): 223 * 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 {(12,51.4%) 96,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.001234/2.329, allocations: 202.9 kB / 1.184 GB, free: 101.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01995/2.349, allocations: 12.36 MB / 1.196 GB, free: 90.71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/2.349, allocations: 0 / 1.196 GB, free: 90.71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01285/2.362, allocations: 7.127 MB / 1.203 GB, free: 84.62 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01109/2.373, allocations: 0.794 MB / 1.204 GB, free: 83.97 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03223/2.406, allocations: 18.57 MB / 1.222 GB, free: 66.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00848/2.414, allocations: 4.176 MB / 1.226 GB, free: 62.31 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002031/2.416, allocations: 319.4 kB / 1.227 GB, free: 62 MB / 0.5417 GB Notification: Performance of SimCode: time 1.062e-06/2.416, allocations: 0 / 1.227 GB, free: 62 MB / 0.5417 GB Notification: Performance of Templates: time 0.4619/2.878, allocations: 153.6 MB / 1.377 GB, free: 98.33 MB / 0.5417 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/jenkins1/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