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.0008366/0.0008366, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000929/0.0009291, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 247.5 MB, free: 11.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.193/0.193, allocations: 46.19 MB / 345.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002902/0.0002902, allocations: 8 kB / 420.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1289, allocations: 63.56 MB / 483.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.02968/0.1586, allocations: 33.5 MB / 0.5051 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.264/0.4226, allocations: 7.758 MB / 0.5127 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007756/0.4304, allocations: 146.6 kB / 0.5128 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.4321, allocations: 371.5 kB / 0.5132 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005161/0.4373, allocations: 1.542 MB / 0.5147 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.439, allocations: 0.5521 MB / 0.5152 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007469/0.4465, allocations: 4.765 MB / 0.5199 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005557/0.4521, allocations: 3.273 MB / 0.5231 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002233/0.4544, allocations: 0.9517 MB / 0.524 GB, free: 9.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002793/0.4572, allocations: 1.605 MB / 0.5256 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005356/0.4578, allocations: 112.6 kB / 0.5257 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002332/0.4601, allocations: 0.9347 MB / 0.5266 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00159/0.4617, allocations: 1.403 MB / 0.528 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00186/0.4636, allocations: 1.673 MB / 0.5296 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004713/0.4683, allocations: 4.396 MB / 0.5339 GB, free: 3.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4683, allocations: 0 / 0.5339 GB, free: 3.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4684, allocations: 0 / 0.5339 GB, free: 3.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000206/0.4686, allocations: 2.688 kB / 0.5339 GB, free: 3.508 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.007171/0.4757, allocations: 3.279 MB / 0.5371 GB, free: 1.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.4758, allocations: 11.03 kB / 0.5371 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006209/0.482, allocations: 1.825 MB / 0.5389 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004548/0.4866, allocations: 1.886 MB / 0.5407 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.4868, allocations: 190.2 kB / 0.5409 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006273/0.4874, allocations: 257 kB / 0.5411 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01654/0.504, allocations: 8.469 MB / 0.5494 GB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.5041, allocations: 43.58 kB / 0.5495 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003516/0.5045, allocations: 128 kB / 0.5496 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002835/0.5073, allocations: 1.699 MB / 0.5512 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01425/0.5216, allocations: 7.122 MB / 0.5582 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04318/0.5648, allocations: 34.15 MB / 0.5915 GB, free: 11.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007838/0.5727, allocations: 3.3 MB / 0.5948 GB, free: 7.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/0.5749, allocations: 1.459 MB / 0.5962 GB, free: 6.352 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007494/0.5824, allocations: 4.457 MB / 0.6005 GB, free: 1.688 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.832e-05/0.5825, allocations: 43.12 kB / 0.6006 GB, free: 1.637 MB / 446.1 MB Notification: Performance of pre-optimization done (n=121): time 5.22e-06/0.5825, allocations: 0 / 0.6006 GB, free: 1.637 MB / 446.1 MB Notification: Performance of matching and sorting (n=129): time 0.03133/0.6139, allocations: 11.54 MB / 0.6119 GB, free: 5.949 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.52e-05/0.614, allocations: 166.9 kB / 0.612 GB, free: 5.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00677/0.6208, allocations: 3.713 MB / 0.6156 GB, free: 2.043 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002501/0.6211, allocations: 45.7 kB / 0.6157 GB, free: 1.992 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002565/0.6236, allocations: 2.743 MB / 0.6184 GB, free: 15.25 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008155/0.6245, allocations: 0.5269 MB / 0.6189 GB, free: 14.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009125/0.6254, allocations: 461.7 kB / 0.6193 GB, free: 14.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.6255, allocations: 309 kB / 0.6196 GB, free: 13.96 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003085/0.6286, allocations: 1.712 MB / 0.6213 GB, free: 12.25 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005523/0.6342, allocations: 5.135 MB / 0.6263 GB, free: 5.383 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009389/0.6436, allocations: 7.428 MB / 0.6336 GB, free: 12.25 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000138/0.6438, allocations: 36.28 kB / 0.6336 GB, free: 12.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01356/0.6573, allocations: 6.73 MB / 0.6402 GB, free: 5.473 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000146/0.6575, allocations: 56.09 kB / 0.6402 GB, free: 5.418 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000221/0.6578, allocations: 127.9 kB / 0.6403 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007357/0.6585, allocations: 325.4 kB / 0.6406 GB, free: 4.973 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004134/0.6627, allocations: 1.251 MB / 0.6419 GB, free: 3.719 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00261/0.6653, allocations: 2.287 MB / 0.6441 GB, free: 1.297 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004016/0.6693, allocations: 299.5 kB / 0.6444 GB, free: 1.004 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008866/0.6702, allocations: 334.2 kB / 0.6447 GB, free: 0.6797 MB / 494.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.003784/0.674, allocations: 1.787 MB / 0.6465 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006818/0.6747, allocations: 312 kB / 0.6468 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005278/0.68, allocations: 2.363 MB / 0.6491 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.655e-05/0.6801, allocations: 16 kB / 0.6491 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.01e-05/0.6801, allocations: 11.94 kB / 0.6491 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.832e-05/0.6801, allocations: 3.984 kB / 0.6491 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/0.6933, allocations: 5.95 MB / 0.6549 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/0.6934, allocations: 4 kB / 0.6549 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008575/0.6942, allocations: 175.7 kB / 0.6551 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00223/0.6965, allocations: 0.7147 MB / 0.6558 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.6967, allocations: 24.12 kB / 0.6558 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006143/0.7028, allocations: 4.472 MB / 0.6602 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7028, allocations: 0 / 0.6602 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007364/0.7102, allocations: 4.343 MB / 0.6644 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.7114, allocations: 368.9 kB / 0.6648 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007765/0.7122, allocations: 19.94 kB / 0.6648 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/0.7138, allocations: 87.95 kB / 0.6649 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.714, allocations: 64.56 kB / 0.6649 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.7142, allocations: 30.34 kB / 0.6649 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005081/0.7192, allocations: 2.319 MB / 0.6672 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7193, allocations: 3.938 kB / 0.6672 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005189/0.7245, allocations: 0.8086 MB / 0.668 GB, free: 8.578 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.0005098/0.725, allocations: 154.4 kB / 0.6682 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007065/0.7321, allocations: 4.042 MB / 0.6721 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.7321, allocations: 1.25 kB / 0.6721 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001735/0.7338, allocations: 1.124 MB / 0.6732 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003411/0.7372, allocations: 361.5 kB / 0.6735 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/0.7534, allocations: 9.393 MB / 0.6827 GB, free: 9.461 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004319/0.7578, allocations: 2.789 MB / 0.6854 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.759, allocations: 251.4 kB / 0.6857 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of SimCode: time 1.112e-06/0.759, allocations: 7.875 kB / 0.6857 GB, free: 6.395 MB / 0.5294 GB Notification: Performance of Templates: time 0.2955/1.054, allocations: 63.07 MB / 0.7473 GB, free: 172.8 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/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_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches