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/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 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 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001747/0.001747, allocations: 195.3 kB / 19.23 MB, free: 3.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 222.9 MB / 242.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3228/0.3228, allocations: 44.18 MB / 337.3 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001279, allocations: 64.8 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01301/0.1162, allocations: 12.31 MB / 482.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007776/0.124, allocations: 3.933 MB / 486.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001556/0.1256, allocations: 63.81 kB / 486.2 MB, free: 14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002563/0.1282, allocations: 1.319 MB / 487.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003667/0.1319, allocations: 1.751 MB / 489.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.133, allocations: 499 kB / 489.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003901/0.1369, allocations: 3.581 MB / 493.4 MB, free: 6.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002483/0.1395, allocations: 2.013 MB / 495.4 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001731/0.1412, allocations: 1.199 MB / 496.6 MB, free: 3.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002467/0.1437, allocations: 1.717 MB / 498.3 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006064/0.1443, allocations: 236 kB / 498.5 MB, free: 1.629 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001867/0.1462, allocations: 0.9595 MB / 499.5 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001457/0.1477, allocations: 1.589 MB / 0.4893 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00191/0.1496, allocations: 1.894 MB / 0.4912 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005727/0.1553, allocations: 5.953 MB / 0.497 GB, free: 7.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1554, allocations: 3.938 kB / 0.497 GB, free: 7.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1554, allocations: 0 / 0.497 GB, free: 7.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001308/0.1555, allocations: 0 / 0.497 GB, free: 7.191 MB / 382.1 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.007205/0.1627, allocations: 4.152 MB / 0.5011 GB, free: 2.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1628, allocations: 8.031 kB / 0.5011 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1995/0.3623, allocations: 3.065 MB / 0.5041 GB, free: 45.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004073/0.3664, allocations: 1.897 MB / 0.5059 GB, free: 45.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002038/0.3666, allocations: 190.2 kB / 0.5061 GB, free: 45.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009745/0.3676, allocations: 248.7 kB / 0.5063 GB, free: 45.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01697/0.3846, allocations: 10.49 MB / 0.5166 GB, free: 41.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.754e-05/0.3847, allocations: 22.25 kB / 0.5166 GB, free: 41.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000399/0.3851, allocations: 126.3 kB / 0.5167 GB, free: 41.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004385/0.3895, allocations: 2.55 MB / 0.5192 GB, free: 40.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/0.4061, allocations: 9.926 MB / 0.5289 GB, free: 34.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03978/0.4459, allocations: 34.48 MB / 0.5626 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00953/0.4555, allocations: 5.181 MB / 0.5676 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003124/0.4587, allocations: 2.304 MB / 0.5699 GB, free: 7.559 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001664/0.4603, allocations: 1.88 MB / 0.5717 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.4604, allocations: 56.56 kB / 0.5718 GB, free: 5.281 MB / 398.1 MB Notification: Performance of pre-optimization done (n=229): time 4.839e-06/0.4604, allocations: 0 / 0.5718 GB, free: 5.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=235): time 0.03327/0.4937, allocations: 13.97 MB / 0.5854 GB, free: 7.238 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.4938, allocations: 69.41 kB / 0.5855 GB, free: 7.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003312/0.4971, allocations: 2.643 MB / 0.5881 GB, free: 4.496 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003453/0.4975, allocations: 49.7 kB / 0.5881 GB, free: 4.441 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/0.4991, allocations: 2.632 MB / 0.5907 GB, free: 1.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001013/0.5001, allocations: 0.8557 MB / 0.5915 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001407/0.5015, allocations: 1.044 MB / 0.5925 GB, free: 15.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.5017, allocations: 309 kB / 0.5928 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003081/0.5047, allocations: 2.208 MB / 0.595 GB, free: 13.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004807/0.5096, allocations: 5.063 MB / 0.5999 GB, free: 6.855 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009413/0.519, allocations: 7.977 MB / 0.6077 GB, free: 13.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.804e-05/0.5191, allocations: 28 kB / 0.6077 GB, free: 13.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01472/0.5339, allocations: 7.886 MB / 0.6154 GB, free: 5.543 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.712e-05/0.534, allocations: 48 kB / 0.6155 GB, free: 5.496 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/0.5341, allocations: 100 kB / 0.6156 GB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002421/0.5366, allocations: 0.7942 MB / 0.6164 GB, free: 4.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004044/0.5406, allocations: 1.189 MB / 0.6175 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005929/0.5466, allocations: 4.524 MB / 0.6219 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003586/0.5502, allocations: 291.8 kB / 0.6222 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009483/0.5512, allocations: 307.9 kB / 0.6225 GB, free: 14.18 MB / 462.1 MB 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.003945/0.5551, allocations: 2.02 MB / 0.6245 GB, free: 12.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006965/0.5558, allocations: 256.6 kB / 0.6247 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007717/0.5636, allocations: 4.721 MB / 0.6293 GB, free: 7.141 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.344e-05/0.5637, allocations: 47.97 kB / 0.6294 GB, free: 7.094 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.5637, allocations: 4 kB / 0.6294 GB, free: 7.09 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/0.5637, allocations: 7.969 kB / 0.6294 GB, free: 7.082 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01751/0.5812, allocations: 10.53 MB / 0.6397 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/0.5813, allocations: 12 kB / 0.6397 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/0.5829, allocations: 355.5 kB / 0.64 GB, free: 12.03 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001988/0.5849, allocations: 0.6602 MB / 0.6407 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002037/0.5851, allocations: 43.98 kB / 0.6407 GB, free: 11.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004735/0.5898, allocations: 3.902 MB / 0.6445 GB, free: 7.277 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.5899, allocations: 11.94 kB / 0.6445 GB, free: 7.266 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01034/0.6002, allocations: 7.146 MB / 0.6515 GB, free: 8 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007358/0.601, allocations: 309.6 kB / 0.6518 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006826/0.6017, allocations: 40 kB / 0.6519 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/0.6033, allocations: 143.8 kB / 0.652 GB, free: 15.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004408/0.6038, allocations: 133.1 kB / 0.6521 GB, free: 15.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000228/0.604, allocations: 60 kB / 0.6522 GB, free: 15.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002861/0.6069, allocations: 1.623 MB / 0.6538 GB, free: 13.68 MB / 494.1 MB Notification: Performance of sort global known variables: time 4e-07/0.6069, allocations: 4 kB / 0.6538 GB, free: 13.68 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004495/0.6114, allocations: 0.9284 MB / 0.6547 GB, free: 12.75 MB / 494.1 MB 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.0005595/0.612, allocations: 180 kB / 0.6548 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01313/0.6251, allocations: 8.682 MB / 0.6633 GB, free: 3.922 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/0.6252, allocations: 4 kB / 0.6633 GB, free: 3.918 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00288/0.6281, allocations: 2.026 MB / 0.6653 GB, free: 1.883 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/0.6303, allocations: 358.9 kB / 0.6656 GB, free: 1.535 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01604/0.6464, allocations: 9.881 MB / 0.6753 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003803/0.6502, allocations: 3.17 MB / 0.6784 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.6513, allocations: 247.4 kB / 0.6786 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of SimCode: time 1.483e-06/0.6513, allocations: 0 / 0.6786 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of Templates: time 0.2847/0.936, allocations: 70.23 MB / 0.7472 GB, free: 141.3 MB / 0.5137 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches