Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 241.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 99.73 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3415/0.3415, allocations: 44.12 MB / 386.1 MB, free: 37.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 55.91 kB / 457.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.301, allocations: 60.8 MB / 0.5064 GB, free: 38.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.02268/0.3237, allocations: 29.71 MB / 0.5354 GB, free: 16.99 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01297/0.3367, allocations: 6.836 MB / 0.5421 GB, free: 12.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005198/0.3419, allocations: 115.3 kB / 0.5422 GB, free: 12.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002662/0.3446, allocations: 1.267 MB / 0.5434 GB, free: 11.93 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003718/0.3484, allocations: 1.645 MB / 0.545 GB, free: 11.27 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.3495, allocations: 450 kB / 0.5455 GB, free: 11.11 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005325/0.3549, allocations: 5.041 MB / 0.5504 GB, free: 9.617 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003309/0.3582, allocations: 1.979 MB / 0.5523 GB, free: 8.871 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002337/0.3605, allocations: 1.042 MB / 0.5533 GB, free: 8.48 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/0.3637, allocations: 1.806 MB / 0.5551 GB, free: 7.898 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008902/0.3646, allocations: 167.6 kB / 0.5553 GB, free: 7.898 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.367, allocations: 0.9487 MB / 0.5562 GB, free: 7.66 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001849/0.3689, allocations: 1.548 MB / 0.5577 GB, free: 7.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001758/0.3706, allocations: 1.839 MB / 0.5595 GB, free: 5.852 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006861/0.3775, allocations: 5.898 MB / 0.5653 GB, free: 2.918 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3775, allocations: 0 / 0.5653 GB, free: 2.918 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3776, allocations: 1.438 kB / 0.5653 GB, free: 2.918 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001357/0.3777, allocations: 3.938 kB / 0.5653 GB, free: 2.914 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.007536/0.3852, allocations: 4.159 MB / 0.5693 GB, free: 15.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.3853, allocations: 12.03 kB / 0.5693 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01058/0.3959, allocations: 3.072 MB / 0.5723 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00562/0.4015, allocations: 1.889 MB / 0.5742 GB, free: 10.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.4017, allocations: 189 kB / 0.5744 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005534/0.4022, allocations: 251.9 kB / 0.5746 GB, free: 9.996 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0161/0.4183, allocations: 10.48 MB / 0.5848 GB, free: 15.08 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-05/0.4185, allocations: 31.72 kB / 0.5849 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003592/0.4188, allocations: 115.8 kB / 0.585 GB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00409/0.4229, allocations: 2.557 MB / 0.5875 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01752/0.4405, allocations: 9.919 MB / 0.5972 GB, free: 2.449 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05045/0.491, allocations: 34.46 MB / 0.6308 GB, free: 15.17 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009273/0.5003, allocations: 5.207 MB / 0.6359 GB, free: 9.734 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003053/0.5034, allocations: 2.291 MB / 0.6381 GB, free: 7.441 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001721/0.5051, allocations: 1.88 MB / 0.64 GB, free: 5.227 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/0.5052, allocations: 52.56 kB / 0.64 GB, free: 5.168 MB / 458.7 MB Notification: Performance of pre-optimization done (n=229): time 6.993e-06/0.5052, allocations: 0 / 0.64 GB, free: 5.168 MB / 458.7 MB Notification: Performance of matching and sorting (n=235): time 0.03289/0.5381, allocations: 13.99 MB / 0.6537 GB, free: 7.117 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.5382, allocations: 85.28 kB / 0.6538 GB, free: 7.023 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00482/0.543, allocations: 2.631 MB / 0.6563 GB, free: 4.371 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002437/0.5433, allocations: 57.7 kB / 0.6564 GB, free: 4.309 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00195/0.5452, allocations: 2.635 MB / 0.659 GB, free: 1.633 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009754/0.5462, allocations: 0.844 MB / 0.6598 GB, free: 0.7773 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001884/0.5481, allocations: 1.04 MB / 0.6608 GB, free: 15.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.5482, allocations: 301.1 kB / 0.6611 GB, free: 15.43 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003296/0.5515, allocations: 2.208 MB / 0.6632 GB, free: 13.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004988/0.5565, allocations: 5.071 MB / 0.6682 GB, free: 6.738 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008598/0.5652, allocations: 7.969 MB / 0.676 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.585e-05/0.5652, allocations: 32 kB / 0.676 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01337/0.5786, allocations: 7.887 MB / 0.6837 GB, free: 5.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.5787, allocations: 48 kB / 0.6838 GB, free: 5.383 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/0.5788, allocations: 100 kB / 0.6839 GB, free: 5.285 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00225/0.5811, allocations: 0.8008 MB / 0.6846 GB, free: 4.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00361/0.5847, allocations: 1.185 MB / 0.6858 GB, free: 3.293 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2706/0.8553, allocations: 4.195 MB / 0.6899 GB, free: 142.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004576/0.86, allocations: 296.5 kB / 0.6902 GB, free: 142.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001309/0.8613, allocations: 297.3 kB / 0.6905 GB, free: 142.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (635): * Single equations (assignments): 628 * Array equations: 6 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004504/0.8658, allocations: 2.017 MB / 0.6924 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000566/0.8664, allocations: 262.2 kB / 0.6927 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008345/0.8748, allocations: 4.733 MB / 0.6973 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.805e-05/0.8748, allocations: 43.83 kB / 0.6973 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.976e-05/0.8749, allocations: 5.156 kB / 0.6973 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-05/0.8749, allocations: 9.156 kB / 0.6974 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02154/0.8964, allocations: 10.53 MB / 0.7076 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.125e-05/0.8965, allocations: 6.219 kB / 0.7076 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/0.898, allocations: 368.5 kB / 0.708 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/0.9001, allocations: 0.6521 MB / 0.7086 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.9004, allocations: 43.58 kB / 0.7087 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004627/0.905, allocations: 3.653 MB / 0.7122 GB, free: 135 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.9051, allocations: 12.97 kB / 0.7123 GB, free: 135 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04561/0.9507, allocations: 25.11 MB / 0.7368 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007265/0.9514, allocations: 308 kB / 0.7371 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008475/0.9523, allocations: 49.03 kB / 0.7371 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/0.9539, allocations: 137.4 kB / 0.7373 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004893/0.9545, allocations: 135.1 kB / 0.7374 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002367/0.9547, allocations: 68.98 kB / 0.7374 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002747/0.9575, allocations: 1.616 MB / 0.739 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9575, allocations: 0 / 0.739 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004873/0.9623, allocations: 1.119 MB / 0.7401 GB, free: 124.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005416/0.9629, allocations: 184.9 kB / 0.7403 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006812/0.9697, allocations: 5.344 MB / 0.7455 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.9698, allocations: 4 kB / 0.7455 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002289/0.972, allocations: 2.028 MB / 0.7475 GB, free: 118 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002309/0.9744, allocations: 341 kB / 0.7478 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01727/0.9917, allocations: 13.05 MB / 0.7606 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004404/0.9961, allocations: 3.234 MB / 0.7637 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004946/1.001, allocations: 1.965 MB / 0.7656 GB, free: 99.38 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/1.002, allocations: 207.4 kB / 0.7658 GB, free: 99.18 MB / 0.4948 GB Notification: Performance of SimCode: time 8.72e-07/1.002, allocations: 0 / 0.7658 GB, free: 99.18 MB / 0.4948 GB Notification: Performance of Templates: time 0.05313/1.055, allocations: 34.24 MB / 0.7993 GB, free: 65.12 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches