Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization") translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 103.2 kB / 18.4 MB, free: 4.695 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.001141/0.001141, allocations: 188 kB / 19.33 MB, free: 3.77 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.385/1.385, allocations: 222.9 MB / 243 MB, free: 15.07 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.2232/0.2232, allocations: 44.18 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 73.03 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1196, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01195/0.1316, allocations: 10.25 MB / 481 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007831/0.1395, allocations: 3.802 MB / 484.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001848/0.1414, allocations: 59.81 kB / 484.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0039/0.1453, allocations: 1.943 MB / 486.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004029/0.1494, allocations: 1.65 MB / 488.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001425/0.1508, allocations: 0.616 MB / 489 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004412/0.1553, allocations: 3.333 MB / 492.4 MB, free: 7.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003457/0.1587, allocations: 2.576 MB / 494.9 MB, free: 5.293 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002009/0.1608, allocations: 1.246 MB / 496.2 MB, free: 4.043 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001957/0.1627, allocations: 1.67 MB / 497.9 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004013/0.1631, allocations: 259.9 kB / 498.1 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001691/0.1648, allocations: 1.026 MB / 499.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.1663, allocations: 1.566 MB / 0.489 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001543/0.1678, allocations: 1.829 MB / 0.4908 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005918/0.1737, allocations: 5.823 MB / 0.4964 GB, free: 7.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1738, allocations: 0 / 0.4964 GB, free: 7.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1738, allocations: 0 / 0.4964 GB, free: 7.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001175/0.1739, allocations: 4 kB / 0.4964 GB, free: 7.828 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.007599/0.1815, allocations: 4.026 MB / 0.5004 GB, free: 3.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1816, allocations: 8.031 kB / 0.5004 GB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005713/0.1873, allocations: 1.774 MB / 0.5021 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.248/0.4353, allocations: 1.941 MB / 0.504 GB, free: 45.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002819/0.4356, allocations: 198 kB / 0.5042 GB, free: 45.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001181/0.4368, allocations: 249.2 kB / 0.5044 GB, free: 45.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01428/0.4511, allocations: 8.44 MB / 0.5127 GB, free: 42.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/0.4513, allocations: 37.12 kB / 0.5127 GB, free: 42.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003578/0.4516, allocations: 126 kB / 0.5128 GB, free: 42.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00329/0.4549, allocations: 1.699 MB / 0.5145 GB, free: 41.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/0.4688, allocations: 7.096 MB / 0.5214 GB, free: 39.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03273/0.5016, allocations: 34.02 MB / 0.5547 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00616/0.5078, allocations: 3.279 MB / 0.5579 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.5093, allocations: 1.459 MB / 0.5593 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007165/0.5165, allocations: 4.371 MB / 0.5635 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.5166, allocations: 51 kB / 0.5636 GB, free: 13.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.028e-06/0.5166, allocations: 4 kB / 0.5636 GB, free: 13.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03036/0.547, allocations: 11.51 MB / 0.5748 GB, free: 1.898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.5471, allocations: 166.9 kB / 0.575 GB, free: 1.699 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006761/0.5539, allocations: 3.717 MB / 0.5786 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003041/0.5542, allocations: 45.7 kB / 0.5787 GB, free: 13.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00281/0.557, allocations: 2.756 MB / 0.5814 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000981/0.558, allocations: 0.5247 MB / 0.5819 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002362/0.5604, allocations: 1.079 MB / 0.5829 GB, free: 9.523 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.5605, allocations: 305.1 kB / 0.5832 GB, free: 9.223 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002972/0.5635, allocations: 1.701 MB / 0.5849 GB, free: 7.516 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005611/0.5691, allocations: 5.138 MB / 0.5899 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00962/0.5788, allocations: 7.409 MB / 0.5971 GB, free: 7.531 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001155/0.5789, allocations: 36 kB / 0.5972 GB, free: 7.496 MB / 430.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01375/0.5927, allocations: 6.733 MB / 0.6037 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/0.5928, allocations: 56 kB / 0.6038 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002761/0.5931, allocations: 124.2 kB / 0.6039 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007683/0.5939, allocations: 320.7 kB / 0.6042 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004076/0.598, allocations: 1.24 MB / 0.6054 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002891/0.6009, allocations: 2.499 MB / 0.6079 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003792/0.6047, allocations: 283.5 kB / 0.6081 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007259/0.6054, allocations: 336 kB / 0.6085 GB, free: 11.78 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (668): * Single equations (assignments): 664 * Array equations: 3 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00327/0.6087, allocations: 1.793 MB / 0.6102 GB, free: 9.977 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007786/0.6095, allocations: 315.9 kB / 0.6105 GB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004954/0.6145, allocations: 2.355 MB / 0.6128 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.123e-05/0.6145, allocations: 19.98 kB / 0.6128 GB, free: 7.277 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.6145, allocations: 4 kB / 0.6128 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.688e-05/0.6146, allocations: 11.97 kB / 0.6128 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01313/0.6277, allocations: 5.916 MB / 0.6186 GB, free: 1.273 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/0.6277, allocations: 4 kB / 0.6186 GB, free: 1.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008718/0.6286, allocations: 163.8 kB / 0.6188 GB, free: 1.109 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/0.6309, allocations: 0.7177 MB / 0.6195 GB, free: 400 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.631, allocations: 24 kB / 0.6195 GB, free: 376 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006303/0.6373, allocations: 4.814 MB / 0.6242 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.6373, allocations: 7.969 kB / 0.6242 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006917/0.6442, allocations: 4.314 MB / 0.6284 GB, free: 7.051 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.6454, allocations: 361 kB / 0.6288 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006293/0.6461, allocations: 24 kB / 0.6288 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.6474, allocations: 79.88 kB / 0.6289 GB, free: 6.574 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.6476, allocations: 64.52 kB / 0.6289 GB, free: 6.512 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6477, allocations: 35.98 kB / 0.629 GB, free: 6.477 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004242/0.652, allocations: 2.319 MB / 0.6312 GB, free: 4.172 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.652, allocations: 0 / 0.6312 GB, free: 4.172 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004782/0.6568, allocations: 0.8216 MB / 0.632 GB, free: 3.355 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * Array equations: 3 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004801/0.6573, allocations: 152.5 kB / 0.6322 GB, free: 3.203 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006581/0.6639, allocations: 4.057 MB / 0.6361 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.6639, allocations: 1.25 kB / 0.6361 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.6654, allocations: 1.119 MB / 0.6372 GB, free: 14.02 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.668, allocations: 385.8 kB / 0.6376 GB, free: 13.64 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.6826, allocations: 7.253 MB / 0.6447 GB, free: 6.359 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004353/0.687, allocations: 2.785 MB / 0.6474 GB, free: 3.551 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004204/0.6912, allocations: 1.656 MB / 0.649 GB, free: 1.891 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008501/0.692, allocations: 215.4 kB / 0.6492 GB, free: 1.684 MB / 478.1 MB Notification: Performance of SimCode: time 8.61e-07/0.6921, allocations: 0 / 0.6492 GB, free: 1.684 MB / 478.1 MB Notification: Performance of Templates: time 0.05481/0.7469, allocations: 26.17 MB / 0.6748 GB, free: 7.641 MB / 0.4981 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches