Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001041/0.001041, allocations: 182.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001051/0.001051, allocations: 89.52 kB / 267 MB, free: 9.281 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.4134/0.4134, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.985e-05/4.987e-05, allocations: 7.984 kB / 425.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1435, allocations: 58.84 MB / 484.3 MB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4909/0.6345, allocations: 109.2 MB / 0.5795 GB, free: 12.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.6349, allocations: 78.33 kB / 0.5796 GB, free: 12.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2514/0.8863, allocations: 98.43 MB / 0.6757 GB, free: 2.836 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.8863, allocations: 0 / 0.6757 GB, free: 2.836 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000284/0.8866, allocations: 99.98 kB / 0.6758 GB, free: 2.738 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.02394/0.9106, allocations: 5.518 MB / 0.6812 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.9107, allocations: 12.03 kB / 0.6812 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005007/0.9157, allocations: 0.9273 MB / 0.6821 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/0.9285, allocations: 2.317 MB / 0.6844 GB, free: 9.871 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01663/0.9452, allocations: 4.989 MB / 0.6893 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006214/0.9459, allocations: 402.2 kB / 0.6897 GB, free: 4.426 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003732/0.9497, allocations: 0.5076 MB / 0.6902 GB, free: 3.918 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4091/1.359, allocations: 12.86 MB / 0.7027 GB, free: 87.27 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004126/1.359, allocations: 66.17 kB / 0.7028 GB, free: 87.27 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002058/1.361, allocations: 247.4 kB / 0.703 GB, free: 87.27 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001737/1.363, allocations: 1.216 MB / 0.7042 GB, free: 87.25 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02604/1.389, allocations: 11.08 MB / 0.715 GB, free: 87.21 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08235/1.472, allocations: 55.87 MB / 0.7696 GB, free: 54.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01843/1.49, allocations: 5.267 MB / 0.7747 GB, free: 52.85 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005558/1.496, allocations: 3.282 MB / 0.7779 GB, free: 51.48 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001763/1.497, allocations: 1.014 MB / 0.7789 GB, free: 50.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.064e-05/1.498, allocations: 67.52 kB / 0.779 GB, free: 50.53 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=224): time 6.442e-06/1.498, allocations: 3.531 kB / 0.779 GB, free: 50.53 MB / 0.4948 GB Notification: Performance of matching and sorting (n=255): time 0.06673/1.564, allocations: 21.95 MB / 0.8004 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/1.564, allocations: 161.2 kB / 0.8006 GB, free: 42.86 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01123/1.576, allocations: 3.984 MB / 0.8045 GB, free: 41.45 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009919/1.577, allocations: 66.08 kB / 0.8045 GB, free: 41.39 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004305/1.581, allocations: 3.542 MB / 0.808 GB, free: 38.78 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002413/1.584, allocations: 0.964 MB / 0.8089 GB, free: 38.07 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001576/1.585, allocations: 136.2 kB / 0.8091 GB, free: 37.96 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009377/1.586, allocations: 0.5997 MB / 0.8097 GB, free: 37.54 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005693/1.592, allocations: 2.971 MB / 0.8126 GB, free: 36.52 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008303/1.6, allocations: 6.89 MB / 0.8193 GB, free: 30.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008165/1.608, allocations: 4.476 MB / 0.8237 GB, free: 28.56 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002066/1.609, allocations: 40.59 kB / 0.8237 GB, free: 28.56 MB / 0.4948 GB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02481/1.633, allocations: 10.74 MB / 0.8342 GB, free: 24.76 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002256/1.634, allocations: 68.97 kB / 0.8343 GB, free: 24.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003106/1.634, allocations: 136 kB / 0.8344 GB, free: 24.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00296/1.637, allocations: 1.133 MB / 0.8355 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007342/1.644, allocations: 1.711 MB / 0.8372 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007729/1.652, allocations: 5.923 MB / 0.8429 GB, free: 19.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007412/1.66, allocations: 426.1 kB / 0.8433 GB, free: 19.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002097/1.662, allocations: 431.2 kB / 0.8438 GB, free: 18.89 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.003155/1.665, allocations: 0.6197 MB / 0.8444 GB, free: 18.26 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/1.667, allocations: 414.6 kB / 0.8448 GB, free: 17.85 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.014/1.681, allocations: 5.582 MB / 0.8502 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.736e-05/1.681, allocations: 28 kB / 0.8502 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.971e-05/1.681, allocations: 4 kB / 0.8502 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.315e-05/1.681, allocations: 10.36 kB / 0.8503 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02895/1.71, allocations: 12.26 MB / 0.8622 GB, free: 3.383 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.243e-05/1.71, allocations: 8.266 kB / 0.8622 GB, free: 3.375 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002926/1.713, allocations: 0.5127 MB / 0.8627 GB, free: 2.973 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002424/1.715, allocations: 0.9326 MB / 0.8636 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006687/1.716, allocations: 51.66 kB / 0.8637 GB, free: 2.289 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009203/1.725, allocations: 5.721 MB / 0.8693 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/1.725, allocations: 7.953 kB / 0.8693 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01785/1.743, allocations: 9.833 MB / 0.8789 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003496/1.747, allocations: 0.9181 MB / 0.8798 GB, free: 3.875 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001529/1.748, allocations: 43.95 kB / 0.8798 GB, free: 3.832 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00347/1.752, allocations: 196.7 kB / 0.88 GB, free: 3.707 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007486/1.752, allocations: 151.8 kB / 0.8802 GB, free: 3.609 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003684/1.753, allocations: 66.94 kB / 0.8802 GB, free: 3.551 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008552/1.761, allocations: 2.79 MB / 0.883 GB, free: 1.074 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.72e-07/1.761, allocations: 3.188 kB / 0.883 GB, free: 1.074 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0113/1.773, allocations: 1.344 MB / 0.8843 GB, free: 0 / 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.4225/2.195, allocations: 11.19 MB / 0.8952 GB, free: 95.58 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01551/2.211, allocations: 7.174 MB / 0.9022 GB, free: 95.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/2.211, allocations: 0 / 0.9022 GB, free: 95.42 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005402/2.216, allocations: 2.724 MB / 0.9049 GB, free: 95.29 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005449/2.222, allocations: 459.1 kB / 0.9053 GB, free: 95.27 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0399/2.262, allocations: 11.81 MB / 0.9168 GB, free: 93.28 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009654/2.272, allocations: 3.908 MB / 0.9206 GB, free: 92.46 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009052/2.281, allocations: 2.304 MB / 0.9229 GB, free: 92.41 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00634/2.287, allocations: 2.336 MB / 0.9252 GB, free: 92.41 MB / 0.5105 GB Notification: Performance of SimCode: time 1.623e-06/2.287, allocations: 0 / 0.9252 GB, free: 92.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1756/2.463, allocations: 96.77 MB / 1.02 GB, free: 52.51 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/2.463, allocations: 179.1 kB / 1.02 GB, free: 52.28 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.383/7.845, allocations: 0 / 1.02 GB, free: 52.28 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat does not exist to compare? outputFormat=mat