Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002268/0.002268, allocations: 180.9 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.178/2.178, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.287/0.287, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.58e-05/3.598e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.123, allocations: 58.87 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5393/0.6624, allocations: 109.2 MB / 0.5795 GB, free: 10.64 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.6627, allocations: 89.39 kB / 0.5796 GB, free: 10.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4288/1.092, allocations: 98.42 MB / 0.6757 GB, free: 15.88 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.933e-06/1.092, allocations: 0 / 0.6757 GB, free: 15.88 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003346/1.092, allocations: 96 kB / 0.6758 GB, free: 15.79 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.03151/1.123, allocations: 5.522 MB / 0.6812 GB, free: 10.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/1.124, allocations: 12.03 kB / 0.6812 GB, free: 10.19 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00401/1.128, allocations: 0.9234 MB / 0.6821 GB, free: 9.25 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01848/1.146, allocations: 2.317 MB / 0.6844 GB, free: 6.922 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02007/1.166, allocations: 4.984 MB / 0.6892 GB, free: 1.875 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005893/1.167, allocations: 410.2 kB / 0.6896 GB, free: 1.473 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003229/1.17, allocations: 0.5037 MB / 0.6901 GB, free: 0.9688 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04446/1.215, allocations: 12.88 MB / 0.7027 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003412/1.215, allocations: 63.41 kB / 0.7028 GB, free: 2.965 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002328/1.217, allocations: 251.9 kB / 0.703 GB, free: 2.719 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00331/1.221, allocations: 1.212 MB / 0.7042 GB, free: 1.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4042/1.625, allocations: 11.08 MB / 0.715 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09699/1.722, allocations: 55.86 MB / 0.7696 GB, free: 77.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02706/1.749, allocations: 5.275 MB / 0.7747 GB, free: 75.73 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006684/1.756, allocations: 3.278 MB / 0.7779 GB, free: 74.37 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00241/1.758, allocations: 1.015 MB / 0.7789 GB, free: 73.48 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.514e-05/1.758, allocations: 57.59 kB / 0.779 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=224): time 7.193e-06/1.758, allocations: 0 / 0.779 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of matching and sorting (n=255): time 0.1032/1.862, allocations: 21.96 MB / 0.8004 GB, free: 65.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/1.862, allocations: 152.1 kB / 0.8006 GB, free: 65.78 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008946/1.871, allocations: 3.987 MB / 0.8045 GB, free: 64.37 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000767/1.872, allocations: 64.55 kB / 0.8045 GB, free: 64.31 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002885/1.874, allocations: 3.44 MB / 0.8079 GB, free: 61.69 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001628/1.876, allocations: 0.9624 MB / 0.8088 GB, free: 60.98 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009736/1.877, allocations: 141.5 kB / 0.8089 GB, free: 60.88 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004734/1.878, allocations: 0.5953 MB / 0.8095 GB, free: 60.45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007541/1.885, allocations: 2.973 MB / 0.8124 GB, free: 59.43 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01/1.895, allocations: 6.895 MB / 0.8192 GB, free: 53.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01014/1.905, allocations: 4.471 MB / 0.8235 GB, free: 49.97 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/1.906, allocations: 44 kB / 0.8236 GB, free: 49.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02949/1.935, allocations: 10.59 MB / 0.8339 GB, free: 40.86 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/1.935, allocations: 67.95 kB / 0.834 GB, free: 40.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001866/1.936, allocations: 143.9 kB / 0.8341 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00489/1.94, allocations: 1.132 MB / 0.8352 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01153/1.952, allocations: 1.714 MB / 0.8369 GB, free: 38.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/1.963, allocations: 5.91 MB / 0.8427 GB, free: 33.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008803/1.972, allocations: 424.9 kB / 0.8431 GB, free: 32.81 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001823/1.974, allocations: 432.4 kB / 0.8435 GB, free: 32.42 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (855): * Single equations (assignments): 851 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002202/1.976, allocations: 0.6206 MB / 0.8441 GB, free: 31.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/1.978, allocations: 410.7 kB / 0.8445 GB, free: 31.39 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01645/1.994, allocations: 5.587 MB / 0.8499 GB, free: 26.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.854e-05/1.994, allocations: 24.7 kB / 0.85 GB, free: 26.88 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/1.994, allocations: 7.938 kB / 0.85 GB, free: 26.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.192e-05/1.994, allocations: 18.69 kB / 0.85 GB, free: 26.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03554/2.03, allocations: 12.25 MB / 0.862 GB, free: 16.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-05/2.03, allocations: 7.625 kB / 0.862 GB, free: 16.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005476/2.035, allocations: 0.5144 MB / 0.8625 GB, free: 16.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004758/2.04, allocations: 0.9322 MB / 0.8634 GB, free: 15.87 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001094/2.041, allocations: 47.94 kB / 0.8634 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01644/2.058, allocations: 5.654 MB / 0.8689 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/2.058, allocations: 4 kB / 0.869 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03279/2.091, allocations: 9.834 MB / 0.8786 GB, free: 0.9297 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00501/2.096, allocations: 0.9135 MB / 0.8794 GB, free: 15.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002285/2.098, allocations: 47.77 kB / 0.8795 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007028/2.105, allocations: 195.7 kB / 0.8797 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001609/2.107, allocations: 149.7 kB / 0.8798 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00064/2.108, allocations: 71.98 kB / 0.8799 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01191/2.12, allocations: 2.791 MB / 0.8826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.172e-06/2.12, allocations: 0 / 0.8826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01347/2.133, allocations: 1.262 MB / 0.8838 GB, free: 11.49 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 224 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0347/2.168, allocations: 11.19 MB / 0.8948 GB, free: 152 kB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.4006/2.569, allocations: 7.172 MB / 0.9018 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/2.569, allocations: 3.375 kB / 0.9018 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008067/2.577, allocations: 2.719 MB / 0.9044 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004496/2.581, allocations: 458.2 kB / 0.9049 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04428/2.626, allocations: 12.36 MB / 0.9169 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008767/2.634, allocations: 3.911 MB / 0.9208 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006894/2.641, allocations: 2.386 MB / 0.9231 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.713e-06/2.641, allocations: 2.344 kB / 0.9231 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.707/7.349, allocations: 121.7 MB / 1.042 GB, free: 41.61 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat does not exist to compare? outputFormat=mat