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.002262/0.002262, allocations: 187.9 kB / 16.41 MB, free: 5.723 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.018/2.018, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001106/0.001106, allocations: 88.42 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.6587/0.6587, allocations: 43.55 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006389/0.0006388, allocations: 12 kB / 431.5 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1299, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5285/0.6585, allocations: 109.3 MB / 0.5856 GB, free: 9.062 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/0.6588, allocations: 87.94 kB / 0.5856 GB, free: 8.977 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7722/1.431, allocations: 98.34 MB / 0.6817 GB, free: 85 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.917e-06/1.431, allocations: 2.719 kB / 0.6817 GB, free: 85 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004537/1.432, allocations: 96 kB / 0.6818 GB, free: 85 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.04585/1.477, allocations: 5.789 MB / 0.6874 GB, free: 82.89 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.805e-05/1.478, allocations: 11.81 kB / 0.6874 GB, free: 82.89 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006058/1.484, allocations: 0.9255 MB / 0.6883 GB, free: 82.81 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02554/1.509, allocations: 2.324 MB / 0.6906 GB, free: 82.46 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02534/1.535, allocations: 5.01 MB / 0.6955 GB, free: 81.84 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007605/1.535, allocations: 394.4 kB / 0.6959 GB, free: 81.83 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004111/1.54, allocations: 0.5101 MB / 0.6964 GB, free: 81.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05757/1.597, allocations: 13 MB / 0.7091 GB, free: 78.97 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005629/1.598, allocations: 67.78 kB / 0.7091 GB, free: 78.96 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003672/1.602, allocations: 248.2 kB / 0.7094 GB, free: 78.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004478/1.606, allocations: 1.216 MB / 0.7105 GB, free: 78.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0543/1.66, allocations: 11.29 MB / 0.7216 GB, free: 78.89 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1292/1.79, allocations: 55.87 MB / 0.7761 GB, free: 39.48 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03836/1.828, allocations: 5.337 MB / 0.7813 GB, free: 37.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003103/1.831, allocations: 1.011 MB / 0.7823 GB, free: 36.72 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001026/1.831, allocations: 63.17 kB / 0.7824 GB, free: 36.66 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 9.148e-06/1.831, allocations: 4 kB / 0.7824 GB, free: 36.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=255): time 0.1662/1.998, allocations: 26.17 MB / 0.808 GB, free: 26.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.369e-05/1.998, allocations: 154.5 kB / 0.8081 GB, free: 26.37 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01415/2.012, allocations: 4.034 MB / 0.812 GB, free: 22.95 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001012/2.013, allocations: 61.7 kB / 0.8121 GB, free: 22.88 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004262/2.017, allocations: 3.442 MB / 0.8155 GB, free: 19.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002409/2.02, allocations: 0.9472 MB / 0.8164 GB, free: 18.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001901/2.022, allocations: 140 kB / 0.8165 GB, free: 18.79 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001036/2.023, allocations: 0.5968 MB / 0.8171 GB, free: 18.27 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0122/2.035, allocations: 3.053 MB / 0.8201 GB, free: 15.71 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01498/2.05, allocations: 6.974 MB / 0.8269 GB, free: 7.406 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01517/2.065, allocations: 4.516 MB / 0.8313 GB, free: 3.387 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001734/2.066, allocations: 43.95 kB / 0.8314 GB, free: 3.344 MB / 490.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.04582/2.111, allocations: 10.76 MB / 0.8419 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000209/2.112, allocations: 64.19 kB / 0.8419 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003892/2.112, allocations: 143.9 kB / 0.8421 GB, free: 9.926 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007047/2.119, allocations: 1.136 MB / 0.8432 GB, free: 9.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01567/2.135, allocations: 1.704 MB / 0.8448 GB, free: 7.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01817/2.153, allocations: 6.038 MB / 0.8507 GB, free: 2.355 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01217/2.165, allocations: 422 kB / 0.8511 GB, free: 2.008 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002421/2.168, allocations: 428.1 kB / 0.8515 GB, free: 1.598 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 () * Number of clocked 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.01045/2.178, allocations: 2.434 MB / 0.8539 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001977/2.18, allocations: 410.7 kB / 0.8543 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03048/2.211, allocations: 5.673 MB / 0.8598 GB, free: 9.055 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001141/2.211, allocations: 28 kB / 0.8599 GB, free: 9.027 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.777e-05/2.211, allocations: 7.75 kB / 0.8599 GB, free: 9.023 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-05/2.211, allocations: 11.95 kB / 0.8599 GB, free: 9.012 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.443/2.654, allocations: 12.37 MB / 0.872 GB, free: 104 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.671e-05/2.654, allocations: 5.391 kB / 0.872 GB, free: 104 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005696/2.66, allocations: 0.5137 MB / 0.8725 GB, free: 104 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004874/2.665, allocations: 0.9344 MB / 0.8734 GB, free: 104 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008304/2.666, allocations: 52.97 kB / 0.8734 GB, free: 104 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/2.678, allocations: 5.757 MB / 0.8791 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/2.678, allocations: 5.406 kB / 0.8791 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02498/2.703, allocations: 9.99 MB / 0.8888 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003558/2.707, allocations: 0.9175 MB / 0.8897 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001676/2.709, allocations: 41.89 kB / 0.8898 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004929/2.713, allocations: 194.6 kB / 0.8899 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001119/2.715, allocations: 154 kB / 0.8901 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003315/2.715, allocations: 73.17 kB / 0.8902 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007468/2.722, allocations: 2.83 MB / 0.8929 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.92e-07/2.723, allocations: 0 / 0.8929 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008871/2.731, allocations: 1.264 MB / 0.8942 GB, free: 101.3 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 () * Number of clocked 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.02691/2.758, allocations: 11.34 MB / 0.9052 GB, free: 99.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0202/2.779, allocations: 7.313 MB / 0.9124 GB, free: 97.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/2.779, allocations: 4.375 kB / 0.9124 GB, free: 97.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008493/2.787, allocations: 2.776 MB / 0.9151 GB, free: 96.48 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004658/2.792, allocations: 458.8 kB / 0.9155 GB, free: 96.28 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1407/2.933, allocations: 140.5 MB / 1.053 GB, free: 20.41 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009673/2.942, allocations: 3.907 MB / 1.057 GB, free: 19 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007415/2.95, allocations: 2.382 MB / 1.059 GB, free: 17.12 MB / 0.5573 GB Notification: Performance of SimCode: time 2.405e-06/2.95, allocations: 3.656 kB / 1.059 GB, free: 17.12 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.327/8.277, allocations: 121.7 MB / 1.178 GB, free: 136 MB / 0.5573 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