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.001053/0.001053, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001048/0.001048, allocations: 192 kB / 18.55 MB, free: 4.566 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.263/1.263, allocations: 222.9 MB / 242.2 MB, free: 15.17 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.1924/0.1924, allocations: 44.19 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.3 kB / 408.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09185/0.09301, allocations: 60.82 MB / 469.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01335/0.1064, allocations: 12.31 MB / 481.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009052/0.1155, allocations: 3.939 MB / 485.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002346/0.1179, allocations: 59.88 kB / 485.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002925/0.1208, allocations: 1.319 MB / 486.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004689/0.1256, allocations: 1.755 MB / 488.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.1269, allocations: 491 kB / 489.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004572/0.1315, allocations: 3.582 MB / 492.7 MB, free: 6.828 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00283/0.1344, allocations: 2.017 MB / 494.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001727/0.1361, allocations: 1.195 MB / 495.9 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002067/0.1382, allocations: 1.717 MB / 497.6 MB, free: 1.848 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006265/0.1388, allocations: 236 kB / 497.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.1409, allocations: 0.9633 MB / 498.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00174/0.1427, allocations: 1.589 MB / 0.4887 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002644/0.1453, allocations: 1.89 MB / 0.4905 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006822/0.1522, allocations: 5.95 MB / 0.4963 GB, free: 7.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1522, allocations: 0 / 0.4963 GB, free: 7.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1522, allocations: 0 / 0.4963 GB, free: 7.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001764/0.1524, allocations: 3.938 kB / 0.4963 GB, free: 7.184 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.009744/0.1622, allocations: 4.159 MB / 0.5004 GB, free: 2.957 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.1622, allocations: 8.031 kB / 0.5004 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2242/0.3864, allocations: 3.073 MB / 0.5034 GB, free: 45.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004678/0.3911, allocations: 1.888 MB / 0.5052 GB, free: 45.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/0.3914, allocations: 190.1 kB / 0.5054 GB, free: 45.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.3924, allocations: 250.7 kB / 0.5057 GB, free: 45.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01641/0.4088, allocations: 10.49 MB / 0.5159 GB, free: 41.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.409, allocations: 23.36 kB / 0.5159 GB, free: 41.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004203/0.4094, allocations: 124.3 kB / 0.5161 GB, free: 41.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004204/0.4136, allocations: 2.553 MB / 0.5185 GB, free: 40.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01848/0.4321, allocations: 9.921 MB / 0.5282 GB, free: 34.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04407/0.4763, allocations: 34.48 MB / 0.5619 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009809/0.4861, allocations: 5.185 MB / 0.567 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003308/0.4895, allocations: 2.295 MB / 0.5692 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001645/0.4911, allocations: 1.881 MB / 0.571 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/0.4912, allocations: 56.56 kB / 0.5711 GB, free: 5.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=229): time 5.15e-06/0.4912, allocations: 0 / 0.5711 GB, free: 5.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=235): time 0.03458/0.5258, allocations: 13.97 MB / 0.5847 GB, free: 7.211 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.5259, allocations: 75.47 kB / 0.5848 GB, free: 7.129 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00418/0.5301, allocations: 2.635 MB / 0.5874 GB, free: 4.473 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000302/0.5304, allocations: 61.69 kB / 0.5875 GB, free: 4.406 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001743/0.5322, allocations: 2.636 MB / 0.59 GB, free: 1.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001049/0.5332, allocations: 0.844 MB / 0.5909 GB, free: 0.875 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001759/0.535, allocations: 1.052 MB / 0.5919 GB, free: 15.81 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.5352, allocations: 305.1 kB / 0.5922 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00298/0.5382, allocations: 2.204 MB / 0.5943 GB, free: 13.3 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005385/0.5436, allocations: 5.067 MB / 0.5993 GB, free: 6.824 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009391/0.553, allocations: 7.973 MB / 0.6071 GB, free: 13.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.746e-05/0.5531, allocations: 32 kB / 0.6071 GB, free: 13.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01369/0.5668, allocations: 7.883 MB / 0.6148 GB, free: 5.516 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.285e-05/0.567, allocations: 48.94 kB / 0.6148 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001405/0.5671, allocations: 104 kB / 0.6149 GB, free: 5.367 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002219/0.5693, allocations: 0.7954 MB / 0.6157 GB, free: 4.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003618/0.573, allocations: 1.185 MB / 0.6169 GB, free: 3.383 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005366/0.5783, allocations: 4.52 MB / 0.6213 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002999/0.5814, allocations: 291.7 kB / 0.6216 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006118/0.582, allocations: 304 kB / 0.6218 GB, free: 14.15 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.003096/0.5851, allocations: 2.02 MB / 0.6238 GB, free: 12.11 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005216/0.5856, allocations: 256.6 kB / 0.6241 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007657/0.5933, allocations: 4.729 MB / 0.6287 GB, free: 7.105 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.959e-05/0.5934, allocations: 47.92 kB / 0.6287 GB, free: 7.059 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.5934, allocations: 4 kB / 0.6287 GB, free: 7.055 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.978e-05/0.5934, allocations: 7.969 kB / 0.6287 GB, free: 7.047 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01804/0.6115, allocations: 10.53 MB / 0.639 GB, free: 12.35 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.106e-05/0.6115, allocations: 8 kB / 0.639 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/0.6131, allocations: 359.4 kB / 0.6394 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/0.6152, allocations: 0.6564 MB / 0.64 GB, free: 11.33 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002154/0.6155, allocations: 51.89 kB / 0.6401 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005232/0.6207, allocations: 3.898 MB / 0.6439 GB, free: 7.246 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.32e-05/0.6207, allocations: 12.08 kB / 0.6439 GB, free: 7.234 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/0.6316, allocations: 7.142 MB / 0.6509 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000948/0.6326, allocations: 317.6 kB / 0.6512 GB, free: 15.65 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000717/0.6334, allocations: 35.98 kB / 0.6512 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/0.635, allocations: 143.9 kB / 0.6513 GB, free: 15.47 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003707/0.6354, allocations: 137 kB / 0.6515 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001868/0.6356, allocations: 60 kB / 0.6515 GB, free: 15.28 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0029/0.6385, allocations: 1.627 MB / 0.6531 GB, free: 13.64 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6385, allocations: 0 / 0.6531 GB, free: 13.64 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004273/0.6428, allocations: 0.9349 MB / 0.654 GB, free: 12.71 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.0006105/0.6434, allocations: 173.5 kB / 0.6542 GB, free: 12.54 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01309/0.6566, allocations: 8.685 MB / 0.6627 GB, free: 3.887 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.936e-06/0.6566, allocations: 0 / 0.6627 GB, free: 3.887 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002858/0.6595, allocations: 2.022 MB / 0.6646 GB, free: 1.855 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/0.6617, allocations: 361.8 kB / 0.665 GB, free: 1.508 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/0.6788, allocations: 9.438 MB / 0.6742 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00421/0.683, allocations: 3.176 MB / 0.6773 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004605/0.6877, allocations: 1.957 MB / 0.6792 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008005/0.6885, allocations: 199.4 kB / 0.6794 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of SimCode: time 1.142e-06/0.6885, allocations: 0 / 0.6794 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of Templates: time 0.2639/0.9524, allocations: 30.87 MB / 0.7096 GB, free: 165.9 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins/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