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.00111/0.00111, allocations: 116.9 kB / 17.08 MB, free: 6.012 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.001184/0.001185, allocations: 193.3 kB / 18.01 MB, free: 5.094 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.354/1.354, allocations: 205.1 MB / 223.9 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.207/0.207, allocations: 43.52 MB / 314.8 MB, free: 460 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.00138/0.00138, allocations: 67.89 kB / 442.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1096, allocations: 57.79 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01346/0.1231, allocations: 12.67 MB / 0.5009 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008121/0.1313, allocations: 3.972 MB / 0.5048 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001979/0.1333, allocations: 63.88 kB / 0.5049 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003179/0.1365, allocations: 1.319 MB / 0.5061 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004785/0.1414, allocations: 1.794 MB / 0.5079 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.1431, allocations: 483 kB / 0.5084 GB, free: 7.414 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005932/0.1491, allocations: 3.665 MB / 0.5119 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003173/0.1523, allocations: 2.044 MB / 0.5139 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002267/0.1546, allocations: 1.238 MB / 0.5151 GB, free: 420 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002737/0.1573, allocations: 1.748 MB / 0.5169 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009495/0.1583, allocations: 240 kB / 0.5171 GB, free: 14.42 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002362/0.1607, allocations: 0.94 MB / 0.518 GB, free: 13.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00198/0.1627, allocations: 1.628 MB / 0.5196 GB, free: 11.85 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00308/0.1658, allocations: 1.941 MB / 0.5215 GB, free: 9.895 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007559/0.1733, allocations: 6.371 MB / 0.5277 GB, free: 3.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.1734, allocations: 3.938 kB / 0.5277 GB, free: 3.496 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1734, allocations: 0 / 0.5277 GB, free: 3.496 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000262/0.1737, allocations: 0 / 0.5277 GB, free: 3.496 MB / 414.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.2295/0.4032, allocations: 4.232 MB / 0.5318 GB, free: 37.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.4033, allocations: 14.38 kB / 0.5319 GB, free: 37.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.415, allocations: 3.075 MB / 0.5349 GB, free: 37.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004714/0.4198, allocations: 1.96 MB / 0.5368 GB, free: 36.6 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.42, allocations: 200 kB / 0.537 GB, free: 36.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009163/0.4209, allocations: 259.1 kB / 0.5372 GB, free: 36.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0188/0.4397, allocations: 10.69 MB / 0.5477 GB, free: 32.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.924e-05/0.4399, allocations: 23.52 kB / 0.5477 GB, free: 32.69 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003929/0.4403, allocations: 127.9 kB / 0.5478 GB, free: 32.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004753/0.445, allocations: 2.641 MB / 0.5504 GB, free: 31.99 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/0.4624, allocations: 10.03 MB / 0.5602 GB, free: 25.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04338/0.5059, allocations: 35.08 MB / 0.5944 GB, free: 5.141 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009773/0.5157, allocations: 5.185 MB / 0.5995 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003143/0.5189, allocations: 2.291 MB / 0.6017 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001707/0.5206, allocations: 1.88 MB / 0.6036 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/0.5207, allocations: 56.56 kB / 0.6036 GB, free: 11.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=229): time 4.869e-06/0.5207, allocations: 0 / 0.6036 GB, free: 11.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.03504/0.5557, allocations: 14.04 MB / 0.6173 GB, free: 13.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.5558, allocations: 73.41 kB / 0.6174 GB, free: 12.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00464/0.5605, allocations: 2.672 MB / 0.62 GB, free: 10.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004289/0.5609, allocations: 53.7 kB / 0.6201 GB, free: 10.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.5628, allocations: 2.705 MB / 0.6227 GB, free: 7.484 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/0.564, allocations: 0.8557 MB / 0.6235 GB, free: 6.617 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002304/0.5663, allocations: 1.048 MB / 0.6246 GB, free: 5.559 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.5664, allocations: 313 kB / 0.6249 GB, free: 5.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/0.5698, allocations: 2.212 MB / 0.627 GB, free: 3.031 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005454/0.5753, allocations: 5.134 MB / 0.632 GB, free: 12.46 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009992/0.5853, allocations: 8.062 MB / 0.6399 GB, free: 2.977 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.483e-05/0.5855, allocations: 28 kB / 0.6399 GB, free: 2.949 MB / 478.1 MB Notification: Performance of matching and sorting (n=704) (initialization): time 0.01474/0.6002, allocations: 7.95 MB / 0.6477 GB, free: 10.99 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.6004, allocations: 52 kB / 0.6477 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001623/0.6006, allocations: 100 kB / 0.6478 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002392/0.603, allocations: 0.7968 MB / 0.6486 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004277/0.6073, allocations: 1.212 MB / 0.6498 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005978/0.6133, allocations: 4.521 MB / 0.6542 GB, free: 4.172 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003782/0.6171, allocations: 291.8 kB / 0.6545 GB, free: 3.887 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009748/0.6181, allocations: 316 kB / 0.6548 GB, free: 3.578 MB / 494.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.004456/0.6226, allocations: 2.059 MB / 0.6568 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007389/0.6233, allocations: 260.5 kB / 0.6571 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00889/0.6322, allocations: 4.728 MB / 0.6617 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.216e-05/0.6323, allocations: 47.98 kB / 0.6617 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/0.6324, allocations: 0 / 0.6617 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.721e-05/0.6324, allocations: 7.969 kB / 0.6617 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01974/0.6521, allocations: 10.6 MB / 0.6721 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.57e-05/0.6522, allocations: 11.94 kB / 0.6721 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/0.6539, allocations: 359.4 kB / 0.6724 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002021/0.6559, allocations: 0.6527 MB / 0.6731 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002775/0.6562, allocations: 43.98 kB / 0.6731 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005129/0.6613, allocations: 3.915 MB / 0.6769 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.266e-06/0.6614, allocations: 8 kB / 0.6769 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/0.6724, allocations: 7.14 MB / 0.6839 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/0.6739, allocations: 0.6498 MB / 0.6846 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006594/0.6746, allocations: 40 kB / 0.6846 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.6762, allocations: 143.8 kB / 0.6847 GB, free: 4.445 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003802/0.6766, allocations: 137 kB / 0.6849 GB, free: 4.309 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/0.6767, allocations: 64 kB / 0.6849 GB, free: 4.246 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002893/0.6796, allocations: 1.652 MB / 0.6865 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6797, allocations: 0 / 0.6865 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004224/0.6839, allocations: 0.9402 MB / 0.6875 GB, free: 1.648 MB / 0.5137 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.0005384/0.6844, allocations: 185.4 kB / 0.6876 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008037/0.6925, allocations: 5.417 MB / 0.6929 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.6925, allocations: 4 kB / 0.6929 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002863/0.6954, allocations: 2.016 MB / 0.6949 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.6979, allocations: 351.2 kB / 0.6952 GB, free: 9.688 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/0.7161, allocations: 9.929 MB / 0.7049 GB, free: 15.63 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00458/0.7208, allocations: 3.236 MB / 0.7081 GB, free: 12.36 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.722, allocations: 251.4 kB / 0.7083 GB, free: 12.12 MB / 0.545 GB Notification: Performance of SimCode: time 7.71e-07/0.7221, allocations: 0 / 0.7083 GB, free: 12.12 MB / 0.545 GB Notification: Performance of Templates: time 0.3149/1.037, allocations: 71.93 MB / 0.7786 GB, free: 184.5 MB / 0.5762 GB 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 -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