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.0008172/0.0008172, allocations: 97.69 kB / 17 MB, free: 6.418 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.0007876/0.0007877, allocations: 187.5 kB / 17.89 MB, free: 5.945 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.318/1.318, allocations: 223.3 MB / 241.9 MB, free: 256 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2218/0.2218, allocations: 44.22 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003205/0.0003206, allocations: 9.094 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1263, allocations: 61.92 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.0255/0.1518, allocations: 25.88 MB / 497.5 MB, free: 3.688 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.1656, allocations: 5.341 MB / 0.4911 GB, free: 14.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007864/0.1735, allocations: 115.8 kB / 0.4912 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004651/0.1782, allocations: 1.252 MB / 0.4924 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01117/0.1894, allocations: 3.533 MB / 0.4959 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.1906, allocations: 79.92 kB / 0.4959 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005094/0.1957, allocations: 3.06 MB / 0.4989 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004276/0.2, allocations: 2.129 MB / 0.501 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002182/0.2022, allocations: 0.891 MB / 0.5019 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002477/0.2047, allocations: 1.386 MB / 0.5032 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009454/0.2057, allocations: 116 kB / 0.5033 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.2075, allocations: 383.4 kB / 0.5037 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002137/0.2097, allocations: 1.282 MB / 0.505 GB, free: 32 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.255/0.4647, allocations: 0.687 MB / 0.5056 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007222/0.4719, allocations: 4.156 MB / 0.5097 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.472, allocations: 2.5 kB / 0.5097 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.472, allocations: 2.219 kB / 0.5097 GB, free: 13.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002849/0.4723, allocations: 0 / 0.5097 GB, free: 13.07 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.007621/0.4799, allocations: 2.978 MB / 0.5126 GB, free: 11.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.48, allocations: 9.312 kB / 0.5126 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002026/0.482, allocations: 0.6714 MB / 0.5133 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009701/0.4917, allocations: 3.02 MB / 0.5162 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004167/0.4959, allocations: 1.51 MB / 0.5177 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/0.4961, allocations: 171.2 kB / 0.5179 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009492/0.4971, allocations: 227.4 kB / 0.5181 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0171/0.5142, allocations: 9.455 MB / 0.5273 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.507e-05/0.5144, allocations: 17.22 kB / 0.5273 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005702/0.5149, allocations: 107 kB / 0.5274 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003943/0.5189, allocations: 2.374 MB / 0.5297 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.5336, allocations: 8.628 MB / 0.5382 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04072/0.5744, allocations: 29.31 MB / 0.5668 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005013/0.5795, allocations: 3.045 MB / 0.5698 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.581, allocations: 0.9726 MB / 0.5707 GB, free: 10.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008425/0.5895, allocations: 4.843 MB / 0.5754 GB, free: 5.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.5895, allocations: 39.2 kB / 0.5755 GB, free: 5.035 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 4.679e-06/0.5896, allocations: 4 kB / 0.5755 GB, free: 5.031 MB / 414.1 MB Notification: Performance of matching and sorting (n=126): time 0.005801/0.5954, allocations: 2.731 MB / 0.5781 GB, free: 2.293 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.5954, allocations: 58.59 kB / 0.5782 GB, free: 2.227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003817/0.5993, allocations: 2.552 MB / 0.5807 GB, free: 15.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.5994, allocations: 37.7 kB / 0.5807 GB, free: 15.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/0.6011, allocations: 2.645 MB / 0.5833 GB, free: 12.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006115/0.6017, allocations: 0.4892 MB / 0.5838 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.6019, allocations: 82.81 kB / 0.5839 GB, free: 12.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003947/0.6023, allocations: 0.5515 MB / 0.5844 GB, free: 11.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002164/0.6045, allocations: 1.34 MB / 0.5857 GB, free: 10.49 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003832/0.6083, allocations: 4.106 MB / 0.5897 GB, free: 5.047 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003397/0.6117, allocations: 2.348 MB / 0.592 GB, free: 2.789 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.441e-05/0.6118, allocations: 31.98 kB / 0.5921 GB, free: 2.758 MB / 430.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.008612/0.6204, allocations: 5.247 MB / 0.5972 GB, free: 14.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.734e-05/0.6205, allocations: 48 kB / 0.5972 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/0.6206, allocations: 100 kB / 0.5973 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/0.6208, allocations: 140 kB / 0.5975 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00274/0.6235, allocations: 0.9742 MB / 0.5984 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001778/0.6237, allocations: 198.8 kB / 0.5986 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003432/0.6272, allocations: 0.5986 MB / 0.5992 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004314/0.6276, allocations: 280 kB / 0.5994 GB, free: 11.9 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004224/0.6318, allocations: 1.895 MB / 0.6013 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004285/0.6323, allocations: 213.2 kB / 0.6015 GB, free: 9.875 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005768/0.6329, allocations: 271.4 kB / 0.6018 GB, free: 9.605 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.358e-05/0.6329, allocations: 16 kB / 0.6018 GB, free: 9.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.6329, allocations: 3.953 kB / 0.6018 GB, free: 9.586 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.6329, allocations: 3.984 kB / 0.6018 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/0.6423, allocations: 5.597 MB / 0.6072 GB, free: 3.906 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.6424, allocations: 4 kB / 0.6072 GB, free: 3.902 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005564/0.6429, allocations: 139.2 kB / 0.6074 GB, free: 3.773 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.458e-05/0.643, allocations: 9.969 kB / 0.6074 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-05/0.643, allocations: 24.56 kB / 0.6074 GB, free: 3.742 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-05/0.643, allocations: 13.25 kB / 0.6074 GB, free: 3.734 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.607e-05/0.6431, allocations: 20.36 kB / 0.6074 GB, free: 3.719 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.6453, allocations: 1.777 MB / 0.6092 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005656/0.6458, allocations: 301.9 kB / 0.6095 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002118/0.6461, allocations: 23.98 kB / 0.6095 GB, free: 1.539 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.6466, allocations: 38.86 kB / 0.6095 GB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.6467, allocations: 63.91 kB / 0.6096 GB, free: 1.445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.433e-05/0.6468, allocations: 40 kB / 0.6096 GB, free: 1.406 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00243/0.6493, allocations: 1.545 MB / 0.6111 GB, free: 15.85 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6493, allocations: 0 / 0.6111 GB, free: 15.85 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003952/0.6532, allocations: 1.01 MB / 0.6121 GB, free: 14.84 MB / 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 (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.002582/0.6558, allocations: 2.428 MB / 0.6145 GB, free: 12.35 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005086/0.6609, allocations: 3.107 MB / 0.6175 GB, free: 9.527 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.6609, allocations: 4.875 kB / 0.6175 GB, free: 9.523 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008913/0.6618, allocations: 0.742 MB / 0.6183 GB, free: 8.809 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.6633, allocations: 253.1 kB / 0.6185 GB, free: 8.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03766/0.701, allocations: 21.39 MB / 0.6394 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004747/0.7058, allocations: 2.967 MB / 0.6423 GB, free: 13.82 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003664/0.7094, allocations: 1.489 MB / 0.6437 GB, free: 12.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002545/0.712, allocations: 1.511 MB / 0.6452 GB, free: 10.81 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/0.712, allocations: 7.938 kB / 0.6452 GB, free: 10.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1231/0.8351, allocations: 48.35 MB / 0.6924 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002487/0.8354, allocations: 179.6 kB / 0.6926 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.345/4.18, allocations: 4 kB / 0.6926 GB, free: 10.54 MB / 0.5294 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus_res.mat does not exist to compare? outputFormat=mat