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: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 77.62 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1217, allocations: 62.44 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01224/0.134, allocations: 11.24 MB / 491.4 MB, free: 9.891 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005836/0.1399, allocations: 2.815 MB / 494.2 MB, free: 7.066 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001694/0.1416, allocations: 55.94 kB / 494.2 MB, free: 7.012 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003274/0.145, allocations: 1.335 MB / 495.6 MB, free: 5.672 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003714/0.1487, allocations: 1.21 MB / 496.8 MB, free: 4.457 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006912/0.1495, allocations: 71.86 kB / 496.9 MB, free: 4.387 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003937/0.1534, allocations: 2.712 MB / 499.6 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00279/0.1562, allocations: 1.852 MB / 0.4897 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/0.158, allocations: 1.051 MB / 0.4907 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00204/0.1601, allocations: 1.436 MB / 0.4921 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006842/0.1608, allocations: 211.9 kB / 0.4923 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.1622, allocations: 499.3 kB / 0.4928 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001522/0.1637, allocations: 1.379 MB / 0.4941 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002289/0.166, allocations: 1.707 MB / 0.4958 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005585/0.1716, allocations: 5.147 MB / 0.5008 GB, free: 4.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1716, allocations: 0 / 0.5008 GB, free: 4.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1716, allocations: 0 / 0.5008 GB, free: 4.328 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001759/0.1718, allocations: 0 / 0.5008 GB, free: 4.328 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.006463/0.1783, allocations: 3.574 MB / 0.5043 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1784, allocations: 8.031 kB / 0.5043 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001154/0.1795, allocations: 0.6671 MB / 0.505 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2459/0.4254, allocations: 2.935 MB / 0.5078 GB, free: 39.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004051/0.4295, allocations: 1.525 MB / 0.5093 GB, free: 38.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004285/0.43, allocations: 174.9 kB / 0.5095 GB, free: 38.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001822/0.4318, allocations: 221.7 kB / 0.5097 GB, free: 38.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01926/0.4511, allocations: 9.466 MB / 0.5189 GB, free: 34.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.398e-05/0.4513, allocations: 20.48 kB / 0.519 GB, free: 34.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003697/0.4516, allocations: 113.2 kB / 0.5191 GB, free: 34.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004507/0.4561, allocations: 2.381 MB / 0.5214 GB, free: 34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01499/0.4712, allocations: 8.67 MB / 0.5299 GB, free: 27.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03532/0.5065, allocations: 29.29 MB / 0.5585 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005493/0.5121, allocations: 3.05 MB / 0.5614 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/0.5139, allocations: 0.9844 MB / 0.5624 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009117/0.523, allocations: 4.84 MB / 0.5671 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.25e-05/0.5231, allocations: 43.22 kB / 0.5672 GB, free: 4.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=126): time 4.539e-06/0.5231, allocations: 0 / 0.5672 GB, free: 4.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=126): time 0.006207/0.5293, allocations: 2.735 MB / 0.5698 GB, free: 1.551 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.5294, allocations: 68.06 kB / 0.5699 GB, free: 1.473 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003931/0.5334, allocations: 2.553 MB / 0.5724 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.917e-05/0.5335, allocations: 41.7 kB / 0.5724 GB, free: 14.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.5352, allocations: 2.649 MB / 0.575 GB, free: 12.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004786/0.5356, allocations: 497.7 kB / 0.5755 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001071/0.5367, allocations: 0.9082 MB / 0.5764 GB, free: 10.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.5369, allocations: 353.9 kB / 0.5767 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001904/0.5388, allocations: 1.352 MB / 0.578 GB, free: 9.031 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0039/0.5427, allocations: 4.118 MB / 0.5821 GB, free: 3.523 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00647/0.5492, allocations: 5.968 MB / 0.5879 GB, free: 12.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.823e-05/0.5493, allocations: 31.94 kB / 0.5879 GB, free: 12.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.008785/0.5581, allocations: 5.279 MB / 0.5931 GB, free: 6.863 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001665/0.5583, allocations: 44 kB / 0.5931 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001779/0.5585, allocations: 100 kB / 0.5932 GB, free: 6.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.5587, allocations: 132 kB / 0.5933 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003027/0.5618, allocations: 0.9708 MB / 0.5943 GB, free: 5.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001975/0.562, allocations: 195.2 kB / 0.5945 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003026/0.565, allocations: 0.5992 MB / 0.5951 GB, free: 4.824 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006555/0.5657, allocations: 280.2 kB / 0.5953 GB, free: 4.551 MB / 430.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.003567/0.5693, allocations: 1.891 MB / 0.5972 GB, free: 2.645 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004783/0.5697, allocations: 217.1 kB / 0.5974 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006884/0.5704, allocations: 271.3 kB / 0.5976 GB, free: 2.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.921e-05/0.5705, allocations: 19.98 kB / 0.5977 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.5705, allocations: 0 / 0.5977 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.5705, allocations: 3.984 kB / 0.5977 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/0.5827, allocations: 5.61 MB / 0.6031 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.5827, allocations: 4 kB / 0.6031 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006174/0.5834, allocations: 142.2 kB / 0.6033 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/0.5834, allocations: 8 kB / 0.6033 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.639e-05/0.5834, allocations: 16.56 kB / 0.6033 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.5835, allocations: 12 kB / 0.6033 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.5835, allocations: 19.67 kB / 0.6033 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.5858, allocations: 1.788 MB / 0.6051 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005592/0.5863, allocations: 286 kB / 0.6053 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/0.5866, allocations: 20 kB / 0.6054 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000603/0.5873, allocations: 47.89 kB / 0.6054 GB, free: 9.984 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.5874, allocations: 60.38 kB / 0.6055 GB, free: 9.926 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.057e-05/0.5875, allocations: 47.97 kB / 0.6055 GB, free: 9.879 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002251/0.5897, allocations: 1.556 MB / 0.607 GB, free: 8.309 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5897, allocations: 0 / 0.607 GB, free: 8.309 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003332/0.5931, allocations: 0.9848 MB / 0.608 GB, free: 7.324 MB / 446.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.002476/0.5956, allocations: 2.432 MB / 0.6104 GB, free: 4.812 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006093/0.6017, allocations: 3.962 MB / 0.6142 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.6017, allocations: 0.9375 kB / 0.6142 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008949/0.6026, allocations: 0.7377 MB / 0.615 GB, free: 148 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.6041, allocations: 250 kB / 0.6152 GB, free: 15.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0471/0.6512, allocations: 31.07 MB / 0.6455 GB, free: 12.06 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004415/0.6557, allocations: 2.965 MB / 0.6484 GB, free: 9.062 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003506/0.6592, allocations: 1.484 MB / 0.6499 GB, free: 7.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002174/0.6614, allocations: 1.507 MB / 0.6514 GB, free: 6.062 MB / 494.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6614, allocations: 0 / 0.6514 GB, free: 6.062 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07524/0.7367, allocations: 41.06 MB / 0.6915 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.029/9.766, allocations: 5.297 kB / 0.6915 GB, free: 13.14 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv","/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