Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.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.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") translateModel(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008137/0.0008137, allocations: 88.41 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1809/0.1809, allocations: 45.14 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.29e-05/3.292e-05, allocations: 7.984 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 63.25 MB / 0.5114 GB, free: 6.816 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3901/0.4999, allocations: 107.6 MB / 0.6164 GB, free: 2.637 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.5002, allocations: 78.39 kB / 0.6165 GB, free: 2.598 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1875/0.6877, allocations: 78.64 MB / 0.6933 GB, free: 11.99 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.6877, allocations: 0 / 0.6933 GB, free: 11.99 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001347/0.6879, allocations: 64 kB / 0.6934 GB, free: 11.93 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: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.00983/0.6977, allocations: 3.674 MB / 0.6969 GB, free: 8.195 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.6978, allocations: 15.97 kB / 0.697 GB, free: 8.18 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01617/0.714, allocations: 4.242 MB / 0.7011 GB, free: 3.926 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009697/0.7237, allocations: 3.764 MB / 0.7048 GB, free: 100 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.724, allocations: 271.1 kB / 0.705 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/0.7251, allocations: 359.8 kB / 0.7054 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0164/0.7415, allocations: 9.098 MB / 0.7143 GB, free: 5.477 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001395/0.7417, allocations: 63.42 kB / 0.7143 GB, free: 5.414 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000465/0.7422, allocations: 175.9 kB / 0.7145 GB, free: 5.242 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00106/0.7433, allocations: 0.8806 MB / 0.7154 GB, free: 4.359 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/0.7569, allocations: 7.601 MB / 0.7228 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3183/1.075, allocations: 42.1 MB / 0.7639 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007347/1.083, allocations: 3.44 MB / 0.7673 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002066/1.085, allocations: 1.795 MB / 0.769 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003209/1.085, allocations: 336.5 kB / 0.7693 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/1.085, allocations: 51.05 kB / 0.7694 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=135): time 4.127e-06/1.085, allocations: 1.188 kB / 0.7694 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156): time 0.02859/1.114, allocations: 12.12 MB / 0.7812 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/1.114, allocations: 170 kB / 0.7814 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/1.118, allocations: 3.126 MB / 0.7844 GB, free: 105 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002911/1.118, allocations: 47.14 kB / 0.7845 GB, free: 105 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001285/1.12, allocations: 2.718 MB / 0.7871 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004988/1.12, allocations: 0.6125 MB / 0.7877 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/1.12, allocations: 103.4 kB / 0.7878 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002096/1.121, allocations: 0.529 MB / 0.7883 GB, free: 103 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002182/1.123, allocations: 1.93 MB / 0.7902 GB, free: 103 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003471/1.126, allocations: 5.165 MB / 0.7953 GB, free: 98.78 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003312/1.13, allocations: 3.158 MB / 0.7984 GB, free: 98.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.704e-05/1.13, allocations: 36.34 kB / 0.7984 GB, free: 98.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=686) (initialization): time 0.01082/1.14, allocations: 7.641 MB / 0.8059 GB, free: 97.37 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.251e-05/1.141, allocations: 55.12 kB / 0.8059 GB, free: 97.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/1.141, allocations: 112.7 kB / 0.806 GB, free: 97.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/1.143, allocations: 0.9345 MB / 0.8069 GB, free: 97.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003792/1.146, allocations: 1.209 MB / 0.8081 GB, free: 97.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006354/1.153, allocations: 6.081 MB / 0.814 GB, free: 93.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004147/1.157, allocations: 296.3 kB / 0.8143 GB, free: 93.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007401/1.158, allocations: 329.9 kB / 0.8146 GB, free: 93.58 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 524 * Number of states: 0 () * Number of discrete variables: 26 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],torque.arrow.arrowLine.twoHeadedArrow,torque.arrow.headAtOrigin,torque.color[3],torque.color[2],torque.color[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (638): * Single equations (assignments): 634 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001204/1.159, allocations: 0.5032 MB / 0.8151 GB, free: 93.16 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005966/1.16, allocations: 313.5 kB / 0.8154 GB, free: 92.99 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004991/1.165, allocations: 3.086 MB / 0.8184 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.848e-05/1.165, allocations: 16.5 kB / 0.8185 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/1.165, allocations: 6.188 kB / 0.8185 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/1.165, allocations: 10.16 kB / 0.8185 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/1.178, allocations: 7.759 MB / 0.8261 GB, free: 88.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/1.178, allocations: 0 / 0.8261 GB, free: 88.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/1.179, allocations: 247.8 kB / 0.8263 GB, free: 88.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00161/1.181, allocations: 0.7469 MB / 0.827 GB, free: 88.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001471/1.181, allocations: 30.56 kB / 0.827 GB, free: 88.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006137/1.187, allocations: 5.618 MB / 0.8325 GB, free: 85.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/1.187, allocations: 3.812 kB / 0.8325 GB, free: 85.56 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007033/1.194, allocations: 5.678 MB / 0.8381 GB, free: 83.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/1.195, allocations: 365.8 kB / 0.8384 GB, free: 82.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009275/1.196, allocations: 24.44 kB / 0.8385 GB, free: 82.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/1.199, allocations: 94.67 kB / 0.8385 GB, free: 82.77 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/1.199, allocations: 85.52 kB / 0.8386 GB, free: 82.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/1.199, allocations: 42.02 kB / 0.8387 GB, free: 82.75 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005921/1.205, allocations: 2.175 MB / 0.8408 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.4e-07/1.205, allocations: 0 / 0.8408 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006073/1.211, allocations: 0.8826 MB / 0.8417 GB, free: 81.52 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 111 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006282/1.212, allocations: 166.1 kB / 0.8418 GB, free: 81.38 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006842/1.219, allocations: 4.738 MB / 0.8464 GB, free: 77.07 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.219, allocations: 0 / 0.8464 GB, free: 77.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002309/1.221, allocations: 1.707 MB / 0.8481 GB, free: 75.54 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/1.223, allocations: 348.4 kB / 0.8484 GB, free: 75.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/1.235, allocations: 6.824 MB / 0.8551 GB, free: 69.14 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003068/1.238, allocations: 3.002 MB / 0.858 GB, free: 66.82 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003651/1.242, allocations: 1.73 MB / 0.8597 GB, free: 65.72 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006734/1.242, allocations: 215.2 kB / 0.8599 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of SimCode: time 7.91e-07/1.242, allocations: 0 / 0.8599 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of Templates: time 0.05029/1.293, allocations: 32.57 MB / 0.8917 GB, free: 39.05 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches