Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization") translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.217/0.217, allocations: 46.12 MB / 343.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 76.25 kB / 416.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1291, allocations: 62.44 MB / 479.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.03704/0.1662, allocations: 34.5 MB / 0.5018 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3327/0.4989, allocations: 7.822 MB / 0.5094 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009378/0.5083, allocations: 145.3 kB / 0.5095 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00532/0.5137, allocations: 1.915 MB / 0.5114 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00565/0.5194, allocations: 1.528 MB / 0.5129 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002132/0.5216, allocations: 0.5476 MB / 0.5134 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009565/0.5311, allocations: 4.778 MB / 0.5181 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004461/0.5356, allocations: 2.539 MB / 0.5206 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002654/0.5383, allocations: 1.095 MB / 0.5216 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0032/0.5415, allocations: 1.791 MB / 0.5234 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006901/0.5423, allocations: 176.1 kB / 0.5236 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002563/0.5448, allocations: 0.996 MB / 0.5245 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001534/0.5464, allocations: 1.497 MB / 0.526 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001756/0.5481, allocations: 1.751 MB / 0.5277 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00738/0.5555, allocations: 5.523 MB / 0.5331 GB, free: 2.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.5556, allocations: 9.906 kB / 0.5331 GB, free: 2.316 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5556, allocations: 0 / 0.5331 GB, free: 2.316 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001692/0.5558, allocations: 0 / 0.5331 GB, free: 2.316 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.009468/0.5652, allocations: 3.989 MB / 0.537 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.997e-05/0.5653, allocations: 17.12 kB / 0.537 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006594/0.5719, allocations: 1.772 MB / 0.5387 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004577/0.5765, allocations: 1.877 MB / 0.5406 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.5767, allocations: 195.2 kB / 0.5408 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006628/0.5774, allocations: 250 kB / 0.541 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/0.5975, allocations: 8.458 MB / 0.5493 GB, free: 4.711 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002142/0.5978, allocations: 39.59 kB / 0.5493 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001087/0.5989, allocations: 125.4 kB / 0.5494 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003254/0.6021, allocations: 1.7 MB / 0.5511 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01686/0.619, allocations: 7.113 MB / 0.558 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05165/0.6707, allocations: 34.15 MB / 0.5914 GB, free: 8.812 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008438/0.6792, allocations: 3.304 MB / 0.5946 GB, free: 5.355 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002237/0.6815, allocations: 1.458 MB / 0.596 GB, free: 3.883 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007887/0.6894, allocations: 4.436 MB / 0.6004 GB, free: 15.24 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.631e-05/0.6895, allocations: 55 kB / 0.6004 GB, free: 15.18 MB / 462.1 MB Notification: Performance of pre-optimization done (n=121): time 3.797e-06/0.6895, allocations: 4 kB / 0.6004 GB, free: 15.17 MB / 462.1 MB Notification: Performance of matching and sorting (n=129): time 0.03209/0.7216, allocations: 11.56 MB / 0.6117 GB, free: 3.473 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.7218, allocations: 170.9 kB / 0.6119 GB, free: 3.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008549/0.7304, allocations: 3.712 MB / 0.6155 GB, free: 15.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003323/0.7307, allocations: 44.91 kB / 0.6155 GB, free: 15.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002719/0.7335, allocations: 2.746 MB / 0.6182 GB, free: 12.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008157/0.7343, allocations: 0.5218 MB / 0.6187 GB, free: 12.26 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002534/0.7368, allocations: 1.079 MB / 0.6198 GB, free: 11.17 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.737, allocations: 305.1 kB / 0.6201 GB, free: 10.87 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003336/0.7403, allocations: 1.716 MB / 0.6217 GB, free: 9.145 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006804/0.7472, allocations: 5.131 MB / 0.6267 GB, free: 2.285 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.7572, allocations: 7.423 MB / 0.634 GB, free: 9.156 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001293/0.7574, allocations: 32 kB / 0.634 GB, free: 9.125 MB / 494.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.013/0.7704, allocations: 6.734 MB / 0.6406 GB, free: 2.379 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.7705, allocations: 56 kB / 0.6407 GB, free: 2.324 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000213/0.7708, allocations: 124 kB / 0.6408 GB, free: 2.203 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007338/0.7715, allocations: 325.4 kB / 0.6411 GB, free: 1.883 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004021/0.7756, allocations: 1.244 MB / 0.6423 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/0.7782, allocations: 2.287 MB / 0.6445 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004146/0.7824, allocations: 295.5 kB / 0.6448 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008105/0.7832, allocations: 332 kB / 0.6451 GB, free: 13.6 MB / 0.4981 GB 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.003777/0.787, allocations: 1.791 MB / 0.6469 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007649/0.7878, allocations: 308 kB / 0.6472 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005029/0.7928, allocations: 2.367 MB / 0.6495 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.02e-05/0.7929, allocations: 16 kB / 0.6495 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.7929, allocations: 7.938 kB / 0.6495 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.7929, allocations: 3.984 kB / 0.6495 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01426/0.8072, allocations: 5.938 MB / 0.6553 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.8072, allocations: 0 / 0.6553 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000902/0.8081, allocations: 175.7 kB / 0.6555 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002395/0.8106, allocations: 0.7108 MB / 0.6562 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001703/0.8107, allocations: 24.47 kB / 0.6562 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006348/0.8171, allocations: 4.468 MB / 0.6606 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.8171, allocations: 4.062 kB / 0.6606 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007689/0.8248, allocations: 4.339 MB / 0.6648 GB, free: 9.219 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/0.8263, allocations: 364.9 kB / 0.6651 GB, free: 8.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001037/0.8274, allocations: 27.94 kB / 0.6652 GB, free: 8.812 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/0.829, allocations: 67.91 kB / 0.6652 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.8293, allocations: 72.5 kB / 0.6653 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.8294, allocations: 36.06 kB / 0.6653 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005563/0.8349, allocations: 2.319 MB / 0.6676 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.835, allocations: 0 / 0.6676 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006066/0.841, allocations: 0.8114 MB / 0.6684 GB, free: 5.527 MB / 0.5137 GB 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.0005662/0.8416, allocations: 150.1 kB / 0.6685 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007323/0.8489, allocations: 4.038 MB / 0.6725 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.849, allocations: 0 / 0.6725 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.8507, allocations: 1.115 MB / 0.6736 GB, free: 228 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003457/0.8542, allocations: 377.7 kB / 0.6739 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/0.87, allocations: 8.951 MB / 0.6827 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003805/0.8739, allocations: 2.773 MB / 0.6854 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004226/0.8781, allocations: 1.656 MB / 0.687 GB, free: 2.414 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008011/0.8789, allocations: 215.3 kB / 0.6872 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of SimCode: time 9.62e-07/0.879, allocations: 0 / 0.6872 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of Templates: time 0.3232/1.202, allocations: 29.74 MB / 0.7162 GB, free: 191.3 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches