Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 174 kB / 17.41 MB, free: 4.254 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 225.7 MB / 243.9 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000783/0.0007832, allocations: 92.59 kB / 295.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3561/0.3561, allocations: 44.33 MB / 390.5 MB, free: 38.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003297/0.0003298, allocations: 8 kB / 463.1 MB, free: 448 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3393, allocations: 61.9 MB / 0.5127 GB, free: 38.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01998/0.3593, allocations: 25.97 MB / 0.5381 GB, free: 19.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01306/0.3724, allocations: 6.892 MB / 0.5448 GB, free: 14.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005154/0.3776, allocations: 114.6 kB / 0.5449 GB, free: 14.3 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009107/0.3786, allocations: 406.5 kB / 0.5453 GB, free: 14.17 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002437/0.381, allocations: 1.167 MB / 0.5465 GB, free: 13.67 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002543/0.3813, allocations: 71.53 kB / 0.5465 GB, free: 13.64 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00301/0.3843, allocations: 4.034 MB / 0.5505 GB, free: 12.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003005/0.3873, allocations: 2.621 MB / 0.553 GB, free: 11.03 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001383/0.3887, allocations: 0.9052 MB / 0.5539 GB, free: 10.71 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001915/0.3906, allocations: 1.42 MB / 0.5553 GB, free: 10.25 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003548/0.391, allocations: 115.9 kB / 0.5554 GB, free: 10.25 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.3922, allocations: 400.3 kB / 0.5558 GB, free: 10.17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001927/0.3942, allocations: 1.316 MB / 0.5571 GB, free: 9.734 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001796/0.396, allocations: 1.642 MB / 0.5587 GB, free: 8.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007532/0.4035, allocations: 5.035 MB / 0.5636 GB, free: 6.844 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/0.4035, allocations: 1.031 kB / 0.5636 GB, free: 6.844 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.4036, allocations: 0 / 0.5636 GB, free: 6.844 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002306/0.4038, allocations: 0 / 0.5636 GB, free: 6.844 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.005737/0.4095, allocations: 2.928 MB / 0.5665 GB, free: 4.656 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.4096, allocations: 13.7 kB / 0.5665 GB, free: 4.652 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009104/0.4187, allocations: 3.022 MB / 0.5694 GB, free: 3.109 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003023/0.4218, allocations: 1.53 MB / 0.5709 GB, free: 1.668 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.652e-05/0.4219, allocations: 168.7 kB / 0.5711 GB, free: 1.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000438/0.4223, allocations: 231.9 kB / 0.5713 GB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.4364, allocations: 9.449 MB / 0.5805 GB, free: 7.438 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.311e-05/0.4365, allocations: 23.8 kB / 0.5806 GB, free: 7.414 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003271/0.4368, allocations: 111.8 kB / 0.5807 GB, free: 7.305 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003543/0.4404, allocations: 2.365 MB / 0.583 GB, free: 4.938 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0146/0.455, allocations: 8.629 MB / 0.5914 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0384/0.4934, allocations: 29.32 MB / 0.62 GB, free: 14.17 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004487/0.498, allocations: 3.045 MB / 0.623 GB, free: 10.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.4992, allocations: 0.9772 MB / 0.624 GB, free: 9.914 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008093/0.5073, allocations: 4.835 MB / 0.6287 GB, free: 4.832 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.5074, allocations: 43.16 kB / 0.6287 GB, free: 4.781 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 4.438e-06/0.5074, allocations: 0 / 0.6287 GB, free: 4.781 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.005838/0.5132, allocations: 2.728 MB / 0.6314 GB, free: 2.047 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/0.5133, allocations: 60.06 kB / 0.6314 GB, free: 1.977 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004052/0.5174, allocations: 2.546 MB / 0.6339 GB, free: 15.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.5175, allocations: 41.7 kB / 0.634 GB, free: 15.36 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001872/0.5194, allocations: 2.649 MB / 0.6366 GB, free: 12.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005433/0.52, allocations: 497.7 kB / 0.637 GB, free: 12.17 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.5201, allocations: 88 kB / 0.6371 GB, free: 12.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003673/0.5205, allocations: 0.5476 MB / 0.6377 GB, free: 11.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.5225, allocations: 1.336 MB / 0.639 GB, free: 10.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003647/0.5262, allocations: 4.106 MB / 0.643 GB, free: 4.688 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006583/0.5328, allocations: 5.94 MB / 0.6488 GB, free: 13.37 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.369e-05/0.5329, allocations: 31.94 kB / 0.6488 GB, free: 13.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.008856/0.5417, allocations: 5.243 MB / 0.6539 GB, free: 8.086 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.75e-05/0.5418, allocations: 49 kB / 0.654 GB, free: 8.039 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001025/0.5419, allocations: 96 kB / 0.6541 GB, free: 7.945 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001284/0.5421, allocations: 132 kB / 0.6542 GB, free: 7.816 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002701/0.5448, allocations: 0.9864 MB / 0.6551 GB, free: 6.828 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001427/0.5449, allocations: 187.3 kB / 0.6553 GB, free: 6.645 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002872/0.5478, allocations: 0.5953 MB / 0.6559 GB, free: 6.043 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000398/0.5482, allocations: 276 kB / 0.6562 GB, free: 5.773 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003593/0.5518, allocations: 1.903 MB / 0.658 GB, free: 3.855 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000392/0.5522, allocations: 213.2 kB / 0.6582 GB, free: 3.645 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/0.5527, allocations: 271.4 kB / 0.6585 GB, free: 3.375 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-05/0.5527, allocations: 16 kB / 0.6585 GB, free: 3.359 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.102e-05/0.5528, allocations: 0 / 0.6585 GB, free: 3.359 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.5528, allocations: 3.984 kB / 0.6585 GB, free: 3.355 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008353/0.5611, allocations: 5.61 MB / 0.664 GB, free: 13.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.5612, allocations: 4 kB / 0.664 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005479/0.5617, allocations: 139.7 kB / 0.6641 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.191e-05/0.5618, allocations: 8 kB / 0.6641 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/0.5618, allocations: 23.98 kB / 0.6642 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.957e-06/0.5618, allocations: 8 kB / 0.6642 GB, free: 13.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.5618, allocations: 7.938 kB / 0.6642 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.564, allocations: 1.784 MB / 0.6659 GB, free: 11.57 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005595/0.5646, allocations: 301.9 kB / 0.6662 GB, free: 11.26 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/0.5648, allocations: 20 kB / 0.6662 GB, free: 11.24 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005701/0.5654, allocations: 35.95 kB / 0.6663 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.5655, allocations: 68.3 kB / 0.6663 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.93e-05/0.5656, allocations: 44 kB / 0.6664 GB, free: 11.09 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002391/0.568, allocations: 1.541 MB / 0.6679 GB, free: 9.539 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.713e-06/0.568, allocations: 0 / 0.6679 GB, free: 9.539 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003797/0.5718, allocations: 1.011 MB / 0.6689 GB, free: 8.523 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 (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.0003506/0.5722, allocations: 159 kB / 0.669 GB, free: 8.359 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004702/0.5769, allocations: 3.116 MB / 0.6721 GB, free: 5.266 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.5769, allocations: 0 / 0.6721 GB, free: 5.266 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008661/0.5778, allocations: 0.7429 MB / 0.6728 GB, free: 4.523 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.5802, allocations: 251.8 kB / 0.673 GB, free: 4.273 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2288/0.8091, allocations: 9.178 MB / 0.682 GB, free: 133 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003875/0.813, allocations: 2.963 MB / 0.6849 GB, free: 132.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003003/0.8161, allocations: 1.485 MB / 0.6863 GB, free: 132.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003102/0.8164, allocations: 156.8 kB / 0.6865 GB, free: 132.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.143e-06/0.8164, allocations: 0 / 0.6865 GB, free: 132.2 MB / 490.7 MB Notification: Performance of Templates: time 0.03582/0.8522, allocations: 17.8 MB / 0.7039 GB, free: 129.4 MB / 490.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches