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.0009628/0.0009625, allocations: 102.4 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 192.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.7 MB / 246.4 MB, free: 11.53 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.19 MB / 344.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000282/0.0002822, allocations: 8 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1497, allocations: 63.57 MB / 482.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.02551/0.1753, allocations: 25.71 MB / 0.4962 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01425/0.1896, allocations: 5.298 MB / 0.5014 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006807/0.1965, allocations: 115.8 kB / 0.5015 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004591/0.2011, allocations: 1.256 MB / 0.5027 GB, free: 4.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01174/0.2129, allocations: 3.487 MB / 0.5061 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.2144, allocations: 75.92 kB / 0.5062 GB, free: 488 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2825/0.497, allocations: 3.024 MB / 0.5091 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004009/0.501, allocations: 2.138 MB / 0.5112 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.5029, allocations: 0.8848 MB / 0.5121 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002097/0.505, allocations: 1.376 MB / 0.5134 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003886/0.5054, allocations: 117.9 kB / 0.5136 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001014/0.5064, allocations: 378.9 kB / 0.5139 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001304/0.5077, allocations: 1.263 MB / 0.5152 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007117/0.5084, allocations: 0.6792 MB / 0.5158 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005038/0.5135, allocations: 4.121 MB / 0.5198 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.5135, allocations: 0 / 0.5198 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.5135, allocations: 1.125 kB / 0.5198 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001531/0.5137, allocations: 0 / 0.5198 GB, free: 10.75 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.005372/0.5191, allocations: 2.941 MB / 0.5227 GB, free: 9.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.5191, allocations: 11.81 kB / 0.5227 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009157/0.5283, allocations: 3.027 MB / 0.5257 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003289/0.5316, allocations: 1.51 MB / 0.5272 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.5317, allocations: 171.6 kB / 0.5273 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005207/0.5323, allocations: 220.6 kB / 0.5275 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01424/0.5465, allocations: 9.45 MB / 0.5368 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-05/0.5466, allocations: 18.44 kB / 0.5368 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003498/0.547, allocations: 110.4 kB / 0.5369 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003488/0.5505, allocations: 2.372 MB / 0.5392 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.5648, allocations: 8.627 MB / 0.5476 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04671/0.6115, allocations: 29.3 MB / 0.5762 GB, free: 2.297 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00568/0.6173, allocations: 3.046 MB / 0.5792 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/0.6191, allocations: 0.9726 MB / 0.5802 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01094/0.6301, allocations: 4.847 MB / 0.5849 GB, free: 8.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.772e-05/0.6302, allocations: 35.22 kB / 0.5849 GB, free: 8.938 MB / 430.1 MB Notification: Performance of pre-optimization done (n=126): time 5.36e-06/0.6302, allocations: 4 kB / 0.5849 GB, free: 8.934 MB / 430.1 MB Notification: Performance of matching and sorting (n=126): time 0.006789/0.637, allocations: 2.728 MB / 0.5876 GB, free: 6.199 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.6371, allocations: 58.03 kB / 0.5877 GB, free: 6.133 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00557/0.6427, allocations: 2.543 MB / 0.5901 GB, free: 3.562 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.6429, allocations: 37.53 kB / 0.5902 GB, free: 3.523 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002313/0.6452, allocations: 2.651 MB / 0.5928 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000654/0.6458, allocations: 492.9 kB / 0.5932 GB, free: 412 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.6461, allocations: 87.67 kB / 0.5933 GB, free: 328 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000415/0.6465, allocations: 0.5437 MB / 0.5938 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002161/0.6487, allocations: 1.344 MB / 0.5952 GB, free: 14.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004311/0.653, allocations: 4.105 MB / 0.5992 GB, free: 8.926 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003907/0.6569, allocations: 2.351 MB / 0.6015 GB, free: 6.578 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.571e-05/0.657, allocations: 28 kB / 0.6015 GB, free: 6.551 MB / 446.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.009522/0.6665, allocations: 5.244 MB / 0.6066 GB, free: 1.301 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.107e-05/0.6666, allocations: 51.95 kB / 0.6067 GB, free: 1.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/0.6667, allocations: 97.78 kB / 0.6068 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001467/0.6669, allocations: 145.6 kB / 0.6069 GB, free: 1.016 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002986/0.6699, allocations: 0.9747 MB / 0.6078 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001796/0.6701, allocations: 191.2 kB / 0.608 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003011/0.6731, allocations: 0.599 MB / 0.6086 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004899/0.6736, allocations: 283.1 kB / 0.6089 GB, free: 14.98 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003772/0.6774, allocations: 1.891 MB / 0.6107 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004037/0.6778, allocations: 213.1 kB / 0.6109 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005593/0.6784, allocations: 281 kB / 0.6112 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-05/0.6784, allocations: 15.91 kB / 0.6112 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.6784, allocations: 0 / 0.6112 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.6785, allocations: 7.984 kB / 0.6112 GB, free: 12.56 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009415/0.6879, allocations: 5.595 MB / 0.6167 GB, free: 6.863 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.6879, allocations: 8 kB / 0.6167 GB, free: 6.855 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005705/0.6885, allocations: 135.8 kB / 0.6168 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.414e-05/0.6885, allocations: 8 kB / 0.6168 GB, free: 6.715 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.6886, allocations: 20.56 kB / 0.6168 GB, free: 6.695 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.35e-05/0.6886, allocations: 11.95 kB / 0.6169 GB, free: 6.684 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/0.6886, allocations: 15.92 kB / 0.6169 GB, free: 6.668 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.6909, allocations: 1.776 MB / 0.6186 GB, free: 4.824 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006104/0.6915, allocations: 302 kB / 0.6189 GB, free: 4.508 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002031/0.6917, allocations: 19.98 kB / 0.6189 GB, free: 4.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005191/0.6923, allocations: 31.97 kB / 0.6189 GB, free: 4.457 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.6924, allocations: 68.38 kB / 0.619 GB, free: 4.391 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.6925, allocations: 42.47 kB / 0.6191 GB, free: 4.352 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002662/0.6952, allocations: 1.54 MB / 0.6206 GB, free: 2.797 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6952, allocations: 0 / 0.6206 GB, free: 2.797 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004684/0.6999, allocations: 0.9977 MB / 0.6215 GB, free: 1.801 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003875/0.7003, allocations: 149.7 kB / 0.6217 GB, free: 1.648 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005598/0.7059, allocations: 3.105 MB / 0.6247 GB, free: 14.56 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/0.7059, allocations: 0 / 0.6247 GB, free: 14.56 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009695/0.7069, allocations: 0.7398 MB / 0.6254 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.7085, allocations: 245.6 kB / 0.6257 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01625/0.7248, allocations: 8.805 MB / 0.6343 GB, free: 4.699 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004094/0.7289, allocations: 2.958 MB / 0.6372 GB, free: 1.711 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003898/0.7329, allocations: 1.484 MB / 0.6386 GB, free: 224 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.7333, allocations: 163.4 kB / 0.6388 GB, free: 60 kB / 478.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7333, allocations: 0 / 0.6388 GB, free: 60 kB / 478.1 MB Notification: Performance of Templates: time 0.04355/0.7768, allocations: 17.4 MB / 0.6557 GB, free: 14.8 MB / 0.4981 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