Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.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.Visualizers.Torus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|torus1.surface.nu|torus1.surface.nv|torus2.surface.nu|torus2.surface.nv",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus") translateModel(ModelicaTest.MultiBody.Visualizers.Torus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|torus1.surface.nu|torus1.surface.nv|torus2.surface.nu|torus2.surface.nv",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2081/0.2081, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 75.92 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1139, allocations: 62.45 MB / 481.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.0111/0.125, allocations: 11.24 MB / 492.7 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005124/0.1302, allocations: 2.815 MB / 495.5 MB, free: 6.406 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008759/0.1311, allocations: 55.88 kB / 495.6 MB, free: 6.352 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002238/0.1333, allocations: 1.339 MB / 496.9 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002024/0.1354, allocations: 1.206 MB / 498.1 MB, free: 3.797 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.1357, allocations: 79.84 kB / 498.2 MB, free: 3.719 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00256/0.1382, allocations: 2.721 MB / 0.4892 GB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.1401, allocations: 1.844 MB / 0.491 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.1413, allocations: 1.043 MB / 0.492 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.1428, allocations: 1.444 MB / 0.4934 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003119/0.1431, allocations: 211.9 kB / 0.4936 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008274/0.144, allocations: 499.3 kB / 0.4941 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.145, allocations: 1.379 MB / 0.4954 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.1463, allocations: 1.696 MB / 0.4971 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004659/0.151, allocations: 5.436 MB / 0.5024 GB, free: 3.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.151, allocations: 4 kB / 0.5024 GB, free: 3.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.151, allocations: 0 / 0.5024 GB, free: 3.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001033/0.1511, allocations: 0 / 0.5024 GB, free: 3.371 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: 1443 * Number of variables: 1443 Notification: Performance of Generate backend data structure: time 0.216/0.3671, allocations: 3.564 MB / 0.5059 GB, free: 39.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/0.3672, allocations: 9.469 kB / 0.5059 GB, free: 39.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.011/0.3782, allocations: 2.94 MB / 0.5087 GB, free: 39.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004539/0.3828, allocations: 1.528 MB / 0.5102 GB, free: 38.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000259/0.383, allocations: 173.4 kB / 0.5104 GB, free: 38.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00135/0.3844, allocations: 223.2 kB / 0.5106 GB, free: 38.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.022/0.4064, allocations: 9.466 MB / 0.5199 GB, free: 34.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001158/0.4066, allocations: 18.72 kB / 0.5199 GB, free: 34.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001015/0.4076, allocations: 111.9 kB / 0.52 GB, free: 34.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004116/0.4117, allocations: 2.382 MB / 0.5223 GB, free: 33.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01531/0.4271, allocations: 8.67 MB / 0.5308 GB, free: 27.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03748/0.4646, allocations: 29.08 MB / 0.5592 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005573/0.4702, allocations: 3.046 MB / 0.5622 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.472, allocations: 0.989 MB / 0.5631 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009103/0.4811, allocations: 4.832 MB / 0.5678 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.4812, allocations: 39.22 kB / 0.5679 GB, free: 3.812 MB / 398.1 MB Notification: Performance of pre-optimization done (n=126): time 4.398e-06/0.4812, allocations: 4 kB / 0.5679 GB, free: 3.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=126): time 0.005935/0.4871, allocations: 2.735 MB / 0.5705 GB, free: 1.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.4872, allocations: 60.06 kB / 0.5706 GB, free: 1 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00468/0.4919, allocations: 2.561 MB / 0.5731 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.492, allocations: 37.7 kB / 0.5731 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002286/0.4943, allocations: 2.649 MB / 0.5757 GB, free: 11.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005302/0.4949, allocations: 497.6 kB / 0.5762 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/0.4961, allocations: 0.9006 MB / 0.5771 GB, free: 10.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.4962, allocations: 361.9 kB / 0.5774 GB, free: 9.914 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/0.4982, allocations: 1.352 MB / 0.5787 GB, free: 8.555 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003929/0.5022, allocations: 4.122 MB / 0.5828 GB, free: 3.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006353/0.5085, allocations: 5.96 MB / 0.5886 GB, free: 11.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-05/0.5086, allocations: 28 kB / 0.5886 GB, free: 11.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.00873/0.5174, allocations: 5.282 MB / 0.5938 GB, free: 6.391 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.973e-05/0.5175, allocations: 47.94 kB / 0.5938 GB, free: 6.344 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001416/0.5176, allocations: 103.9 kB / 0.5939 GB, free: 6.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001426/0.5178, allocations: 128 kB / 0.594 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002938/0.5207, allocations: 0.9747 MB / 0.595 GB, free: 5.141 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001696/0.5209, allocations: 195.2 kB / 0.5952 GB, free: 4.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003256/0.5242, allocations: 0.6113 MB / 0.5958 GB, free: 4.332 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005952/0.5248, allocations: 272 kB / 0.596 GB, free: 4.066 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 21 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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 (540): * Single equations (assignments): 534 * Array equations: 6 * 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.004178/0.529, allocations: 1.887 MB / 0.5979 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005478/0.5295, allocations: 217.2 kB / 0.5981 GB, free: 1.949 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006517/0.5302, allocations: 271.3 kB / 0.5983 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.477e-05/0.5303, allocations: 19.98 kB / 0.5984 GB, free: 1.66 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/0.5303, allocations: 0 / 0.5984 GB, free: 1.66 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.5303, allocations: 7.984 kB / 0.5984 GB, free: 1.652 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01249/0.5428, allocations: 5.61 MB / 0.6039 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.5429, allocations: 6.812 kB / 0.6039 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005764/0.5434, allocations: 143.7 kB / 0.604 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.5435, allocations: 8 kB / 0.604 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.929e-05/0.5435, allocations: 20 kB / 0.604 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/0.5435, allocations: 8 kB / 0.604 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.5436, allocations: 7.938 kB / 0.604 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.5457, allocations: 1.796 MB / 0.6058 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004746/0.5461, allocations: 282.1 kB / 0.6061 GB, free: 9.566 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001881/0.5463, allocations: 16 kB / 0.6061 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00054/0.5469, allocations: 39.95 kB / 0.6061 GB, free: 9.512 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.547, allocations: 64.38 kB / 0.6062 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.757e-05/0.5471, allocations: 39.98 kB / 0.6062 GB, free: 9.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002024/0.5491, allocations: 1.556 MB / 0.6077 GB, free: 7.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5491, allocations: 4 kB / 0.6077 GB, free: 7.836 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003468/0.5526, allocations: 0.9847 MB / 0.6087 GB, free: 6.852 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * 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 (78): * Single equations (assignments): 72 * Array equations: 6 * 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.0003454/0.553, allocations: 149.7 kB / 0.6088 GB, free: 6.699 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004582/0.5576, allocations: 3.154 MB / 0.6119 GB, free: 3.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.535e-06/0.5576, allocations: 4 kB / 0.6119 GB, free: 3.566 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008325/0.5584, allocations: 0.7386 MB / 0.6126 GB, free: 2.832 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.5596, allocations: 259.9 kB / 0.6129 GB, free: 2.586 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.5715, allocations: 7.157 MB / 0.6199 GB, free: 11.35 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003156/0.5748, allocations: 2.958 MB / 0.6228 GB, free: 8.363 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00302/0.5778, allocations: 1.491 MB / 0.6242 GB, free: 6.867 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003627/0.5782, allocations: 151.4 kB / 0.6244 GB, free: 6.719 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5782, allocations: 0 / 0.6244 GB, free: 6.719 MB / 462.1 MB Notification: Performance of Templates: time 0.03504/0.6132, allocations: 14.92 MB / 0.6389 GB, free: 7.863 MB / 478.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Visualizers/Torus/Torus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches