Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 103.6 kB / 16.4 MB, free: 6.5 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.001741/0.001741, allocations: 192.2 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.806/1.806, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2742/0.2742, allocations: 43.53 MB / 314.1 MB, free: 440 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.001406/0.001406, allocations: 73.45 kB / 441.8 MB, free: 5.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1699, allocations: 57.79 MB / 499.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02286/0.1928, allocations: 18.61 MB / 0.5061 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01682/0.2097, allocations: 5.355 MB / 0.5113 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005449/0.2152, allocations: 111.7 kB / 0.5114 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007781/0.2231, allocations: 3.064 MB / 0.5144 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01088/0.2341, allocations: 2.63 MB / 0.517 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003457/0.2376, allocations: 1.018 MB / 0.518 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01412/0.2518, allocations: 7.414 MB / 0.5252 GB, free: 5.414 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007294/0.2591, allocations: 4.246 MB / 0.5293 GB, free: 1.105 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4016/0.6607, allocations: 2.299 MB / 0.5316 GB, free: 9.262 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009346/0.6701, allocations: 3.283 MB / 0.5348 GB, free: 9.258 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003265/0.6734, allocations: 458.9 kB / 0.5352 GB, free: 9.258 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005642/0.6791, allocations: 1.31 MB / 0.5365 GB, free: 9.258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005977/0.6851, allocations: 2.886 MB / 0.5393 GB, free: 8.965 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01071/0.6958, allocations: 3.257 MB / 0.5425 GB, free: 7.801 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02317/0.719, allocations: 10.15 MB / 0.5524 GB, free: 6.262 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.7191, allocations: 1.781 kB / 0.5524 GB, free: 6.262 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.7191, allocations: 0 / 0.5524 GB, free: 6.262 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000673/0.7198, allocations: 0 / 0.5524 GB, free: 6.262 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.03851/0.7583, allocations: 7.312 MB / 0.5596 GB, free: 2.879 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.174e-05/0.7584, allocations: 9.625 kB / 0.5596 GB, free: 2.879 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01822/0.7767, allocations: 3.841 MB / 0.5633 GB, free: 1.086 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01337/0.7901, allocations: 4.326 MB / 0.5676 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003934/0.7905, allocations: 325.3 kB / 0.5679 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003206/0.7937, allocations: 453.6 kB / 0.5683 GB, free: 14.56 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03779/0.8315, allocations: 15.79 MB / 0.5837 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000275/0.8318, allocations: 59.86 kB / 0.5838 GB, free: 2.281 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001185/0.833, allocations: 201.6 kB / 0.584 GB, free: 2.141 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007032/0.8401, allocations: 3.478 MB / 0.5874 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03651/0.8766, allocations: 14.91 MB / 0.6019 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.107/0.9837, allocations: 55.79 MB / 0.6564 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01948/1.003, allocations: 8.198 MB / 0.6644 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007039/1.01, allocations: 4.854 MB / 0.6692 GB, free: 10.47 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002176/1.013, allocations: 2.202 MB / 0.6713 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.98e-05/1.013, allocations: 69.08 kB / 0.6714 GB, free: 7.824 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 6.543e-06/1.013, allocations: 3.938 kB / 0.6714 GB, free: 7.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.131/1.144, allocations: 40.26 MB / 0.7107 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/1.144, allocations: 120 kB / 0.7108 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.013/1.157, allocations: 4.361 MB / 0.7151 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001692/1.159, allocations: 85.7 kB / 0.7152 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004141/1.163, allocations: 3.871 MB / 0.7189 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00349/1.166, allocations: 1.493 MB / 0.7204 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007701/1.174, allocations: 1.581 MB / 0.7219 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001241/1.174, allocations: 301.7 kB / 0.7222 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008218/1.182, allocations: 4.087 MB / 0.7262 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01153/1.194, allocations: 7.912 MB / 0.7339 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02094/1.215, allocations: 12.97 MB / 0.7466 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001969/1.215, allocations: 36 kB / 0.7466 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.445/1.66, allocations: 14.8 MB / 0.7611 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002113/1.66, allocations: 62.44 kB / 0.7612 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003787/1.661, allocations: 133.3 kB / 0.7613 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01125/1.672, allocations: 2.932 MB / 0.7641 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0084/1.68, allocations: 1.827 MB / 0.7659 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02145/1.702, allocations: 15.95 MB / 0.7815 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009241/1.711, allocations: 0.4966 MB / 0.782 GB, free: 193.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002729/1.714, allocations: 433.5 kB / 0.7824 GB, free: 193.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[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 (951): * Single equations (assignments): 943 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008803/1.723, allocations: 2.914 MB / 0.7852 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.724, allocations: 460.7 kB / 0.7857 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01851/1.743, allocations: 10.94 MB / 0.7964 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/1.743, allocations: 58.27 kB / 0.7964 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.262e-05/1.743, allocations: 13.72 kB / 0.7964 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-05/1.743, allocations: 19.78 kB / 0.7965 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04453/1.788, allocations: 21.67 MB / 0.8176 GB, free: 169.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-05/1.788, allocations: 12 kB / 0.8176 GB, free: 169.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003984/1.792, allocations: 0.6864 MB / 0.8183 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00794/1.8, allocations: 2.736 MB / 0.821 GB, free: 165.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001357/1.801, allocations: 85.7 kB / 0.8211 GB, free: 165.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01613/1.817, allocations: 14.55 MB / 0.8353 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.3e-05/1.817, allocations: 17.91 kB / 0.8353 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02561/1.843, allocations: 15.57 MB / 0.8505 GB, free: 135.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005533/1.848, allocations: 1.185 MB / 0.8516 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001931/1.85, allocations: 75.98 kB / 0.8517 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004288/1.855, allocations: 320.8 kB / 0.852 GB, free: 134 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008966/1.856, allocations: 256.8 kB / 0.8523 GB, free: 133.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003389/1.856, allocations: 122.4 kB / 0.8524 GB, free: 133.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00499/1.861, allocations: 2.741 MB / 0.8551 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.9e-07/1.861, allocations: 0 / 0.8551 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01456/1.876, allocations: 1.688 MB / 0.8567 GB, free: 129.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002581/1.878, allocations: 242.2 kB / 0.8569 GB, free: 129 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02691/1.905, allocations: 10.12 MB / 0.8668 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-05/1.905, allocations: 4 kB / 0.8668 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01294/1.918, allocations: 4.372 MB / 0.8711 GB, free: 114.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.012/1.93, allocations: 0.7177 MB / 0.8718 GB, free: 113.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05759/1.988, allocations: 15.88 MB / 0.8873 GB, free: 97.76 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0133/2.001, allocations: 4.62 MB / 0.8918 GB, free: 93.09 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.01161/2.013, allocations: 2.732 MB / 0.8945 GB, free: 90.35 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002697/2.016, allocations: 355.3 kB / 0.8948 GB, free: 90 MB / 0.5919 GB Notification: Performance of SimCode: time 2.575e-06/2.016, allocations: 3.938 kB / 0.8948 GB, free: 90 MB / 0.5919 GB Notification: Performance of Templates: time 0.1526/2.168, allocations: 69.62 MB / 0.9628 GB, free: 20.53 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches