Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.MultiBody.Visualizers.Torus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001124/0.001124, allocations: 197.9 kB / 15.79 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007283/0.0007279, allocations: 89.09 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1694/0.1694, allocations: 44.84 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002145/0.0002145, allocations: 4 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.0919, allocations: 62.96 MB / 0.5153 GB, free: 2.766 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.2002/0.2921, allocations: 25.89 MB / 0.5406 GB, free: 11.51 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.3038, allocations: 5.379 MB / 0.5459 GB, free: 7.875 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003462/0.3073, allocations: 113.8 kB / 0.546 GB, free: 7.859 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002686/0.31, allocations: 1.26 MB / 0.5472 GB, free: 7.422 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007864/0.3179, allocations: 3.531 MB / 0.5506 GB, free: 5.832 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.3184, allocations: 80.98 kB / 0.5507 GB, free: 5.777 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00311/0.3215, allocations: 3.05 MB / 0.5537 GB, free: 4.012 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002607/0.3241, allocations: 2.155 MB / 0.5558 GB, free: 2.668 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.3252, allocations: 0.8885 MB / 0.5567 GB, free: 2.223 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001472/0.3267, allocations: 1.388 MB / 0.558 GB, free: 1.523 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002484/0.3269, allocations: 117.3 kB / 0.5581 GB, free: 1.523 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007959/0.3277, allocations: 379.8 kB / 0.5585 GB, free: 1.309 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009436/0.3287, allocations: 1.285 MB / 0.5598 GB, free: 20 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005064/0.3292, allocations: 0.683 MB / 0.5604 GB, free: 15.32 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0032/0.3324, allocations: 4.16 MB / 0.5645 GB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3324, allocations: 4 kB / 0.5645 GB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3325, allocations: 0 / 0.5645 GB, free: 11.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.356e-05/0.3325, allocations: 0 / 0.5645 GB, free: 11.16 MB / 378.7 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.003503/0.336, allocations: 2.977 MB / 0.5674 GB, free: 8.117 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3361, allocations: 11.97 kB / 0.5674 GB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008758/0.3448, allocations: 3.029 MB / 0.5704 GB, free: 5.066 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002788/0.3476, allocations: 1.505 MB / 0.5718 GB, free: 3.516 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.3478, allocations: 176.3 kB / 0.572 GB, free: 3.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003772/0.3482, allocations: 223.8 kB / 0.5722 GB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/0.3595, allocations: 9.46 MB / 0.5815 GB, free: 9.277 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.572e-05/0.3595, allocations: 19.81 kB / 0.5815 GB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002821/0.3598, allocations: 107.8 kB / 0.5816 GB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003299/0.3631, allocations: 2.377 MB / 0.5839 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01324/0.3764, allocations: 8.617 MB / 0.5923 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03291/0.4093, allocations: 29.31 MB / 0.6209 GB, free: 36 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004333/0.4137, allocations: 3.045 MB / 0.6239 GB, free: 12.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/0.4149, allocations: 0.9783 MB / 0.6249 GB, free: 11.78 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007265/0.4222, allocations: 4.838 MB / 0.6296 GB, free: 6.688 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.4223, allocations: 47.16 kB / 0.6296 GB, free: 6.633 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 3.026e-06/0.4223, allocations: 0 / 0.6296 GB, free: 6.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.005377/0.4276, allocations: 2.72 MB / 0.6323 GB, free: 3.906 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.4277, allocations: 64.06 kB / 0.6324 GB, free: 3.832 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002952/0.4307, allocations: 2.554 MB / 0.6349 GB, free: 1.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.563e-05/0.4307, allocations: 41.69 kB / 0.6349 GB, free: 1.203 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001496/0.4322, allocations: 2.645 MB / 0.6375 GB, free: 14.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003441/0.4326, allocations: 493.7 kB / 0.6379 GB, free: 14.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.4327, allocations: 91.98 kB / 0.638 GB, free: 13.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003038/0.433, allocations: 0.5476 MB / 0.6386 GB, free: 13.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/0.4348, allocations: 1.34 MB / 0.6399 GB, free: 12.03 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003321/0.4381, allocations: 4.102 MB / 0.6439 GB, free: 6.539 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/0.4409, allocations: 2.351 MB / 0.6462 GB, free: 4.184 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.249e-05/0.441, allocations: 28 kB / 0.6462 GB, free: 4.156 MB / 458.7 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.007108/0.4481, allocations: 5.247 MB / 0.6513 GB, free: 14.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-05/0.4482, allocations: 48.89 kB / 0.6514 GB, free: 14.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-05/0.4483, allocations: 100 kB / 0.6515 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001305/0.4484, allocations: 140 kB / 0.6516 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002763/0.4512, allocations: 0.9786 MB / 0.6526 GB, free: 13.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001683/0.4514, allocations: 199.2 kB / 0.6527 GB, free: 13.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00285/0.4542, allocations: 0.603 MB / 0.6533 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003241/0.4546, allocations: 276 kB / 0.6536 GB, free: 12.57 MB / 474.7 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.002589/0.4572, allocations: 1.887 MB / 0.6554 GB, free: 10.67 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.4575, allocations: 217.2 kB / 0.6557 GB, free: 10.46 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004055/0.4579, allocations: 271.4 kB / 0.6559 GB, free: 10.19 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.847e-05/0.4579, allocations: 19.98 kB / 0.6559 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/0.4579, allocations: 3.938 kB / 0.6559 GB, free: 10.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.4579, allocations: 3.984 kB / 0.6559 GB, free: 10.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008324/0.4663, allocations: 5.611 MB / 0.6614 GB, free: 4.426 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.4663, allocations: 4 kB / 0.6614 GB, free: 4.422 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005237/0.4668, allocations: 139.8 kB / 0.6616 GB, free: 4.285 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.289e-05/0.4668, allocations: 8 kB / 0.6616 GB, free: 4.277 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.199e-05/0.4669, allocations: 20 kB / 0.6616 GB, free: 4.258 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.718e-06/0.4669, allocations: 11.95 kB / 0.6616 GB, free: 4.246 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4669, allocations: 7.938 kB / 0.6616 GB, free: 4.238 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.4688, allocations: 1.781 MB / 0.6633 GB, free: 2.383 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004378/0.4693, allocations: 302 kB / 0.6636 GB, free: 2.066 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.4696, allocations: 23.97 kB / 0.6636 GB, free: 2.043 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006315/0.4702, allocations: 31.97 kB / 0.6637 GB, free: 2.012 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.32e-05/0.4703, allocations: 64.38 kB / 0.6637 GB, free: 1.949 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-05/0.4704, allocations: 43.94 kB / 0.6638 GB, free: 1.906 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001936/0.4723, allocations: 1.549 MB / 0.6653 GB, free: 352 kB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4723, allocations: 0 / 0.6653 GB, free: 352 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.003037/0.4754, allocations: 1.007 MB / 0.6663 GB, free: 15.33 MB / 490.7 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.0002875/0.4757, allocations: 146.8 kB / 0.6664 GB, free: 15.18 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004044/0.4797, allocations: 3.109 MB / 0.6695 GB, free: 12.09 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4797, allocations: 4 kB / 0.6695 GB, free: 12.09 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007889/0.4805, allocations: 0.7374 MB / 0.6702 GB, free: 11.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.4816, allocations: 247.8 kB / 0.6704 GB, free: 11.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/0.4925, allocations: 9.237 MB / 0.6794 GB, free: 1.785 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002776/0.4953, allocations: 2.974 MB / 0.6823 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005451/0.4958, allocations: 199.4 kB / 0.6825 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of SimCode: time 6.72e-07/0.4958, allocations: 0 / 0.6825 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of Templates: time 0.2293/0.7251, allocations: 41.41 MB / 0.723 GB, free: 164.5 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches