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.001119/0.001119, allocations: 104.3 kB / 17.63 MB, free: 5.344 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.001251/0.001251, allocations: 192 kB / 18.56 MB, free: 4.434 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.382/1.382, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2067/0.2067, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 62.25 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09785/0.09909, allocations: 60.81 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01174/0.1109, allocations: 11.29 MB / 480.6 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0061/0.117, allocations: 2.784 MB / 483.4 MB, free: 128 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.1187, allocations: 55.94 kB / 483.5 MB, free: 72 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003018/0.1218, allocations: 1.304 MB / 484.8 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003414/0.1253, allocations: 1.225 MB / 486 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005405/0.1259, allocations: 83.84 kB / 486.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003681/0.1296, allocations: 2.753 MB / 488.8 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003204/0.1328, allocations: 1.844 MB / 490.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002157/0.135, allocations: 1.055 MB / 491.7 MB, free: 7.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002217/0.1372, allocations: 1.452 MB / 493.2 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006637/0.1379, allocations: 212 kB / 493.4 MB, free: 6.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001371/0.1393, allocations: 495.3 kB / 493.9 MB, free: 5.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00153/0.1409, allocations: 1.402 MB / 495.3 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002172/0.143, allocations: 1.719 MB / 497 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005962/0.149, allocations: 5.209 MB / 0.4904 GB, free: 13.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.858e-06/0.1491, allocations: 0 / 0.4904 GB, free: 13.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1491, allocations: 0 / 0.4904 GB, free: 13.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001619/0.1492, allocations: 0 / 0.4904 GB, free: 13.24 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.007619/0.1569, allocations: 3.605 MB / 0.494 GB, free: 9.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.1569, allocations: 12.03 kB / 0.494 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008758/0.1578, allocations: 0.6671 MB / 0.4946 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00985/0.1677, allocations: 2.936 MB / 0.4975 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.1705, allocations: 1.533 MB / 0.499 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.1706, allocations: 172.6 kB / 0.4992 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004827/0.1711, allocations: 227.8 kB / 0.4994 GB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.227/0.3981, allocations: 9.465 MB / 0.5086 GB, free: 43.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.919e-05/0.3982, allocations: 21.22 kB / 0.5086 GB, free: 43.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003562/0.3986, allocations: 105.8 kB / 0.5087 GB, free: 43.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003763/0.4023, allocations: 2.38 MB / 0.5111 GB, free: 43.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/0.4204, allocations: 8.668 MB / 0.5195 GB, free: 40.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03103/0.4514, allocations: 29.29 MB / 0.5481 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004198/0.4557, allocations: 3.054 MB / 0.5511 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.4569, allocations: 0.9812 MB / 0.5521 GB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007409/0.4644, allocations: 4.839 MB / 0.5568 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.974e-05/0.4644, allocations: 43.16 kB / 0.5568 GB, free: 4.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 4.208e-06/0.4644, allocations: 1.594 kB / 0.5568 GB, free: 4.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=126): time 0.005161/0.4696, allocations: 2.74 MB / 0.5595 GB, free: 1.543 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.4697, allocations: 60.06 kB / 0.5596 GB, free: 1.473 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003161/0.4728, allocations: 2.565 MB / 0.5621 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.594e-05/0.4729, allocations: 41.7 kB / 0.5621 GB, free: 14.83 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001527/0.4744, allocations: 2.641 MB / 0.5647 GB, free: 12.15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004208/0.4749, allocations: 0.4898 MB / 0.5652 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001048/0.4759, allocations: 0.9006 MB / 0.5661 GB, free: 10.74 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4761, allocations: 361.8 kB / 0.5664 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.4778, allocations: 1.352 MB / 0.5677 GB, free: 9.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003456/0.4813, allocations: 4.122 MB / 0.5717 GB, free: 3.512 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006089/0.4874, allocations: 5.968 MB / 0.5776 GB, free: 12.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-05/0.4875, allocations: 28 kB / 0.5776 GB, free: 12.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.008028/0.4955, allocations: 5.283 MB / 0.5828 GB, free: 6.852 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.148e-05/0.4956, allocations: 48.25 kB / 0.5828 GB, free: 6.805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/0.4958, allocations: 100 kB / 0.5829 GB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.4959, allocations: 128 kB / 0.583 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/0.4988, allocations: 0.9775 MB / 0.584 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001667/0.4989, allocations: 191.3 kB / 0.5842 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002738/0.5017, allocations: 0.6031 MB / 0.5848 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003925/0.5021, allocations: 291.9 kB / 0.585 GB, free: 4.523 MB / 414.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.002604/0.5047, allocations: 1.891 MB / 0.5869 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003374/0.505, allocations: 209.2 kB / 0.5871 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005076/0.5056, allocations: 267.4 kB / 0.5873 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/0.5056, allocations: 16 kB / 0.5873 GB, free: 2.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5056, allocations: 0 / 0.5873 GB, free: 2.133 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.5056, allocations: 3.984 kB / 0.5873 GB, free: 2.129 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008618/0.5143, allocations: 5.614 MB / 0.5928 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.5143, allocations: 4 kB / 0.5928 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005692/0.5149, allocations: 147.7 kB / 0.593 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/0.5149, allocations: 8 kB / 0.593 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-05/0.5149, allocations: 23.91 kB / 0.593 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.515, allocations: 8 kB / 0.593 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.515, allocations: 8.406 kB / 0.593 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/0.517, allocations: 1.788 MB / 0.5948 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004031/0.5174, allocations: 286 kB / 0.595 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.5177, allocations: 19.98 kB / 0.5951 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006074/0.5183, allocations: 39.95 kB / 0.5951 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.5184, allocations: 68.36 kB / 0.5952 GB, free: 9.906 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.618e-05/0.5185, allocations: 36 kB / 0.5952 GB, free: 9.871 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002022/0.5205, allocations: 1.564 MB / 0.5967 GB, free: 8.293 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5205, allocations: 0 / 0.5967 GB, free: 8.293 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003069/0.5236, allocations: 1.009 MB / 0.5977 GB, free: 7.281 MB / 430.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.002337/0.5259, allocations: 2.439 MB / 0.6001 GB, free: 4.766 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005137/0.5311, allocations: 3.953 MB / 0.604 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5311, allocations: 0 / 0.604 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007776/0.5319, allocations: 0.7463 MB / 0.6047 GB, free: 100 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.533, allocations: 262.7 kB / 0.6049 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0354/0.5684, allocations: 31.11 MB / 0.6353 GB, free: 11.95 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003575/0.572, allocations: 2.973 MB / 0.6382 GB, free: 8.941 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00319/0.5752, allocations: 1.481 MB / 0.6397 GB, free: 7.453 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001864/0.5771, allocations: 1.515 MB / 0.6411 GB, free: 5.938 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5771, allocations: 3.938 kB / 0.6411 GB, free: 5.934 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06521/0.6423, allocations: 41.13 MB / 0.6813 GB, free: 13 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.528/9.171, allocations: 10.97 kB / 0.6813 GB, free: 13 MB / 0.5137 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