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.001115/0.001115, allocations: 113.2 kB / 17.33 MB, free: 5.988 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.001165/0.001165, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.358/1.358, allocations: 222.9 MB / 241.9 MB, free: 13.66 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.1991/0.1991, allocations: 44.17 MB / 336.2 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.95 kB / 408 MB, free: 27.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1068, allocations: 60.83 MB / 468.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.02781/0.1346, allocations: 28.7 MB / 497.5 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.1468, allocations: 5.585 MB / 0.4913 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004938/0.1518, allocations: 111.8 kB / 0.4914 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002897/0.1547, allocations: 1.235 MB / 0.4926 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003169/0.158, allocations: 1.144 MB / 0.4937 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004995/0.1585, allocations: 71.86 kB / 0.4938 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003853/0.1623, allocations: 2.775 MB / 0.4965 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003129/0.1655, allocations: 1.946 MB / 0.4984 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/0.1673, allocations: 1.062 MB / 0.4995 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002243/0.1695, allocations: 1.592 MB / 0.501 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006885/0.1702, allocations: 208 kB / 0.5012 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001262/0.1715, allocations: 0.4915 MB / 0.5017 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001443/0.173, allocations: 1.418 MB / 0.5031 GB, free: 52 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2071/0.3801, allocations: 1.728 MB / 0.5048 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006842/0.387, allocations: 5.234 MB / 0.5099 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.387, allocations: 3.094 kB / 0.5099 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.387, allocations: 0 / 0.5099 GB, free: 12.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001531/0.3872, allocations: 1.188 kB / 0.5099 GB, free: 12.59 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.005986/0.3932, allocations: 3.603 MB / 0.5134 GB, free: 10.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3932, allocations: 9.906 kB / 0.5134 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007388/0.394, allocations: 0.6723 MB / 0.5141 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009358/0.4033, allocations: 2.929 MB / 0.5169 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002629/0.406, allocations: 1.529 MB / 0.5184 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.4061, allocations: 181.9 kB / 0.5186 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004756/0.4066, allocations: 217.7 kB / 0.5188 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01246/0.4191, allocations: 9.487 MB / 0.5281 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.283e-05/0.4192, allocations: 16.72 kB / 0.5281 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003454/0.4195, allocations: 111.4 kB / 0.5282 GB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003142/0.4227, allocations: 2.373 MB / 0.5305 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01335/0.436, allocations: 8.665 MB / 0.539 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04349/0.4795, allocations: 29.3 MB / 0.5676 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005192/0.4848, allocations: 3.049 MB / 0.5706 GB, free: 1.914 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.4863, allocations: 0.9809 MB / 0.5715 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00847/0.4948, allocations: 4.847 MB / 0.5762 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.4948, allocations: 39.22 kB / 0.5763 GB, free: 11.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=126): time 4.198e-06/0.4948, allocations: 0 / 0.5763 GB, free: 11.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=126): time 0.006198/0.501, allocations: 2.735 MB / 0.579 GB, free: 9.078 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.5011, allocations: 60.06 kB / 0.579 GB, free: 9.008 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00458/0.5057, allocations: 2.573 MB / 0.5815 GB, free: 6.406 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.946e-05/0.5058, allocations: 40.75 kB / 0.5816 GB, free: 6.363 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001737/0.5075, allocations: 2.644 MB / 0.5841 GB, free: 3.715 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004876/0.508, allocations: 0.4927 MB / 0.5846 GB, free: 3.227 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001126/0.5092, allocations: 0.8991 MB / 0.5855 GB, free: 2.316 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5093, allocations: 365.8 kB / 0.5859 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00179/0.5111, allocations: 1.352 MB / 0.5872 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00425/0.5154, allocations: 4.113 MB / 0.5912 GB, free: 11.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006555/0.522, allocations: 5.969 MB / 0.597 GB, free: 4.199 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-05/0.522, allocations: 28 kB / 0.597 GB, free: 4.172 MB / 446.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.008668/0.5307, allocations: 5.284 MB / 0.6022 GB, free: 15.46 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.043e-05/0.5308, allocations: 50.5 kB / 0.6023 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001587/0.531, allocations: 96 kB / 0.6023 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001374/0.5312, allocations: 128 kB / 0.6025 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002828/0.534, allocations: 0.9788 MB / 0.6034 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000189/0.5342, allocations: 194.1 kB / 0.6036 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003117/0.5373, allocations: 0.5992 MB / 0.6042 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00043/0.5378, allocations: 283.4 kB / 0.6045 GB, free: 13.28 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.003213/0.541, allocations: 1.889 MB / 0.6063 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003696/0.5414, allocations: 217.1 kB / 0.6065 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000548/0.5419, allocations: 271.4 kB / 0.6068 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.185e-05/0.5419, allocations: 19.94 kB / 0.6068 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.542, allocations: 2.625 kB / 0.6068 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.542, allocations: 6.984 kB / 0.6068 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/0.5527, allocations: 5.611 MB / 0.6123 GB, free: 5.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.5527, allocations: 4 kB / 0.6123 GB, free: 5.266 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005927/0.5533, allocations: 140 kB / 0.6124 GB, free: 5.137 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.384e-05/0.5533, allocations: 8 kB / 0.6124 GB, free: 5.129 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.876e-05/0.5534, allocations: 20.56 kB / 0.6124 GB, free: 5.109 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.16e-05/0.5534, allocations: 14.62 kB / 0.6125 GB, free: 5.098 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.074e-06/0.5534, allocations: 10.61 kB / 0.6125 GB, free: 5.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.5558, allocations: 1.789 MB / 0.6142 GB, free: 3.234 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007119/0.5566, allocations: 290 kB / 0.6145 GB, free: 2.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004854/0.5571, allocations: 18.72 kB / 0.6145 GB, free: 2.914 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007707/0.5578, allocations: 35.95 kB / 0.6145 GB, free: 2.879 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.558, allocations: 66.25 kB / 0.6146 GB, free: 2.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.169e-05/0.5581, allocations: 40 kB / 0.6146 GB, free: 2.781 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002764/0.5609, allocations: 1.56 MB / 0.6162 GB, free: 1.207 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5609, allocations: 0 / 0.6162 GB, free: 1.207 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004066/0.5649, allocations: 1.001 MB / 0.6172 GB, free: 208 kB / 462.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.002854/0.5678, allocations: 2.438 MB / 0.6195 GB, free: 13.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006055/0.5739, allocations: 3.963 MB / 0.6234 GB, free: 9.898 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.5739, allocations: 0 / 0.6234 GB, free: 9.898 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008848/0.5748, allocations: 0.7376 MB / 0.6241 GB, free: 9.164 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.5763, allocations: 259 kB / 0.6244 GB, free: 8.918 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05222/0.6285, allocations: 32.96 MB / 0.6566 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005095/0.6336, allocations: 2.962 MB / 0.6594 GB, free: 212 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003494/0.6371, allocations: 1.491 MB / 0.6609 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002314/0.6395, allocations: 1.515 MB / 0.6624 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of SimCode: time 6.61e-07/0.6395, allocations: 0 / 0.6624 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06664/0.7061, allocations: 41.01 MB / 0.7024 GB, free: 4.422 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/0.7064, allocations: 204.9 kB / 0.7026 GB, free: 4.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.131/3.837, allocations: 0 / 0.7026 GB, free: 4.16 MB / 0.545 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