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.0009442/0.0009444, allocations: 93.44 kB / 16.98 MB, free: 5.941 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.000891/0.000891, allocations: 181.4 kB / 17.87 MB, free: 5.609 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.383/1.383, allocations: 223.2 MB / 241.8 MB, free: 14.65 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.2184/0.2184, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003446, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1289, allocations: 61.93 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.0227/0.1516, allocations: 24.51 MB / 496.1 MB, free: 5.051 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.1647, allocations: 5.58 MB / 0.4899 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004602/0.1693, allocations: 119.7 kB / 0.49 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004132/0.1735, allocations: 1.264 MB / 0.4912 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01169/0.1853, allocations: 3.62 MB / 0.4948 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1865, allocations: 79.92 kB / 0.4948 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003396/0.1899, allocations: 1.514 MB / 0.4963 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002865/0.1928, allocations: 2.129 MB / 0.4984 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.194, allocations: 0.7473 MB / 0.4991 GB, free: 5.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.1951, allocations: 0.9769 MB / 0.5001 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002578/0.1953, allocations: 116 kB / 0.5002 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007583/0.1961, allocations: 379.5 kB / 0.5006 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008956/0.197, allocations: 1.188 MB / 0.5017 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005178/0.1975, allocations: 0.6869 MB / 0.5024 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2856/0.4831, allocations: 4.151 MB / 0.5064 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.4832, allocations: 0 / 0.5064 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4832, allocations: 0 / 0.5064 GB, free: 13.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002186/0.4834, allocations: 0 / 0.5064 GB, free: 13.96 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.006183/0.4896, allocations: 2.981 MB / 0.5093 GB, free: 12.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.4897, allocations: 9.906 kB / 0.5094 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001689/0.4914, allocations: 0.6707 MB / 0.51 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01249/0.5039, allocations: 3.571 MB / 0.5135 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005674/0.5096, allocations: 1.509 MB / 0.515 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003203/0.5099, allocations: 174.2 kB / 0.5151 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001983/0.5119, allocations: 227.8 kB / 0.5154 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02124/0.5332, allocations: 9.496 MB / 0.5246 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.593e-05/0.5333, allocations: 17.94 kB / 0.5246 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005967/0.5339, allocations: 109.3 kB / 0.5248 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003997/0.5379, allocations: 2.375 MB / 0.5271 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01766/0.5556, allocations: 8.683 MB / 0.5356 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04097/0.5966, allocations: 29.34 MB / 0.5642 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004648/0.6013, allocations: 3.062 MB / 0.5672 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008959/0.6103, allocations: 4.862 MB / 0.5719 GB, free: 8.145 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.6103, allocations: 39.2 kB / 0.572 GB, free: 8.098 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 4.158e-06/0.6104, allocations: 3.562 kB / 0.572 GB, free: 8.098 MB / 414.1 MB Notification: Performance of matching and sorting (n=126): time 0.006125/0.6165, allocations: 3.248 MB / 0.5752 GB, free: 4.727 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.6165, allocations: 62.69 kB / 0.5752 GB, free: 4.656 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003633/0.6202, allocations: 2.552 MB / 0.5777 GB, free: 2.078 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.6203, allocations: 44.36 kB / 0.5778 GB, free: 2.031 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.6222, allocations: 2.647 MB / 0.5803 GB, free: 15.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005106/0.6227, allocations: 496.5 kB / 0.5808 GB, free: 14.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.6229, allocations: 84 kB / 0.5809 GB, free: 14.83 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003902/0.6233, allocations: 0.5494 MB / 0.5814 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/0.6253, allocations: 1.336 MB / 0.5827 GB, free: 12.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004703/0.63, allocations: 4.085 MB / 0.5867 GB, free: 7.504 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003772/0.6338, allocations: 2.348 MB / 0.589 GB, free: 5.242 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.478e-05/0.6339, allocations: 34.08 kB / 0.589 GB, free: 5.211 MB / 430.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.009156/0.6431, allocations: 5.248 MB / 0.5942 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.592e-05/0.6432, allocations: 48 kB / 0.5942 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/0.6433, allocations: 96 kB / 0.5943 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/0.6434, allocations: 144 kB / 0.5944 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003109/0.6466, allocations: 0.9773 MB / 0.5954 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001491/0.6467, allocations: 198.4 kB / 0.5956 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003395/0.6501, allocations: 0.604 MB / 0.5962 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004325/0.6506, allocations: 282.6 kB / 0.5965 GB, free: 14.34 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.003549/0.6541, allocations: 1.89 MB / 0.5983 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004184/0.6546, allocations: 209.2 kB / 0.5985 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004984/0.6551, allocations: 271.4 kB / 0.5988 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.332e-05/0.6551, allocations: 18.73 kB / 0.5988 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/0.6551, allocations: 3.984 kB / 0.5988 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.6551, allocations: 3.953 kB / 0.5988 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009618/0.6648, allocations: 5.609 MB / 0.6043 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.6648, allocations: 4 kB / 0.6043 GB, free: 6.305 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000553/0.6654, allocations: 139.7 kB / 0.6044 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.178e-05/0.6654, allocations: 8 kB / 0.6044 GB, free: 6.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.147e-05/0.6655, allocations: 20 kB / 0.6044 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.634e-06/0.6655, allocations: 8 kB / 0.6044 GB, free: 6.133 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.513e-06/0.6655, allocations: 7.938 kB / 0.6044 GB, free: 6.125 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/0.6676, allocations: 2.118 MB / 0.6065 GB, free: 3.812 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005488/0.6681, allocations: 309.8 kB / 0.6068 GB, free: 3.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/0.6683, allocations: 20 kB / 0.6068 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005742/0.6689, allocations: 35.95 kB / 0.6069 GB, free: 3.434 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.669, allocations: 66.36 kB / 0.6069 GB, free: 3.371 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.737e-05/0.6691, allocations: 38.58 kB / 0.607 GB, free: 3.336 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001946/0.6711, allocations: 1.545 MB / 0.6085 GB, free: 1.777 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6711, allocations: 0 / 0.6085 GB, free: 1.777 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003554/0.6746, allocations: 1.005 MB / 0.6094 GB, free: 0.7734 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 (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.00283/0.6775, allocations: 3.876 MB / 0.6132 GB, free: 12.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004463/0.682, allocations: 3.113 MB / 0.6163 GB, free: 9.664 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.682, allocations: 0 / 0.6163 GB, free: 9.664 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007788/0.6828, allocations: 0.7425 MB / 0.617 GB, free: 8.926 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/0.6837, allocations: 236 kB / 0.6172 GB, free: 8.703 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2602/0.9439, allocations: 88.49 MB / 0.7036 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004201/0.9482, allocations: 3.047 MB / 0.7066 GB, free: 195.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003763/0.952, allocations: 1.486 MB / 0.7081 GB, free: 195.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001863/0.9538, allocations: 1.515 MB / 0.7095 GB, free: 194.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.81e-07/0.9538, allocations: 0 / 0.7095 GB, free: 194.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07453/1.028, allocations: 48.32 MB / 0.7567 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/1.029, allocations: 180.1 kB / 0.7569 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.017/4.046, allocations: 4 kB / 0.7569 GB, free: 157.2 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