Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_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.002041/0.002041, allocations: 112.6 kB / 17.04 MB, free: 6.078 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.002232/0.002232, allocations: 195 kB / 17.97 MB, free: 5.16 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.613/1.613, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2188/0.2188, allocations: 43.52 MB / 314.7 MB, free: 488 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.001583/0.001584, allocations: 67.55 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1152, allocations: 57.8 MB / 442 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01213/0.1273, allocations: 12.66 MB / 454.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.1383, allocations: 3.965 MB / 458.6 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002478/0.1408, allocations: 63.88 kB / 458.7 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003413/0.1442, allocations: 1.319 MB / 460 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005473/0.1498, allocations: 1.786 MB / 461.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001555/0.1513, allocations: 0.4912 MB / 462.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006449/0.1578, allocations: 3.663 MB / 465.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003721/0.1615, allocations: 2.06 MB / 468 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002567/0.1641, allocations: 1.226 MB / 469.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003772/0.1679, allocations: 1.748 MB / 471 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008264/0.1688, allocations: 240 kB / 471.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002908/0.1717, allocations: 0.9361 MB / 472.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003017/0.1747, allocations: 1.624 MB / 473.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003406/0.1782, allocations: 1.945 MB / 475.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01117/0.1893, allocations: 6.359 MB / 482.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.056e-06/0.1894, allocations: 0 / 482.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.067e-06/0.1894, allocations: 4 kB / 482.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001851/0.1896, allocations: 3.938 kB / 482.1 MB, free: 13.89 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1571 * Number of variables: 1571 Notification: Performance of Generate backend data structure: time 0.009409/0.199, allocations: 4.238 MB / 486.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.1991, allocations: 11.89 kB / 486.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01035/0.2094, allocations: 3.076 MB / 489.4 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004805/0.2143, allocations: 1.967 MB / 491.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001596/0.2145, allocations: 197.2 kB / 491.6 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007127/0.2152, allocations: 259.8 kB / 491.8 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0154/0.2306, allocations: 10.7 MB / 0.4907 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-05/0.2307, allocations: 31.75 kB / 0.4908 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003529/0.2311, allocations: 119.8 kB / 0.4909 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004346/0.2355, allocations: 2.643 MB / 0.4935 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01778/0.2532, allocations: 10.03 MB / 0.5032 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2543/0.5076, allocations: 35.06 MB / 0.5375 GB, free: 66.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009176/0.5168, allocations: 5.182 MB / 0.5425 GB, free: 65.44 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003007/0.5198, allocations: 2.297 MB / 0.5448 GB, free: 65.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001366/0.5212, allocations: 1.88 MB / 0.5466 GB, free: 63.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.5213, allocations: 55.03 kB / 0.5467 GB, free: 63.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=229): time 4.719e-06/0.5213, allocations: 1.656 kB / 0.5467 GB, free: 63.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=235): time 0.0277/0.549, allocations: 14.02 MB / 0.5604 GB, free: 60.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.5491, allocations: 76.83 kB / 0.5604 GB, free: 60.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002789/0.5519, allocations: 2.681 MB / 0.5631 GB, free: 59.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001914/0.5521, allocations: 56.11 kB / 0.5631 GB, free: 59.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001036/0.5531, allocations: 2.705 MB / 0.5658 GB, free: 57.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005906/0.5537, allocations: 0.8471 MB / 0.5666 GB, free: 56.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00104/0.5548, allocations: 1.057 MB / 0.5676 GB, free: 55.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.7e-05/0.5548, allocations: 304.6 kB / 0.5679 GB, free: 55.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002343/0.5572, allocations: 2.216 MB / 0.5701 GB, free: 54.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003282/0.5605, allocations: 5.14 MB / 0.5751 GB, free: 47.87 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007197/0.5677, allocations: 8.057 MB / 0.583 GB, free: 38.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.089e-05/0.5678, allocations: 28 kB / 0.583 GB, free: 38.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=704) (initialization): time 0.01125/0.5791, allocations: 7.955 MB / 0.5908 GB, free: 30.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.923e-05/0.5792, allocations: 49 kB / 0.5908 GB, free: 30.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-05/0.5793, allocations: 104 kB / 0.5909 GB, free: 30.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001959/0.5812, allocations: 0.7927 MB / 0.5917 GB, free: 29.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003329/0.5846, allocations: 1.205 MB / 0.5929 GB, free: 28.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004519/0.5891, allocations: 4.522 MB / 0.5973 GB, free: 23.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003582/0.5927, allocations: 307.8 kB / 0.5976 GB, free: 23.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008111/0.5935, allocations: 300 kB / 0.5978 GB, free: 23.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 463 * Number of states: 0 () * Number of discrete variables: 27 (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 (644): * Single equations (assignments): 637 * 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.003415/0.597, allocations: 2.049 MB / 0.5999 GB, free: 21.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005749/0.5976, allocations: 264.5 kB / 0.6001 GB, free: 20.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007127/0.6047, allocations: 4.733 MB / 0.6047 GB, free: 16.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.614e-05/0.6048, allocations: 43.98 kB / 0.6048 GB, free: 16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.802e-05/0.6048, allocations: 4 kB / 0.6048 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/0.6048, allocations: 11.91 kB / 0.6048 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01867/0.6235, allocations: 10.58 MB / 0.6151 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.536e-05/0.6236, allocations: 11.94 kB / 0.6151 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/0.6251, allocations: 363.4 kB / 0.6155 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001817/0.6269, allocations: 0.6522 MB / 0.6161 GB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002718/0.6272, allocations: 51.75 kB / 0.6162 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003941/0.6312, allocations: 3.903 MB / 0.62 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/0.6312, allocations: 11.94 kB / 0.62 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01115/0.6423, allocations: 7.14 MB / 0.627 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001789/0.6442, allocations: 0.642 MB / 0.6276 GB, free: 8.258 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006259/0.6448, allocations: 47.5 kB / 0.6276 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/0.6463, allocations: 135.8 kB / 0.6278 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003702/0.6467, allocations: 137 kB / 0.6279 GB, free: 7.949 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001688/0.6469, allocations: 63.98 kB / 0.6279 GB, free: 7.887 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002467/0.6493, allocations: 1.656 MB / 0.6296 GB, free: 6.223 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6494, allocations: 4 kB / 0.6296 GB, free: 6.219 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004085/0.6534, allocations: 0.9478 MB / 0.6305 GB, free: 5.277 MB / 430.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.0004537/0.6539, allocations: 176.8 kB / 0.6307 GB, free: 5.105 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007895/0.6618, allocations: 5.412 MB / 0.6359 GB, free: 15.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/0.6619, allocations: 7.938 kB / 0.636 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002701/0.6646, allocations: 2.018 MB / 0.6379 GB, free: 13.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/0.6665, allocations: 361 kB / 0.6383 GB, free: 13.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/0.6829, allocations: 9.5 MB / 0.6475 GB, free: 3.734 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003888/0.6868, allocations: 3.226 MB / 0.6507 GB, free: 496 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004273/0.6911, allocations: 1.975 MB / 0.6526 GB, free: 14.51 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007523/0.6918, allocations: 203.4 kB / 0.6528 GB, free: 14.31 MB / 462.1 MB Notification: Performance of SimCode: time 1.773e-06/0.6919, allocations: 0 / 0.6528 GB, free: 14.31 MB / 462.1 MB Notification: Performance of Templates: time 0.05529/0.7472, allocations: 27.11 MB / 0.6793 GB, free: 3.371 MB / 478.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches