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.001197/0.001197, allocations: 108.8 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.4 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.2213/0.2213, allocations: 46.11 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 74.92 kB / 417 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1183, allocations: 62.44 MB / 479.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.02589/0.1443, allocations: 28.53 MB / 0.4961 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01191/0.1562, allocations: 5.55 MB / 0.5015 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004095/0.1603, allocations: 115.8 kB / 0.5016 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.1628, allocations: 1.262 MB / 0.5029 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00222/0.1651, allocations: 1.133 MB / 0.504 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.1654, allocations: 67.92 kB / 0.504 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2299/0.3952, allocations: 2.738 MB / 0.5067 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003593/0.3989, allocations: 1.934 MB / 0.5086 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.4014, allocations: 1.047 MB / 0.5096 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002706/0.4042, allocations: 1.589 MB / 0.5112 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008205/0.405, allocations: 208 kB / 0.5114 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001683/0.4067, allocations: 0.4948 MB / 0.5118 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002077/0.4088, allocations: 1.401 MB / 0.5132 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00231/0.4111, allocations: 1.71 MB / 0.5149 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007151/0.4183, allocations: 5.183 MB / 0.5199 GB, free: 8.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.4183, allocations: 0 / 0.5199 GB, free: 8.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.756e-06/0.4183, allocations: 0 / 0.5199 GB, free: 8.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002257/0.4186, allocations: 4 kB / 0.52 GB, free: 8.809 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.01003/0.4286, allocations: 3.567 MB / 0.5234 GB, free: 6.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.4287, allocations: 13.22 kB / 0.5234 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009691/0.4384, allocations: 2.935 MB / 0.5263 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004057/0.4425, allocations: 1.526 MB / 0.5278 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.4427, allocations: 173.2 kB / 0.528 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009399/0.4437, allocations: 221.7 kB / 0.5282 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01466/0.4583, allocations: 9.475 MB / 0.5374 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.842e-05/0.4584, allocations: 16.38 kB / 0.5374 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003267/0.4588, allocations: 108.1 kB / 0.5376 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003775/0.4625, allocations: 2.373 MB / 0.5399 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.4802, allocations: 8.677 MB / 0.5483 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04608/0.5263, allocations: 29.29 MB / 0.577 GB, free: 8.59 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005638/0.532, allocations: 3.05 MB / 0.5799 GB, free: 5.316 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.5336, allocations: 0.9843 MB / 0.5809 GB, free: 4.328 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009569/0.5432, allocations: 4.839 MB / 0.5856 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/0.5433, allocations: 44.28 kB / 0.5857 GB, free: 15.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=126): time 6.983e-06/0.5433, allocations: 0 / 0.5857 GB, free: 15.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=126): time 0.006563/0.5499, allocations: 2.735 MB / 0.5883 GB, free: 12.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.55, allocations: 60.06 kB / 0.5884 GB, free: 12.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004134/0.5541, allocations: 2.567 MB / 0.5909 GB, free: 9.816 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.811e-05/0.5542, allocations: 37.7 kB / 0.5909 GB, free: 9.773 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/0.5561, allocations: 2.644 MB / 0.5935 GB, free: 7.129 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004783/0.5566, allocations: 498.5 kB / 0.594 GB, free: 6.648 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001155/0.5578, allocations: 0.9043 MB / 0.5949 GB, free: 5.734 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.558, allocations: 357.9 kB / 0.5952 GB, free: 5.379 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/0.56, allocations: 1.355 MB / 0.5965 GB, free: 4.016 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003992/0.564, allocations: 4.119 MB / 0.6006 GB, free: 14.56 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006014/0.57, allocations: 5.964 MB / 0.6064 GB, free: 7.621 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.925e-05/0.57, allocations: 28 kB / 0.6064 GB, free: 7.594 MB / 462.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.007659/0.5777, allocations: 5.284 MB / 0.6116 GB, free: 2.711 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-05/0.5778, allocations: 48 kB / 0.6116 GB, free: 2.664 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001024/0.5779, allocations: 99.94 kB / 0.6117 GB, free: 2.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001165/0.578, allocations: 132 kB / 0.6118 GB, free: 2.438 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/0.5805, allocations: 0.9747 MB / 0.6128 GB, free: 1.461 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001351/0.5807, allocations: 191.3 kB / 0.613 GB, free: 1.273 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/0.5834, allocations: 0.603 MB / 0.6136 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003338/0.5838, allocations: 286.9 kB / 0.6138 GB, free: 396 kB / 462.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.003688/0.5875, allocations: 1.892 MB / 0.6157 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003418/0.5878, allocations: 213.1 kB / 0.6159 GB, free: 14.27 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005423/0.5884, allocations: 267.3 kB / 0.6161 GB, free: 14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.229e-05/0.5884, allocations: 20.36 kB / 0.6162 GB, free: 13.99 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.5884, allocations: 3.984 kB / 0.6162 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.5884, allocations: 0 / 0.6162 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009016/0.5975, allocations: 5.61 MB / 0.6216 GB, free: 8.266 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.5975, allocations: 4 kB / 0.6216 GB, free: 8.262 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005393/0.598, allocations: 135.8 kB / 0.6218 GB, free: 8.129 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.228e-05/0.5981, allocations: 16.48 kB / 0.6218 GB, free: 8.113 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.889e-05/0.5981, allocations: 23.59 kB / 0.6218 GB, free: 8.094 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.5981, allocations: 8 kB / 0.6218 GB, free: 8.086 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.5982, allocations: 8 kB / 0.6218 GB, free: 8.078 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.6003, allocations: 1.788 MB / 0.6236 GB, free: 6.219 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004839/0.6008, allocations: 286 kB / 0.6238 GB, free: 5.918 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00022/0.601, allocations: 23.98 kB / 0.6239 GB, free: 5.895 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005548/0.6016, allocations: 39.48 kB / 0.6239 GB, free: 5.859 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.6017, allocations: 68.2 kB / 0.624 GB, free: 5.797 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.104e-05/0.6018, allocations: 40 kB / 0.624 GB, free: 5.758 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002502/0.6043, allocations: 1.56 MB / 0.6255 GB, free: 4.184 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6043, allocations: 0 / 0.6255 GB, free: 4.184 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004029/0.6084, allocations: 0.9859 MB / 0.6265 GB, free: 3.195 MB / 478.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.0005558/0.6089, allocations: 141.8 kB / 0.6266 GB, free: 3.051 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007365/0.6163, allocations: 3.959 MB / 0.6305 GB, free: 15.11 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/0.6164, allocations: 1.938 kB / 0.6305 GB, free: 15.11 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.6174, allocations: 0.7346 MB / 0.6312 GB, free: 14.38 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.619, allocations: 263 kB / 0.6315 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/0.6343, allocations: 9.145 MB / 0.6404 GB, free: 4.902 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003257/0.6376, allocations: 2.958 MB / 0.6433 GB, free: 1.918 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00346/0.6411, allocations: 1.488 MB / 0.6447 GB, free: 432 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004143/0.6416, allocations: 163.4 kB / 0.6449 GB, free: 268 kB / 494.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6416, allocations: 3.938 kB / 0.6449 GB, free: 264 kB / 494.1 MB Notification: Performance of Templates: time 0.03626/0.6778, allocations: 18.37 MB / 0.6628 GB, free: 14.03 MB / 0.5137 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Visualizers/Torus/Torus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches