Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 121.7 kB / 17.09 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002028/0.002028, allocations: 193.2 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.763/2.763, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3145/0.3145, allocations: 43.52 MB / 314.8 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002515/0.002515, allocations: 67.89 kB / 442.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.2001, allocations: 57.79 MB / 0.4885 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.02256/0.2227, allocations: 10.22 MB / 0.4985 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01296/0.2357, allocations: 3.925 MB / 0.5024 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002673/0.2385, allocations: 59.81 kB / 0.5024 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005631/0.2442, allocations: 2.313 MB / 0.5047 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007542/0.2518, allocations: 1.731 MB / 0.5064 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002654/0.2544, allocations: 0.694 MB / 0.507 GB, free: 8.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00868/0.2632, allocations: 3.829 MB / 0.5108 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005586/0.2688, allocations: 2.985 MB / 0.5137 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00358/0.2724, allocations: 1.374 MB / 0.515 GB, free: 500 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004114/0.2766, allocations: 1.853 MB / 0.5169 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001226/0.2778, allocations: 311.9 kB / 0.5172 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00346/0.2813, allocations: 1.178 MB / 0.5183 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00271/0.284, allocations: 1.734 MB / 0.52 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003937/0.288, allocations: 2.016 MB / 0.522 GB, free: 9.379 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01263/0.3007, allocations: 6.743 MB / 0.5285 GB, free: 2.613 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.33e-05/0.3007, allocations: 3.984 kB / 0.5286 GB, free: 2.609 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3008, allocations: 0 / 0.5286 GB, free: 2.609 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002578/0.301, allocations: 0 / 0.5286 GB, free: 2.609 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1391 * Number of variables: 1391 Notification: Performance of Generate backend data structure: time 0.5023/0.8034, allocations: 4.431 MB / 0.5329 GB, free: 37.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.555e-05/0.8034, allocations: 13.73 kB / 0.5329 GB, free: 37.08 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01592/0.8194, allocations: 2.06 MB / 0.5349 GB, free: 36.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01098/0.8304, allocations: 2.49 MB / 0.5373 GB, free: 36.19 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005161/0.831, allocations: 204.7 kB / 0.5375 GB, free: 36.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002071/0.8331, allocations: 287 kB / 0.5378 GB, free: 36.17 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02922/0.8623, allocations: 9.278 MB / 0.5469 GB, free: 31.87 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001822/0.8626, allocations: 41.59 kB / 0.5469 GB, free: 31.85 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005262/0.8631, allocations: 136.5 kB / 0.547 GB, free: 31.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003995/0.8671, allocations: 1.914 MB / 0.5489 GB, free: 31.44 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01841/0.8856, allocations: 8.162 MB / 0.5569 GB, free: 27.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04872/0.9344, allocations: 36.24 MB / 0.5923 GB, free: 7.184 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00891/0.9433, allocations: 3.662 MB / 0.5958 GB, free: 3.375 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004053/0.9474, allocations: 2.09 MB / 0.5979 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006438/0.9481, allocations: 336.2 kB / 0.5982 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.713e-05/0.9482, allocations: 51.5 kB / 0.5983 GB, free: 0.832 MB / 430.1 MB Notification: Performance of pre-optimization done (n=156): time 1.018e-05/0.9482, allocations: 112 / 0.5983 GB, free: 0.832 MB / 430.1 MB Notification: Performance of matching and sorting (n=177): time 0.06384/1.012, allocations: 16.2 MB / 0.6141 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/1.012, allocations: 179.2 kB / 0.6142 GB, free: 308 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008993/1.021, allocations: 3.643 MB / 0.6178 GB, free: 12.66 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007699/1.022, allocations: 53.7 kB / 0.6179 GB, free: 12.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003872/1.026, allocations: 2.803 MB / 0.6206 GB, free: 9.762 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001671/1.028, allocations: 0.6766 MB / 0.6212 GB, free: 9.078 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003158/1.031, allocations: 1.154 MB / 0.6224 GB, free: 7.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/1.031, allocations: 301.1 kB / 0.6227 GB, free: 7.613 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006149/1.037, allocations: 2.299 MB / 0.6249 GB, free: 5.309 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01049/1.048, allocations: 5.639 MB / 0.6304 GB, free: 13.99 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0173/1.065, allocations: 8.554 MB / 0.6388 GB, free: 3.785 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000172/1.065, allocations: 39.94 kB / 0.6388 GB, free: 3.746 MB / 478.1 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.02826/1.094, allocations: 8.763 MB / 0.6474 GB, free: 10.97 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001471/1.094, allocations: 56 kB / 0.6474 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002374/1.094, allocations: 116 kB / 0.6475 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008349/1.103, allocations: 1.23 MB / 0.6487 GB, free: 9.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006784/1.109, allocations: 1.294 MB / 0.65 GB, free: 8.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/1.124, allocations: 7.69 MB / 0.6575 GB, free: 444 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007162/1.131, allocations: 331.3 kB / 0.6578 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001568/1.133, allocations: 340.3 kB / 0.6581 GB, free: 15.77 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 536 * Number of states: 0 () * Number of discrete variables: 24 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (690): * Single equations (assignments): 686 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006287/1.139, allocations: 1.969 MB / 0.6601 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/1.14, allocations: 315.9 kB / 0.6604 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/1.151, allocations: 3.937 MB / 0.6642 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-05/1.151, allocations: 20 kB / 0.6642 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.031e-05/1.151, allocations: 12 kB / 0.6642 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.775e-05/1.151, allocations: 13.38 kB / 0.6643 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02523/1.176, allocations: 8.941 MB / 0.673 GB, free: 476 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.452e-05/1.176, allocations: 0 / 0.673 GB, free: 476 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002115/1.179, allocations: 275.6 kB / 0.6732 GB, free: 200 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003974/1.183, allocations: 1.058 MB / 0.6743 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004512/1.183, allocations: 31.98 kB / 0.6743 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/1.196, allocations: 7.265 MB / 0.6814 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/1.196, allocations: 0 / 0.6814 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01177/1.208, allocations: 6.842 MB / 0.6881 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002426/1.21, allocations: 0.6765 MB / 0.6888 GB, free: 132 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006775/1.211, allocations: 28 kB / 0.6888 GB, free: 104 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/1.213, allocations: 115.9 kB / 0.6889 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003326/1.213, allocations: 108.7 kB / 0.689 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/1.213, allocations: 47.98 kB / 0.689 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003985/1.217, allocations: 2.278 MB / 0.6913 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.217, allocations: 0 / 0.6913 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006538/1.224, allocations: 0.9674 MB / 0.6922 GB, free: 12.6 MB / 0.5294 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (137): * Single equations (assignments): 133 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006203/1.224, allocations: 164.3 kB / 0.6924 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01035/1.235, allocations: 5.486 MB / 0.6977 GB, free: 6.965 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/1.235, allocations: 0 / 0.6977 GB, free: 6.965 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003853/1.239, allocations: 2.035 MB / 0.6997 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/1.242, allocations: 395.7 kB / 0.7001 GB, free: 4.535 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02304/1.265, allocations: 9.344 MB / 0.7092 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005739/1.271, allocations: 3.056 MB / 0.7122 GB, free: 8.078 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/1.272, allocations: 271.3 kB / 0.7125 GB, free: 7.812 MB / 0.545 GB Notification: Performance of SimCode: time 1.443e-06/1.272, allocations: 0 / 0.7125 GB, free: 7.812 MB / 0.545 GB Notification: Performance of Templates: time 0.5062/1.779, allocations: 73.04 MB / 0.7838 GB, free: 171.2 MB / 0.5762 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches