Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 104.5 kB / 17.59 MB, free: 5.43 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.001285/0.001285, allocations: 191.6 kB / 18.52 MB, free: 4.508 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.456/1.456, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 42.05 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08411/0.08525, allocations: 49.45 MB / 350.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.0107/0.09599, allocations: 9.011 MB / 359.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006215/0.1023, allocations: 2.667 MB / 362.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001689/0.104, allocations: 51.88 kB / 362.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004049/0.1081, allocations: 1.81 MB / 364.3 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003761/0.1119, allocations: 1.33 MB / 365.6 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007388/0.1127, allocations: 207.6 kB / 365.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003466/0.1162, allocations: 2.369 MB / 368.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003212/0.1194, allocations: 2.118 MB / 370.3 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1726/0.292, allocations: 1 MB / 371.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004264/0.2964, allocations: 2.334 MB / 373.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00108/0.2975, allocations: 187.6 kB / 373.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001661/0.2992, allocations: 494.3 kB / 374.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001624/0.3008, allocations: 1.297 MB / 375.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002109/0.3029, allocations: 1.585 MB / 377.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006994/0.3099, allocations: 4.626 MB / 381.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.31, allocations: 4.594 kB / 381.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.31, allocations: 4 kB / 381.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002145/0.3102, allocations: 0 / 381.8 MB, free: 9.348 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.009963/0.3202, allocations: 3.63 MB / 385.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.3203, allocations: 9.688 kB / 385.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00602/0.3263, allocations: 1.65 MB / 387.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003875/0.3302, allocations: 1.553 MB / 388.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.3304, allocations: 160.7 kB / 388.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007133/0.3311, allocations: 197.7 kB / 389 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01145/0.3425, allocations: 6.98 MB / 396 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.483e-05/0.3427, allocations: 26.53 kB / 396 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002992/0.343, allocations: 100.5 kB / 396.1 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002052/0.345, allocations: 1.559 MB / 397.7 MB, free: 1.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01056/0.3556, allocations: 5.488 MB / 403.2 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03659/0.3922, allocations: 27.24 MB / 430.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003301/0.3956, allocations: 1.638 MB / 432 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000889/0.3965, allocations: 0.5 MB / 432.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005527/0.4021, allocations: 2.676 MB / 435.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.4022, allocations: 49.88 kB / 435.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 4.829e-06/0.4022, allocations: 0 / 435.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.004518/0.4067, allocations: 1.752 MB / 437 MB, free: 10.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.4069, allocations: 223.4 kB / 437.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008394/0.4153, allocations: 3.665 MB / 440.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001629/0.4155, allocations: 37.7 kB / 440.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002786/0.4183, allocations: 2.686 MB / 443.6 MB, free: 3.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006815/0.419, allocations: 396.8 kB / 444 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002069/0.421, allocations: 0.9559 MB / 445 MB, free: 2.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4212, allocations: 304.3 kB / 445.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002213/0.4234, allocations: 1.204 MB / 446.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004788/0.4282, allocations: 4.527 MB / 451 MB, free: 10.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008131/0.4364, allocations: 6.291 MB / 457.3 MB, free: 3.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001425/0.4365, allocations: 36 kB / 457.3 MB, free: 3.395 MB / 366.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01201/0.4486, allocations: 5.449 MB / 462.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.4487, allocations: 56 kB / 462.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000214/0.449, allocations: 120 kB / 462.9 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001804/0.4492, allocations: 156.9 kB / 463.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003693/0.4529, allocations: 1.084 MB / 464.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002255/0.4531, allocations: 235.1 kB / 464.4 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004289/0.4574, allocations: 0.6805 MB / 465.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008007/0.4582, allocations: 318.5 kB / 465.4 MB, free: 11.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (589): * Single equations (assignments): 585 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003721/0.4619, allocations: 1.708 MB / 467.1 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007598/0.4627, allocations: 304 kB / 467.4 MB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.4642, allocations: 494.3 kB / 467.9 MB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.856e-05/0.4643, allocations: 20 kB / 467.9 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.4643, allocations: 7.562 kB / 467.9 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.4643, allocations: 3.984 kB / 467.9 MB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009034/0.4734, allocations: 3.15 MB / 471.1 MB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/0.4734, allocations: 4.281 kB / 471.1 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006221/0.4741, allocations: 111.8 kB / 471.2 MB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.43e-05/0.4741, allocations: 8 kB / 471.2 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.761e-05/0.4742, allocations: 16 kB / 471.2 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.085e-05/0.4742, allocations: 7.984 kB / 471.2 MB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.4742, allocations: 15.88 kB / 471.2 MB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002966/0.4772, allocations: 2.212 MB / 473.4 MB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/0.4784, allocations: 420.9 kB / 473.8 MB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006993/0.4791, allocations: 27.2 kB / 473.9 MB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.4804, allocations: 31.97 kB / 473.9 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.4806, allocations: 47.89 kB / 473.9 MB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.497e-05/0.4807, allocations: 31.98 kB / 474 MB, free: 2.566 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005728/0.4864, allocations: 2.337 MB / 476.3 MB, free: 252 kB / 382.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.4865, allocations: 0 / 476.3 MB, free: 252 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.005334/0.4918, allocations: 0.8139 MB / 477.1 MB, free: 15.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 2 (prismatic.v,position.s) * 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 (58): * Single equations (assignments): 54 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005037/0.4923, allocations: 155.7 kB / 477.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005707/0.4981, allocations: 2.895 MB / 480.2 MB, free: 12.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/0.4981, allocations: 4 kB / 480.2 MB, free: 12.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006837/0.4988, allocations: 446.7 kB / 480.6 MB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003291/0.5021, allocations: 376.1 kB / 481 MB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/0.5186, allocations: 7.13 MB / 488.1 MB, free: 4.402 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004817/0.5235, allocations: 2.683 MB / 490.8 MB, free: 1.695 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008173/0.5243, allocations: 235.4 kB / 491 MB, free: 1.465 MB / 398.1 MB Notification: Performance of SimCode: time 2.545e-06/0.5243, allocations: 0 / 491 MB, free: 1.465 MB / 398.1 MB Notification: Performance of Templates: time 0.07769/0.602, allocations: 43.53 MB / 0.522 GB, free: 6.023 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Surfaces/Surfaces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches