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.0008564/0.0008563, allocations: 96.42 kB / 18.01 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009644/0.0009645, allocations: 208.2 kB / 18.94 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 247.5 MB, free: 9.676 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2082/0.2082, allocations: 46.18 MB / 345.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002746, allocations: 8 kB / 420.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1117, allocations: 63.57 MB / 483.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.02488/0.1366, allocations: 27.62 MB / 0.4994 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.1486, allocations: 5.55 MB / 0.5048 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005282/0.154, allocations: 111.8 kB / 0.5049 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.1555, allocations: 406.2 kB / 0.5053 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003906/0.1594, allocations: 1.164 MB / 0.5064 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007162/0.1602, allocations: 71.94 kB / 0.5065 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2427/0.4029, allocations: 3.994 MB / 0.5104 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004489/0.4074, allocations: 2.337 MB / 0.5127 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001935/0.4094, allocations: 0.8321 MB / 0.5135 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00269/0.4121, allocations: 1.412 MB / 0.5149 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008472/0.4129, allocations: 117 kB / 0.515 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001673/0.4146, allocations: 423.7 kB / 0.5154 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002125/0.4168, allocations: 1.311 MB / 0.5166 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003082/0.4199, allocations: 1.614 MB / 0.5182 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005697/0.4256, allocations: 4.123 MB / 0.5223 GB, free: 9.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4256, allocations: 0 / 0.5223 GB, free: 9.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4256, allocations: 1.094 kB / 0.5223 GB, free: 9.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002657/0.4259, allocations: 0 / 0.5223 GB, free: 9.113 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.006692/0.4326, allocations: 2.894 MB / 0.5251 GB, free: 7.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.4327, allocations: 8.969 kB / 0.5251 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/0.4428, allocations: 3.03 MB / 0.528 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003086/0.446, allocations: 1.528 MB / 0.5295 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.4461, allocations: 172.8 kB / 0.5297 GB, free: 5.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008489/0.447, allocations: 225.8 kB / 0.5299 GB, free: 5.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/0.4621, allocations: 9.473 MB / 0.5392 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001132/0.4622, allocations: 18.53 kB / 0.5392 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007403/0.463, allocations: 106.2 kB / 0.5393 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003467/0.4665, allocations: 2.374 MB / 0.5416 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.484, allocations: 8.663 MB / 0.5501 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0443/0.5284, allocations: 29.32 MB / 0.5787 GB, free: 9.504 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00509/0.5335, allocations: 3.051 MB / 0.5817 GB, free: 6.238 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.535, allocations: 0.9813 MB / 0.5826 GB, free: 5.254 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008488/0.5435, allocations: 4.84 MB / 0.5874 GB, free: 204 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.5435, allocations: 43.22 kB / 0.5874 GB, free: 152 kB / 430.1 MB Notification: Performance of pre-optimization done (n=126): time 6.081e-06/0.5436, allocations: 4 kB / 0.5874 GB, free: 148 kB / 430.1 MB Notification: Performance of matching and sorting (n=126): time 0.006161/0.5497, allocations: 2.733 MB / 0.5901 GB, free: 13.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.5498, allocations: 64.06 kB / 0.5901 GB, free: 13.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005049/0.5549, allocations: 2.557 MB / 0.5926 GB, free: 10.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001864/0.5551, allocations: 37.7 kB / 0.5927 GB, free: 10.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002112/0.5572, allocations: 2.649 MB / 0.5953 GB, free: 8.055 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007028/0.5579, allocations: 494.2 kB / 0.5957 GB, free: 7.578 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000798/0.5587, allocations: 391.7 kB / 0.5961 GB, free: 7.188 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.5589, allocations: 361.9 kB / 0.5965 GB, free: 6.828 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002375/0.5613, allocations: 1.355 MB / 0.5978 GB, free: 5.465 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004636/0.566, allocations: 4.12 MB / 0.6018 GB, free: 16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007118/0.5731, allocations: 5.96 MB / 0.6076 GB, free: 9.062 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.191e-05/0.5733, allocations: 34.19 kB / 0.6077 GB, free: 9.031 MB / 462.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01094/0.5842, allocations: 5.286 MB / 0.6128 GB, free: 4.008 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.5844, allocations: 44 kB / 0.6129 GB, free: 3.965 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001735/0.5846, allocations: 100 kB / 0.613 GB, free: 3.867 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.5847, allocations: 128 kB / 0.6131 GB, free: 3.742 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003161/0.5879, allocations: 0.9747 MB / 0.614 GB, free: 2.766 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001607/0.5881, allocations: 191.2 kB / 0.6142 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003351/0.5914, allocations: 0.6073 MB / 0.6148 GB, free: 1.965 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006175/0.5921, allocations: 276 kB / 0.6151 GB, free: 1.695 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003956/0.596, allocations: 1.89 MB / 0.6169 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004183/0.5965, allocations: 209.2 kB / 0.6171 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006952/0.5972, allocations: 276.7 kB / 0.6174 GB, free: 15.31 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.12e-05/0.5972, allocations: 16 kB / 0.6174 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.5972, allocations: 4 kB / 0.6174 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.5973, allocations: 3.984 kB / 0.6174 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01031/0.6076, allocations: 5.613 MB / 0.6229 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.6076, allocations: 4.562 kB / 0.6229 GB, free: 9.562 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005805/0.6082, allocations: 139.8 kB / 0.623 GB, free: 9.426 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.318e-05/0.6082, allocations: 8 kB / 0.623 GB, free: 9.418 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-05/0.6083, allocations: 20 kB / 0.623 GB, free: 9.398 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.255e-05/0.6083, allocations: 11.98 kB / 0.6231 GB, free: 9.387 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.6083, allocations: 7.938 kB / 0.6231 GB, free: 9.379 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002222/0.6106, allocations: 1.786 MB / 0.6248 GB, free: 7.523 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000591/0.6112, allocations: 309.9 kB / 0.6251 GB, free: 7.199 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003578/0.6115, allocations: 20 kB / 0.6251 GB, free: 7.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007118/0.6123, allocations: 39.7 kB / 0.6252 GB, free: 7.145 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.6124, allocations: 68.31 kB / 0.6252 GB, free: 7.078 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.451e-05/0.6125, allocations: 36 kB / 0.6253 GB, free: 7.043 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00272/0.6152, allocations: 1.56 MB / 0.6268 GB, free: 5.469 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.6152, allocations: 0 / 0.6268 GB, free: 5.469 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003767/0.619, allocations: 0.99 MB / 0.6278 GB, free: 4.48 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.0003755/0.6194, allocations: 149.1 kB / 0.6279 GB, free: 4.328 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004791/0.6242, allocations: 3.124 MB / 0.6309 GB, free: 1.219 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6242, allocations: 4.875 kB / 0.6309 GB, free: 1.215 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009476/0.6252, allocations: 0.7438 MB / 0.6317 GB, free: 488 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.6279, allocations: 255.3 kB / 0.6319 GB, free: 240 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/0.6455, allocations: 9.592 MB / 0.6413 GB, free: 6.551 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004769/0.6503, allocations: 2.969 MB / 0.6442 GB, free: 3.555 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007325/0.6511, allocations: 199.4 kB / 0.6444 GB, free: 3.359 MB / 494.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6511, allocations: 0 / 0.6444 GB, free: 3.359 MB / 494.1 MB Notification: Performance of Templates: time 0.06436/0.7154, allocations: 41.1 MB / 0.6845 GB, free: 10.38 MB / 0.5294 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/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