Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.527/1.527, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2319/0.2319, allocations: 44.94 MB / 358.8 MB, free: 6.074 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002454/0.002454, allocations: 63.89 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.393, allocations: 65.48 MB / 0.5575 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01981/0.4128, allocations: 15.7 MB / 0.5728 GB, free: 7.703 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01214/0.425, allocations: 5.097 MB / 0.5778 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002956/0.4279, allocations: 131.4 kB / 0.5779 GB, free: 2.465 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006251/0.4342, allocations: 2.986 MB / 0.5808 GB, free: 15.47 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0071/0.4413, allocations: 2.627 MB / 0.5834 GB, free: 12.83 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0026/0.4439, allocations: 1.03 MB / 0.5844 GB, free: 11.8 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.012/0.4559, allocations: 7.667 MB / 0.5919 GB, free: 4.121 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005185/0.4611, allocations: 3.588 MB / 0.5954 GB, free: 492 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005012/0.4661, allocations: 2.297 MB / 0.5976 GB, free: 14.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006196/0.4723, allocations: 3.341 MB / 0.6009 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00165/0.4739, allocations: 452 kB / 0.6013 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003717/0.4776, allocations: 1.198 MB / 0.6025 GB, free: 9.184 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004138/0.4818, allocations: 2.867 MB / 0.6053 GB, free: 6.309 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004848/0.4866, allocations: 2.372 MB / 0.6076 GB, free: 3.922 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01648/0.5031, allocations: 10.04 MB / 0.6174 GB, free: 9.836 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.5031, allocations: 4 kB / 0.6174 GB, free: 9.832 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.696e-06/0.5031, allocations: 3.938 kB / 0.6174 GB, free: 9.828 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003465/0.5035, allocations: 0 / 0.6174 GB, free: 9.828 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02014/0.5236, allocations: 7.316 MB / 0.6246 GB, free: 2.441 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.5237, allocations: 8.031 kB / 0.6246 GB, free: 2.434 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01707/0.5407, allocations: 3.877 MB / 0.6283 GB, free: 14.55 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/0.5523, allocations: 3.967 MB / 0.6322 GB, free: 10.53 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003444/0.5526, allocations: 316.4 kB / 0.6325 GB, free: 10.21 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001862/0.5545, allocations: 435.8 kB / 0.6329 GB, free: 9.789 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03071/0.5852, allocations: 15.67 MB / 0.6482 GB, free: 9.371 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000264/0.5854, allocations: 51.59 kB / 0.6483 GB, free: 9.32 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006994/0.5861, allocations: 199.8 kB / 0.6485 GB, free: 9.125 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006547/0.5927, allocations: 3.38 MB / 0.6518 GB, free: 5.742 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03409/0.6268, allocations: 14.76 MB / 0.6662 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09808/0.7249, allocations: 51.24 MB / 0.7162 GB, free: 2.551 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01868/0.7435, allocations: 6.936 MB / 0.723 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00736/0.7509, allocations: 4.484 MB / 0.7274 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00158/0.7525, allocations: 0.6457 MB / 0.728 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.86e-05/0.7525, allocations: 65.08 kB / 0.7281 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 7.013e-06/0.7525, allocations: 0 / 0.7281 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3982/1.151, allocations: 40.04 MB / 0.7672 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/1.151, allocations: 116 kB / 0.7673 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004521/1.155, allocations: 4.155 MB / 0.7713 GB, free: 134.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000797/1.156, allocations: 92.64 kB / 0.7714 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001696/1.158, allocations: 3.968 MB / 0.7753 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.159, allocations: 1.565 MB / 0.7768 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001834/1.161, allocations: 1.573 MB / 0.7784 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.844e-05/1.161, allocations: 305.1 kB / 0.7787 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004524/1.166, allocations: 4.072 MB / 0.7826 GB, free: 123.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006351/1.172, allocations: 7.874 MB / 0.7903 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01277/1.185, allocations: 12.88 MB / 0.8029 GB, free: 99.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001398/1.185, allocations: 36 kB / 0.8029 GB, free: 99.17 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02466/1.21, allocations: 14.69 MB / 0.8173 GB, free: 84.44 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.92e-05/1.21, allocations: 60 kB / 0.8173 GB, free: 84.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/1.21, allocations: 132.1 kB / 0.8175 GB, free: 84.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00779/1.218, allocations: 2.929 MB / 0.8203 GB, free: 81.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006374/1.224, allocations: 1.805 MB / 0.8221 GB, free: 79.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01763/1.242, allocations: 15.55 MB / 0.8373 GB, free: 63.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006408/1.248, allocations: 0.4958 MB / 0.8378 GB, free: 63.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001154/1.249, allocations: 439.8 kB / 0.8382 GB, free: 62.82 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (942): * Single equations (assignments): 934 * 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.004471/1.254, allocations: 2.87 MB / 0.841 GB, free: 59.94 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/1.255, allocations: 453 kB / 0.8414 GB, free: 59.49 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01641/1.271, allocations: 10.88 MB / 0.852 GB, free: 48.55 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.696e-05/1.271, allocations: 61.27 kB / 0.8521 GB, free: 48.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/1.271, allocations: 19.92 kB / 0.8521 GB, free: 48.48 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.429e-05/1.271, allocations: 15.94 kB / 0.8521 GB, free: 48.46 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03037/1.302, allocations: 19.46 MB / 0.8711 GB, free: 28.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.45e-05/1.302, allocations: 15.75 kB / 0.8712 GB, free: 28.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003128/1.305, allocations: 0.6824 MB / 0.8718 GB, free: 28.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007346/1.312, allocations: 2.724 MB / 0.8745 GB, free: 25.43 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007255/1.313, allocations: 83.98 kB / 0.8746 GB, free: 25.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01567/1.329, allocations: 14.16 MB / 0.8884 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.767e-06/1.329, allocations: 15.94 kB / 0.8884 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02506/1.354, allocations: 15.52 MB / 0.9036 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/1.355, allocations: 408.9 kB / 0.904 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001145/1.356, allocations: 79.44 kB / 0.904 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002877/1.359, allocations: 307.5 kB / 0.9043 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007639/1.36, allocations: 277.8 kB / 0.9046 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003115/1.36, allocations: 112 kB / 0.9047 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004242/1.364, allocations: 2.43 MB / 0.9071 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.71e-07/1.365, allocations: 4 kB / 0.9071 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007266/1.372, allocations: 1.656 MB / 0.9087 GB, free: 5.914 MB / 0.5762 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.0007159/1.372, allocations: 233.6 kB / 0.9089 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01625/1.389, allocations: 9.647 MB / 0.9183 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.425e-05/1.389, allocations: 0 / 0.9183 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006966/1.396, allocations: 4.08 MB / 0.9223 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003539/1.399, allocations: 0.6002 MB / 0.9229 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03007/1.429, allocations: 16.01 MB / 0.9385 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006638/1.436, allocations: 4.036 MB / 0.9425 GB, free: 3.023 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.007103/1.443, allocations: 2.678 MB / 0.9451 GB, free: 348 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/1.445, allocations: 335.3 kB / 0.9454 GB, free: 12 kB / 0.6075 GB Notification: Performance of SimCode: time 1.041e-06/1.445, allocations: 0 / 0.9454 GB, free: 12 kB / 0.6075 GB Notification: Performance of Templates: time 0.3835/1.828, allocations: 70.33 MB / 1.014 GB, free: 193.7 MB / 0.6387 GB " [Timeout remaining time 658] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.772863579913974]