Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001288, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2108/0.2108, allocations: 44.19 MB / 336.8 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.0013, allocations: 64.12 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3442, allocations: 60.82 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01354/0.3577, allocations: 11.29 MB / 0.5294 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006475/0.3643, allocations: 2.789 MB / 0.5322 GB, free: 9.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001764/0.3661, allocations: 56.84 kB / 0.5322 GB, free: 9.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002841/0.3689, allocations: 1.306 MB / 0.5335 GB, free: 8.449 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003072/0.372, allocations: 1.217 MB / 0.5347 GB, free: 7.594 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004182/0.3725, allocations: 82.53 kB / 0.5347 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003676/0.3762, allocations: 2.751 MB / 0.5374 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002657/0.3788, allocations: 1.855 MB / 0.5392 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001945/0.3808, allocations: 1.043 MB / 0.5403 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002328/0.3831, allocations: 1.453 MB / 0.5417 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007124/0.3839, allocations: 207.6 kB / 0.5419 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.3854, allocations: 0.491 MB / 0.5424 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001864/0.3873, allocations: 1.422 MB / 0.5438 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002641/0.3899, allocations: 1.715 MB / 0.5454 GB, free: 388 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006344/0.3963, allocations: 5.491 MB / 0.5508 GB, free: 10.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.3963, allocations: 4 kB / 0.5508 GB, free: 10.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3963, allocations: 0 / 0.5508 GB, free: 10.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001288/0.3965, allocations: 0 / 0.5508 GB, free: 10.86 MB / 414.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.005385/0.4019, allocations: 3.608 MB / 0.5543 GB, free: 7.191 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.4019, allocations: 8.031 kB / 0.5543 GB, free: 7.184 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008087/0.4027, allocations: 0.6749 MB / 0.555 GB, free: 6.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009534/0.4123, allocations: 2.936 MB / 0.5578 GB, free: 3.555 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003748/0.416, allocations: 1.53 MB / 0.5593 GB, free: 1.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.4162, allocations: 172.6 kB / 0.5595 GB, free: 1.809 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006097/0.4168, allocations: 231.7 kB / 0.5597 GB, free: 1.582 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.4304, allocations: 9.461 MB / 0.569 GB, free: 7.738 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.417e-05/0.4305, allocations: 23.81 kB / 0.569 GB, free: 7.715 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000333/0.4308, allocations: 111.8 kB / 0.5691 GB, free: 7.605 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003504/0.4343, allocations: 2.377 MB / 0.5714 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01457/0.4489, allocations: 8.668 MB / 0.5799 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03722/0.4862, allocations: 29.08 MB / 0.6083 GB, free: 14.66 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004738/0.491, allocations: 3.056 MB / 0.6113 GB, free: 11.38 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.4923, allocations: 0.9772 MB / 0.6122 GB, free: 10.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008692/0.501, allocations: 4.837 MB / 0.6169 GB, free: 5.305 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.5011, allocations: 47.16 kB / 0.617 GB, free: 5.25 MB / 478.1 MB Notification: Performance of pre-optimization done (n=126): time 2.705e-06/0.5011, allocations: 0 / 0.617 GB, free: 5.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=126): time 0.005648/0.5067, allocations: 2.728 MB / 0.6197 GB, free: 2.516 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.5068, allocations: 64.06 kB / 0.6197 GB, free: 2.441 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003186/0.51, allocations: 2.569 MB / 0.6222 GB, free: 15.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.103e-05/0.5101, allocations: 37.69 kB / 0.6223 GB, free: 15.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001658/0.5117, allocations: 2.649 MB / 0.6248 GB, free: 13.11 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003669/0.5121, allocations: 493.7 kB / 0.6253 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/0.5131, allocations: 0.9045 MB / 0.6262 GB, free: 11.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.5133, allocations: 357.9 kB / 0.6265 GB, free: 11.35 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/0.515, allocations: 1.355 MB / 0.6279 GB, free: 9.988 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003556/0.5186, allocations: 4.118 MB / 0.6319 GB, free: 4.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005849/0.5244, allocations: 5.968 MB / 0.6377 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.955e-05/0.5245, allocations: 28 kB / 0.6377 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=588) (initialization): time 0.007475/0.532, allocations: 5.287 MB / 0.6429 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.761e-05/0.532, allocations: 48 kB / 0.643 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-05/0.5322, allocations: 104 kB / 0.643 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001149/0.5323, allocations: 128 kB / 0.6432 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/0.5348, allocations: 0.9747 MB / 0.6441 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001356/0.535, allocations: 187.3 kB / 0.6443 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002442/0.5374, allocations: 0.603 MB / 0.6449 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003324/0.5378, allocations: 276 kB / 0.6452 GB, free: 5.5 MB / 0.4981 GB 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.002458/0.5402, allocations: 1.903 MB / 0.647 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.5405, allocations: 217.2 kB / 0.6472 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000397/0.5409, allocations: 267.4 kB / 0.6475 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.937e-05/0.541, allocations: 16 kB / 0.6475 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.541, allocations: 0 / 0.6475 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.541, allocations: 3.984 kB / 0.6475 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008719/0.5497, allocations: 5.614 MB / 0.653 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.929e-05/0.5498, allocations: 4 kB / 0.653 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005748/0.5503, allocations: 143.7 kB / 0.6531 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.216e-05/0.5504, allocations: 8 kB / 0.6531 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.469e-05/0.5504, allocations: 23.98 kB / 0.6531 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.047e-06/0.5505, allocations: 8.5 kB / 0.6532 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-06/0.5505, allocations: 11.94 kB / 0.6532 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002119/0.5526, allocations: 1.792 MB / 0.6549 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005038/0.5531, allocations: 286 kB / 0.6552 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/0.5533, allocations: 19.98 kB / 0.6552 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005558/0.5539, allocations: 31.97 kB / 0.6552 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.554, allocations: 68.36 kB / 0.6553 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.291e-05/0.5541, allocations: 43.98 kB / 0.6553 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002058/0.5562, allocations: 1.556 MB / 0.6569 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5562, allocations: 0 / 0.6569 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003226/0.5594, allocations: 1.007 MB / 0.6578 GB, free: 8.246 MB / 0.5137 GB 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.002539/0.562, allocations: 2.443 MB / 0.6602 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004804/0.5668, allocations: 3.156 MB / 0.6633 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.5668, allocations: 0 / 0.6633 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009663/0.5678, allocations: 0.7386 MB / 0.664 GB, free: 1.848 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.5691, allocations: 258.9 kB / 0.6643 GB, free: 1.598 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03654/0.6057, allocations: 29.25 MB / 0.6929 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003266/0.609, allocations: 2.97 MB / 0.6958 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003042/0.612, allocations: 1.481 MB / 0.6972 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001852/0.6139, allocations: 1.519 MB / 0.6987 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of SimCode: time 7.31e-07/0.6139, allocations: 0 / 0.6987 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3179/0.9318, allocations: 39.05 MB / 0.7368 GB, free: 188.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.5, allocations: 6.531 kB / 0.7368 GB, free: 188.2 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches