Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001794/0.001794, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002104/0.002104, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 246.8 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2276/0.2276, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002427/0.002427, allocations: 79.7 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.141, allocations: 62.45 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01376/0.1548, allocations: 11.24 MB / 491.5 MB, free: 9.809 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00658/0.1615, allocations: 2.819 MB / 494.3 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.1633, allocations: 59.88 kB / 494.3 MB, free: 6.922 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003109/0.1665, allocations: 1.327 MB / 495.7 MB, free: 5.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004519/0.171, allocations: 1.213 MB / 496.9 MB, free: 4.375 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.1716, allocations: 79.84 kB / 496.9 MB, free: 4.297 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005297/0.1769, allocations: 2.705 MB / 499.7 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003637/0.1806, allocations: 1.848 MB / 0.4897 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002515/0.1831, allocations: 1.047 MB / 0.4908 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002999/0.1861, allocations: 1.436 MB / 0.4922 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008432/0.187, allocations: 208 kB / 0.4924 GB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001744/0.1888, allocations: 0.4955 MB / 0.4929 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001953/0.1908, allocations: 1.379 MB / 0.4942 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002819/0.1936, allocations: 1.7 MB / 0.4959 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007678/0.2013, allocations: 5.151 MB / 0.5009 GB, free: 4.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.2013, allocations: 3.938 kB / 0.5009 GB, free: 4.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2013, allocations: 0 / 0.5009 GB, free: 4.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001521/0.2015, allocations: 0 / 0.5009 GB, free: 4.242 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.006567/0.2081, allocations: 3.57 MB / 0.5044 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.2082, allocations: 12.03 kB / 0.5044 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1949/0.403, allocations: 0.6648 MB / 0.505 GB, free: 39.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.4137, allocations: 2.935 MB / 0.5079 GB, free: 39.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002935/0.4166, allocations: 1.52 MB / 0.5094 GB, free: 38.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.4168, allocations: 177.1 kB / 0.5096 GB, free: 38.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005147/0.4173, allocations: 222 kB / 0.5098 GB, free: 38.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01389/0.4312, allocations: 9.472 MB / 0.519 GB, free: 34.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.692e-05/0.4313, allocations: 23.62 kB / 0.519 GB, free: 34.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003175/0.4316, allocations: 107.7 kB / 0.5191 GB, free: 34.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003377/0.435, allocations: 2.38 MB / 0.5215 GB, free: 33.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01293/0.4479, allocations: 8.668 MB / 0.5299 GB, free: 27.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03273/0.4807, allocations: 29.29 MB / 0.5585 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00555/0.4863, allocations: 3.046 MB / 0.5615 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.488, allocations: 0.9889 MB / 0.5625 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009542/0.4975, allocations: 4.832 MB / 0.5672 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.4976, allocations: 53.59 kB / 0.5672 GB, free: 4.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=126): time 4.829e-06/0.4977, allocations: 0 / 0.5672 GB, free: 4.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=126): time 0.006313/0.504, allocations: 2.728 MB / 0.5699 GB, free: 1.375 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.5041, allocations: 60.06 kB / 0.57 GB, free: 1.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00459/0.5087, allocations: 2.561 MB / 0.5725 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.5088, allocations: 41.7 kB / 0.5725 GB, free: 14.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002174/0.511, allocations: 2.637 MB / 0.5751 GB, free: 11.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006385/0.5116, allocations: 0.4937 MB / 0.5756 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/0.5131, allocations: 0.9005 MB / 0.5764 GB, free: 10.58 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.5133, allocations: 361.9 kB / 0.5768 GB, free: 10.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/0.5154, allocations: 1.352 MB / 0.5781 GB, free: 8.859 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004628/0.52, allocations: 4.122 MB / 0.5821 GB, free: 3.348 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007891/0.5279, allocations: 5.968 MB / 0.588 GB, free: 12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.903e-05/0.5281, allocations: 31.94 kB / 0.588 GB, free: 11.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01105/0.5391, allocations: 5.278 MB / 0.5932 GB, free: 6.688 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/0.5393, allocations: 44 kB / 0.5932 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001693/0.5395, allocations: 100 kB / 0.5933 GB, free: 6.547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.5397, allocations: 128.8 kB / 0.5934 GB, free: 6.422 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003034/0.5427, allocations: 0.9747 MB / 0.5944 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001991/0.5429, allocations: 195.3 kB / 0.5945 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003016/0.5459, allocations: 0.603 MB / 0.5951 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005445/0.5465, allocations: 276 kB / 0.5954 GB, free: 4.375 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.003158/0.5497, allocations: 1.895 MB / 0.5973 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004098/0.5501, allocations: 213.2 kB / 0.5975 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005446/0.5506, allocations: 275.3 kB / 0.5977 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.661e-05/0.5507, allocations: 16 kB / 0.5977 GB, free: 1.965 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.5507, allocations: 2.531 kB / 0.5977 GB, free: 1.965 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.5507, allocations: 3.984 kB / 0.5977 GB, free: 1.961 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.5616, allocations: 5.611 MB / 0.6032 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/0.5616, allocations: 4 kB / 0.6032 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000597/0.5622, allocations: 139.7 kB / 0.6034 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.368e-05/0.5622, allocations: 4 kB / 0.6034 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.712e-05/0.5623, allocations: 27.97 kB / 0.6034 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.384e-05/0.5623, allocations: 8 kB / 0.6034 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.896e-06/0.5624, allocations: 11.94 kB / 0.6034 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.5648, allocations: 1.792 MB / 0.6052 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006138/0.5655, allocations: 278.1 kB / 0.6054 GB, free: 9.879 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004339/0.5659, allocations: 27.98 kB / 0.6054 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008026/0.5667, allocations: 43.89 kB / 0.6055 GB, free: 9.809 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.5669, allocations: 60.36 kB / 0.6055 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.697e-05/0.567, allocations: 40 kB / 0.6056 GB, free: 9.711 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002823/0.5698, allocations: 1.56 MB / 0.6071 GB, free: 8.137 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5698, allocations: 4 kB / 0.6071 GB, free: 8.133 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004464/0.5743, allocations: 0.9887 MB / 0.6081 GB, free: 7.145 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.003431/0.5778, allocations: 2.424 MB / 0.6104 GB, free: 4.641 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006971/0.5847, allocations: 3.962 MB / 0.6143 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.5848, allocations: 0 / 0.6143 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.5858, allocations: 0.739 MB / 0.615 GB, free: 15.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.5876, allocations: 270.6 kB / 0.6153 GB, free: 15.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04965/0.6373, allocations: 31.06 MB / 0.6456 GB, free: 11.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005188/0.6425, allocations: 2.969 MB / 0.6485 GB, free: 8.879 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004296/0.6469, allocations: 1.48 MB / 0.65 GB, free: 7.391 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002758/0.6496, allocations: 1.511 MB / 0.6515 GB, free: 5.879 MB / 494.1 MB Notification: Performance of SimCode: time 1.502e-06/0.6497, allocations: 0 / 0.6515 GB, free: 5.879 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0901/0.7398, allocations: 41.05 MB / 0.6915 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.151/9.891, allocations: 8.75 kB / 0.6915 GB, free: 12.98 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1)