Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.5 MB / 243.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007389/0.0007388, allocations: 95.78 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2896/0.2896, allocations: 44.83 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002522/0.0002524, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2687, allocations: 62.95 MB / 0.516 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01599/0.2847, allocations: 25.91 MB / 0.5413 GB, free: 18.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.009407/0.2942, allocations: 5.371 MB / 0.5465 GB, free: 14.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00344/0.2976, allocations: 115.1 kB / 0.5466 GB, free: 14.87 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002645/0.3003, allocations: 1.256 MB / 0.5478 GB, free: 14.44 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007241/0.3075, allocations: 3.54 MB / 0.5513 GB, free: 12.97 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006764/0.3082, allocations: 85.72 kB / 0.5514 GB, free: 12.93 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003457/0.3117, allocations: 3.131 MB / 0.5544 GB, free: 11.8 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002896/0.3146, allocations: 2.277 MB / 0.5567 GB, free: 10.83 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.316, allocations: 0.8873 MB / 0.5575 GB, free: 10.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.3178, allocations: 1.391 MB / 0.5589 GB, free: 10.11 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003734/0.3182, allocations: 115.9 kB / 0.559 GB, free: 10.11 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.3192, allocations: 416.5 kB / 0.5594 GB, free: 10.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001118/0.3204, allocations: 1.275 MB / 0.5606 GB, free: 9.535 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0012/0.3216, allocations: 1.543 MB / 0.5621 GB, free: 8.355 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003391/0.325, allocations: 4.157 MB / 0.5662 GB, free: 5.566 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.325, allocations: 1.219 kB / 0.5662 GB, free: 5.566 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.325, allocations: 0 / 0.5662 GB, free: 5.566 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001254/0.3251, allocations: 4 kB / 0.5662 GB, free: 5.562 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.004469/0.3296, allocations: 2.932 MB / 0.5691 GB, free: 2.781 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.3297, allocations: 12.03 kB / 0.5691 GB, free: 2.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008124/0.3305, allocations: 0.6671 MB / 0.5697 GB, free: 2.094 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00886/0.3394, allocations: 3.026 MB / 0.5727 GB, free: 15.06 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.3422, allocations: 1.53 MB / 0.5742 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.3423, allocations: 172.6 kB / 0.5743 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004393/0.3428, allocations: 227.8 kB / 0.5746 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01278/0.3556, allocations: 9.453 MB / 0.5838 GB, free: 3.254 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.339e-05/0.3557, allocations: 19.81 kB / 0.5838 GB, free: 3.234 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003153/0.356, allocations: 107.8 kB / 0.5839 GB, free: 3.129 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003499/0.3595, allocations: 2.369 MB / 0.5862 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01605/0.3756, allocations: 8.628 MB / 0.5947 GB, free: 8.113 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04649/0.4221, allocations: 29.33 MB / 0.6233 GB, free: 9.973 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004963/0.4271, allocations: 3.045 MB / 0.6263 GB, free: 6.707 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.4286, allocations: 0.9718 MB / 0.6272 GB, free: 5.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009087/0.4377, allocations: 4.841 MB / 0.632 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.4378, allocations: 39.22 kB / 0.632 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 3.957e-06/0.4378, allocations: 3.938 kB / 0.632 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.006003/0.4438, allocations: 2.728 MB / 0.6347 GB, free: 13.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.4439, allocations: 60.06 kB / 0.6347 GB, free: 13.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004328/0.4482, allocations: 2.55 MB / 0.6372 GB, free: 11.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.964e-05/0.4483, allocations: 41.7 kB / 0.6372 GB, free: 11.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001855/0.4502, allocations: 2.645 MB / 0.6398 GB, free: 8.469 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004922/0.4507, allocations: 0.4899 MB / 0.6403 GB, free: 7.973 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.451, allocations: 88 kB / 0.6404 GB, free: 7.887 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004517/0.4514, allocations: 0.5515 MB / 0.6409 GB, free: 7.324 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002112/0.4535, allocations: 1.336 MB / 0.6422 GB, free: 5.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003898/0.4574, allocations: 4.102 MB / 0.6462 GB, free: 500 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006266/0.4637, allocations: 5.941 MB / 0.652 GB, free: 9.176 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.613e-05/0.4638, allocations: 28 kB / 0.6521 GB, free: 9.148 MB / 474.7 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.008416/0.4722, allocations: 5.255 MB / 0.6572 GB, free: 3.887 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.819e-05/0.4724, allocations: 51.19 kB / 0.6572 GB, free: 3.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001396/0.4725, allocations: 100 kB / 0.6573 GB, free: 3.742 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001431/0.4727, allocations: 128 kB / 0.6575 GB, free: 3.617 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002716/0.4754, allocations: 0.9786 MB / 0.6584 GB, free: 2.637 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001705/0.4756, allocations: 191.2 kB / 0.6586 GB, free: 2.449 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002777/0.4784, allocations: 0.6031 MB / 0.6592 GB, free: 1.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004289/0.4788, allocations: 272 kB / 0.6595 GB, free: 1.574 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003302/0.4821, allocations: 1.895 MB / 0.6613 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003417/0.4825, allocations: 221.1 kB / 0.6615 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005888/0.4831, allocations: 271.4 kB / 0.6618 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.032e-05/0.4831, allocations: 16 kB / 0.6618 GB, free: 15.16 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.4831, allocations: 0 / 0.6618 GB, free: 15.16 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.4831, allocations: 3.984 kB / 0.6618 GB, free: 15.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/0.4937, allocations: 5.606 MB / 0.6673 GB, free: 9.426 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.4937, allocations: 4 kB / 0.6673 GB, free: 9.422 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/0.4943, allocations: 135.8 kB / 0.6674 GB, free: 9.289 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.367e-05/0.4944, allocations: 8 kB / 0.6674 GB, free: 9.281 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-05/0.4945, allocations: 27.97 kB / 0.6674 GB, free: 9.254 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.648e-06/0.4945, allocations: 8.5 kB / 0.6674 GB, free: 9.246 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.4945, allocations: 8 kB / 0.6675 GB, free: 9.238 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002199/0.4967, allocations: 1.78 MB / 0.6692 GB, free: 7.383 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006245/0.4973, allocations: 301.9 kB / 0.6695 GB, free: 7.066 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003849/0.4977, allocations: 23.94 kB / 0.6695 GB, free: 7.043 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007778/0.4985, allocations: 39.94 kB / 0.6695 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.4987, allocations: 64.38 kB / 0.6696 GB, free: 6.941 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.4988, allocations: 39.98 kB / 0.6696 GB, free: 6.902 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002993/0.5018, allocations: 1.545 MB / 0.6711 GB, free: 5.344 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5018, allocations: 0 / 0.6711 GB, free: 5.344 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004124/0.506, allocations: 1.019 MB / 0.6721 GB, free: 4.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002802/0.5088, allocations: 2.423 MB / 0.6745 GB, free: 1.812 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.1993/0.7081, allocations: 3.106 MB / 0.6775 GB, free: 135.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.7082, allocations: 0 / 0.6775 GB, free: 135.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/0.7093, allocations: 0.7463 MB / 0.6783 GB, free: 135.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.7117, allocations: 231.7 kB / 0.6785 GB, free: 135.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02891/0.7406, allocations: 21.83 MB / 0.6998 GB, free: 121.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0034/0.744, allocations: 2.97 MB / 0.7027 GB, free: 120.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001688/0.7457, allocations: 1.555 MB / 0.7042 GB, free: 118.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.182e-06/0.7457, allocations: 1.156 kB / 0.7042 GB, free: 118.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.242/5.988, allocations: 55.96 MB / 0.7589 GB, free: 74.68 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches