Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001881/0.001881, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009494/0.0009491, allocations: 85.97 kB / 281.6 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2192/0.2192, allocations: 44.14 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.415e-05/2.403e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.143, allocations: 61.92 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4987/0.6418, allocations: 108.9 MB / 0.6012 GB, free: 3.375 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.6421, allocations: 79.95 kB / 0.6012 GB, free: 3.297 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2116/0.8537, allocations: 80.45 MB / 0.6798 GB, free: 2.285 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.8538, allocations: 0 / 0.6798 GB, free: 2.285 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003281/0.8542, allocations: 83.98 kB / 0.6799 GB, free: 2.203 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.02084/0.875, allocations: 4.348 MB / 0.6841 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.36e-05/0.8751, allocations: 11.98 kB / 0.6841 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01076/0.8859, allocations: 2.178 MB / 0.6863 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01218/0.8981, allocations: 4.266 MB / 0.6904 GB, free: 7.262 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003076/0.8985, allocations: 132 kB / 0.6906 GB, free: 7.133 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002908/0.9014, allocations: 228 kB / 0.6908 GB, free: 6.91 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01274/0.9141, allocations: 6.083 MB / 0.6967 GB, free: 0.8203 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3439/1.258, allocations: 9.207 MB / 0.7057 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004825/1.259, allocations: 59.17 kB / 0.7058 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002164/1.261, allocations: 32.33 kB / 0.7058 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002078/1.263, allocations: 0.9457 MB / 0.7067 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0534/1.316, allocations: 44.07 MB / 0.7497 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00362/1.32, allocations: 3.025 MB / 0.7527 GB, free: 83.93 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002006/1.322, allocations: 1.599 MB / 0.7543 GB, free: 83.27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006944/1.329, allocations: 4.315 MB / 0.7585 GB, free: 80.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/1.329, allocations: 43.09 kB / 0.7585 GB, free: 80.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=121): time 3.256e-06/1.329, allocations: 2.719 kB / 0.7585 GB, free: 80.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=128): time 0.01824/1.347, allocations: 11.25 MB / 0.7695 GB, free: 75.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/1.347, allocations: 140.5 kB / 0.7696 GB, free: 75.77 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004141/1.352, allocations: 2.992 MB / 0.7726 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002771/1.352, allocations: 25.7 kB / 0.7726 GB, free: 74.65 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001589/1.353, allocations: 3.089 MB / 0.7756 GB, free: 72.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005563/1.354, allocations: 0.5096 MB / 0.7761 GB, free: 71.92 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/1.354, allocations: 3.875 kB / 0.7761 GB, free: 71.92 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002745/1.355, allocations: 0.5429 MB / 0.7766 GB, free: 71.51 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002075/1.357, allocations: 1.67 MB / 0.7783 GB, free: 70.94 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003576/1.36, allocations: 5.361 MB / 0.7835 GB, free: 65.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003864/1.364, allocations: 2.962 MB / 0.7864 GB, free: 64.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001114/1.364, allocations: 43.44 kB / 0.7864 GB, free: 64.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=740) (initialization): time 0.01309/1.377, allocations: 6.848 MB / 0.7931 GB, free: 62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.011e-05/1.377, allocations: 62.84 kB / 0.7932 GB, free: 62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001407/1.378, allocations: 137.3 kB / 0.7933 GB, free: 61.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002271/1.38, allocations: 0.9073 MB / 0.7942 GB, free: 61.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004081/1.384, allocations: 1.324 MB / 0.7955 GB, free: 61.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005874/1.39, allocations: 4.603 MB / 0.8 GB, free: 59.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005524/1.395, allocations: 195.8 kB / 0.8002 GB, free: 59.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008812/1.396, allocations: 362.1 kB / 0.8005 GB, free: 59.16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * Number of states: 0 () * Number of discrete variables: 38 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (701): * Single equations (assignments): 697 * 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.0008139/1.397, allocations: 446.6 kB / 0.8009 GB, free: 58.79 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004766/1.402, allocations: 2.714 MB / 0.8036 GB, free: 57.91 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006055/1.403, allocations: 298.1 kB / 0.8039 GB, free: 57.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004479/1.407, allocations: 2.39 MB / 0.8062 GB, free: 56.99 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-05/1.407, allocations: 14.97 kB / 0.8062 GB, free: 56.99 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/1.407, allocations: 7.25 kB / 0.8062 GB, free: 56.99 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/1.407, allocations: 6.797 kB / 0.8062 GB, free: 56.99 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/1.417, allocations: 5.607 MB / 0.8117 GB, free: 53.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.026e-06/1.417, allocations: 3.938 kB / 0.8117 GB, free: 53.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000989/1.418, allocations: 201.4 kB / 0.8119 GB, free: 53.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/1.42, allocations: 0.6999 MB / 0.8126 GB, free: 52.92 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.817e-05/1.42, allocations: 4 kB / 0.8126 GB, free: 52.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004411/1.425, allocations: 4.177 MB / 0.8167 GB, free: 49.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/1.425, allocations: 0 / 0.8167 GB, free: 49.18 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005792/1.43, allocations: 4.47 MB / 0.821 GB, free: 45.36 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/1.432, allocations: 351.8 kB / 0.8214 GB, free: 45 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004117/1.432, allocations: 0 / 0.8214 GB, free: 45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/1.433, allocations: 64.03 kB / 0.8214 GB, free: 44.96 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/1.433, allocations: 74 kB / 0.8215 GB, free: 44.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.752e-05/1.433, allocations: 35.88 kB / 0.8215 GB, free: 44.88 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003098/1.437, allocations: 1.984 MB / 0.8235 GB, free: 43.16 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/1.437, allocations: 3.281 kB / 0.8235 GB, free: 43.16 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005076/1.442, allocations: 0.7821 MB / 0.8243 GB, free: 42.39 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 92 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006096/1.448, allocations: 5.259 MB / 0.8294 GB, free: 37.78 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006728/1.455, allocations: 4.017 MB / 0.8333 GB, free: 34.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/1.455, allocations: 0 / 0.8333 GB, free: 34.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001485/1.456, allocations: 1.145 MB / 0.8344 GB, free: 33.13 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003063/1.459, allocations: 326.5 kB / 0.8347 GB, free: 32.86 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02463/1.484, allocations: 7.823 MB / 0.8424 GB, free: 26.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004319/1.488, allocations: 3.183 MB / 0.8455 GB, free: 23.67 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004519/1.493, allocations: 1.761 MB / 0.8472 GB, free: 22.57 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002306/1.495, allocations: 1.744 MB / 0.8489 GB, free: 20.87 MB / 0.4948 GB Notification: Performance of SimCode: time 1.563e-06/1.495, allocations: 0 / 0.8489 GB, free: 20.87 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4493/1.944, allocations: 64.28 MB / 0.9117 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/1.945, allocations: 135.6 kB / 0.9118 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.1/6.044, allocations: 0 / 0.9118 GB, free: 123.5 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat