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/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.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/ModelicaServices trunk/package.mo): time 0.001349/0.001349, allocations: 117.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 204.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.1 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 71.89 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3446, allocations: 62.45 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01036/0.355, allocations: 9.459 MB / 0.5409 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007668/0.3627, allocations: 3.807 MB / 0.5446 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.3647, allocations: 56.78 kB / 0.5447 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004292/0.3691, allocations: 2.281 MB / 0.5469 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004525/0.3736, allocations: 1.606 MB / 0.5485 GB, free: 444 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001833/0.3755, allocations: 0.6979 MB / 0.5492 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005618/0.3811, allocations: 3.793 MB / 0.5529 GB, free: 11.94 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003402/0.3845, allocations: 2.906 MB / 0.5557 GB, free: 8.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002009/0.3866, allocations: 1.285 MB / 0.557 GB, free: 7.691 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002404/0.389, allocations: 1.725 MB / 0.5586 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006402/0.3897, allocations: 288 kB / 0.5589 GB, free: 5.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002189/0.3919, allocations: 1.151 MB / 0.56 GB, free: 4.527 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00155/0.3934, allocations: 1.586 MB / 0.5616 GB, free: 2.938 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002022/0.3955, allocations: 1.856 MB / 0.5634 GB, free: 1.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007287/0.4028, allocations: 6.216 MB / 0.5695 GB, free: 10.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.4028, allocations: 0 / 0.5695 GB, free: 10.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4028, allocations: 3.938 kB / 0.5695 GB, free: 10.83 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001785/0.403, allocations: 4 kB / 0.5695 GB, free: 10.83 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.009779/0.4128, allocations: 4.147 MB / 0.5735 GB, free: 6.613 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.4129, allocations: 12.03 kB / 0.5735 GB, free: 6.602 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008351/0.4212, allocations: 1.996 MB / 0.5755 GB, free: 4.598 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004881/0.4261, allocations: 2.327 MB / 0.5778 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.4263, allocations: 193.3 kB / 0.5779 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007576/0.4271, allocations: 271.9 kB / 0.5782 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01394/0.441, allocations: 8.573 MB / 0.5866 GB, free: 8.574 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001024/0.4412, allocations: 39.66 kB / 0.5866 GB, free: 8.535 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003533/0.4416, allocations: 123.9 kB / 0.5867 GB, free: 8.414 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002948/0.4445, allocations: 1.746 MB / 0.5884 GB, free: 6.668 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01376/0.4583, allocations: 7.564 MB / 0.5958 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04305/0.5014, allocations: 34.16 MB / 0.6292 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007068/0.5085, allocations: 3.096 MB / 0.6322 GB, free: 8.703 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002453/0.511, allocations: 1.903 MB / 0.6341 GB, free: 6.785 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004252/0.5114, allocations: 343.7 kB / 0.6344 GB, free: 6.391 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/0.5115, allocations: 47.16 kB / 0.6344 GB, free: 6.336 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 3.677e-06/0.5115, allocations: 0 / 0.6344 GB, free: 6.336 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.04304/0.5546, allocations: 15.32 MB / 0.6494 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.5548, allocations: 167.2 kB / 0.6496 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006383/0.5612, allocations: 3.515 MB / 0.653 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003751/0.5616, allocations: 45.7 kB / 0.653 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002025/0.5636, allocations: 2.64 MB / 0.6556 GB, free: 448 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008854/0.5645, allocations: 0.6057 MB / 0.6562 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00247/0.567, allocations: 1.102 MB / 0.6573 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.5672, allocations: 301.1 kB / 0.6576 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004347/0.5715, allocations: 2.126 MB / 0.6596 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005779/0.5773, allocations: 5.337 MB / 0.6649 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009595/0.5869, allocations: 8.039 MB / 0.6727 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001401/0.5871, allocations: 32 kB / 0.6727 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01719/0.6043, allocations: 8.283 MB / 0.6808 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001477/0.6045, allocations: 52 kB / 0.6809 GB, free: 3.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002369/0.6048, allocations: 112 kB / 0.681 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003214/0.608, allocations: 1.234 MB / 0.6822 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00416/0.6122, allocations: 1.209 MB / 0.6834 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.6226, allocations: 7.6 MB / 0.6908 GB, free: 9.023 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00393/0.6266, allocations: 315.4 kB / 0.6911 GB, free: 8.715 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009054/0.6275, allocations: 328 kB / 0.6914 GB, free: 8.395 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.twoHeadedArrow,torque.arrow.headAtOrigin,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 (649): * Single equations (assignments): 645 * 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 {(3,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003551/0.6311, allocations: 1.844 MB / 0.6932 GB, free: 6.539 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008269/0.6319, allocations: 308.1 kB / 0.6935 GB, free: 6.234 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00746/0.6394, allocations: 3.576 MB / 0.697 GB, free: 2.645 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.535e-05/0.6395, allocations: 16 kB / 0.697 GB, free: 2.629 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.861e-05/0.6395, allocations: 4.281 kB / 0.697 GB, free: 2.625 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-05/0.6396, allocations: 7.984 kB / 0.697 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0158/0.6554, allocations: 8.173 MB / 0.705 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/0.6554, allocations: 3.938 kB / 0.705 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/0.6566, allocations: 235.6 kB / 0.7052 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002904/0.6596, allocations: 1.062 MB / 0.7063 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002007/0.6598, allocations: 24 kB / 0.7063 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/0.6701, allocations: 7.263 MB / 0.7134 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.6702, allocations: 3.938 kB / 0.7134 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01042/0.6806, allocations: 6.277 MB / 0.7195 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000888/0.6815, allocations: 361.1 kB / 0.7199 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008124/0.6824, allocations: 24 kB / 0.7199 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001857/0.6842, allocations: 107.8 kB / 0.72 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003811/0.6846, allocations: 76.89 kB / 0.7201 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001792/0.6848, allocations: 43.97 kB / 0.7201 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004518/0.6894, allocations: 2.2 MB / 0.7222 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.2e-07/0.6894, allocations: 0 / 0.7222 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005168/0.6946, allocations: 0.8906 MB / 0.7231 GB, free: 7.637 MB / 0.5762 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 (115): * Single equations (assignments): 111 * 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.0006095/0.6952, allocations: 147 kB / 0.7233 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00867/0.7039, allocations: 5.155 MB / 0.7283 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.7039, allocations: 0 / 0.7283 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003227/0.7072, allocations: 1.858 MB / 0.7301 GB, free: 480 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002951/0.7101, allocations: 377.4 kB / 0.7305 GB, free: 100 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.279/0.9892, allocations: 8.662 MB / 0.7389 GB, free: 179.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003601/0.9929, allocations: 2.872 MB / 0.7417 GB, free: 178 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.9939, allocations: 258.2 kB / 0.742 GB, free: 178 MB / 0.5762 GB Notification: Performance of SimCode: time 9.82e-07/0.9939, allocations: 0 / 0.742 GB, free: 178 MB / 0.5762 GB Notification: Performance of Templates: time 0.07388/1.068, allocations: 67.82 MB / 0.8082 GB, free: 116.5 MB / 0.5762 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches