Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.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_1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",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.0009846/0.0009847, allocations: 180.3 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 221.3 MB / 236 MB, free: 2.918 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.0009257/0.0009258, allocations: 95.61 kB / 287 MB, free: 232 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2254/0.2254, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.119e-05/4.121e-05, allocations: 4 kB / 451.9 MB, free: 9.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1745, allocations: 61.92 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5122/0.6867, allocations: 110.4 MB / 0.6096 GB, free: 10.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/0.6871, allocations: 83.95 kB / 0.6097 GB, free: 10.71 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7729/1.46, allocations: 150.3 MB / 0.7565 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.387e-06/1.46, allocations: 0 / 0.7565 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000621/1.461, allocations: 142.6 kB / 0.7567 GB, free: 112.4 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2276 * Number of variables: 2276 Notification: Performance of Generate backend data structure: time 0.03981/1.501, allocations: 8.556 MB / 0.765 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/1.501, allocations: 14.7 kB / 0.765 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006376/1.507, allocations: 1.161 MB / 0.7662 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05928/1.566, allocations: 16.69 MB / 0.7825 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03295/1.599, allocations: 12.69 MB / 0.7949 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000572/1.6, allocations: 496.3 kB / 0.7953 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003815/1.604, allocations: 0.664 MB / 0.796 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03972/1.643, allocations: 16.79 MB / 0.8124 GB, free: 90.92 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004093/1.644, allocations: 114.8 kB / 0.8125 GB, free: 90.81 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002074/1.646, allocations: 318.8 kB / 0.8128 GB, free: 90.54 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001872/1.648, allocations: 1.47 MB / 0.8142 GB, free: 89.07 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02919/1.677, allocations: 13.49 MB / 0.8274 GB, free: 75.56 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08839/1.766, allocations: 76.74 MB / 0.9023 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02561/1.791, allocations: 8.553 MB / 0.9107 GB, free: 4.309 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005868/1.797, allocations: 4.085 MB / 0.9147 GB, free: 220 kB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4272/2.224, allocations: 1.35 MB / 0.916 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.895e-05/2.225, allocations: 62.8 kB / 0.9161 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=268): time 6.722e-06/2.225, allocations: 0 / 0.9161 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=352): time 0.1506/2.375, allocations: 44.7 MB / 0.9597 GB, free: 114 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002194/2.377, allocations: 3.228 MB / 0.9629 GB, free: 111 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01442/2.392, allocations: 6.459 MB / 0.9692 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001441/2.393, allocations: 77.67 kB / 0.9692 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004701/2.398, allocations: 5.202 MB / 0.9743 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002101/2.4, allocations: 1.34 MB / 0.9756 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007386/2.401, allocations: 189.1 kB / 0.9758 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004323/2.401, allocations: 0.7071 MB / 0.9765 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005981/2.407, allocations: 4.484 MB / 0.9809 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009026/2.416, allocations: 9.779 MB / 0.9904 GB, free: 94.83 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009852/2.426, allocations: 6.535 MB / 0.9968 GB, free: 92.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002315/2.427, allocations: 51.56 kB / 0.9969 GB, free: 92.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.07724/2.504, allocations: 31.44 MB / 1.028 GB, free: 77.25 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002938/2.504, allocations: 91.83 kB / 1.028 GB, free: 77.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04685/2.551, allocations: 20.57 MB / 1.048 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04323/2.594, allocations: 16.59 MB / 1.064 GB, free: 41.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008037/2.602, allocations: 2.122 MB / 1.066 GB, free: 39.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04533/2.648, allocations: 33.33 MB / 1.099 GB, free: 5.879 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01237/2.66, allocations: 0.78 MB / 1.099 GB, free: 5.098 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003059/2.663, allocations: 0.5608 MB / 1.1 GB, free: 4.539 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 845 * Number of states: 0 () * Number of discrete variables: 63 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],bodyCylinder4.color[3],bodyCylinder4.color[2],bodyCylinder4.color[1],bodyCylinder4.body.sphereColor[3],bodyCylinder4.body.sphereColor[2],bodyCylinder4.body.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],spherical2.sphereColor[3],spherical2.sphereColor[2],spherical2.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1092): * Single equations (assignments): 1079 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 38,(4,100.0%) 41} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004574/2.668, allocations: 0.8159 MB / 1.101 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002682/2.671, allocations: 0.671 MB / 1.101 GB, free: 3.043 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02525/2.696, allocations: 10.15 MB / 1.111 GB, free: 8.781 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4536/3.149, allocations: 8.835 MB / 1.12 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.546e-05/3.15, allocations: 16.53 kB / 1.12 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001095/3.15, allocations: 15.09 kB / 1.12 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05984/3.21, allocations: 23.36 MB / 1.143 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.205e-05/3.21, allocations: 0 / 1.143 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00327/3.213, allocations: 0.5589 MB / 1.143 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01313/3.226, allocations: 4.008 MB / 1.147 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001449/3.228, allocations: 104.5 kB / 1.147 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02804/3.256, allocations: 23.98 MB / 1.171 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001708/3.258, allocations: 3.001 MB / 1.174 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02656/3.284, allocations: 15.46 MB / 1.189 GB, free: 94.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003048/3.287, allocations: 0.7051 MB / 1.189 GB, free: 94.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002981/3.29, allocations: 91.48 kB / 1.189 GB, free: 94.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00609/3.296, allocations: 357.1 kB / 1.19 GB, free: 94.57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001528/3.298, allocations: 253.7 kB / 1.19 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004205/3.298, allocations: 99.84 kB / 1.19 GB, free: 94.52 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01168/3.31, allocations: 4.608 MB / 1.195 GB, free: 93 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.81e-07/3.31, allocations: 0 / 1.195 GB, free: 93 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0149/3.325, allocations: 2.127 MB / 1.197 GB, free: 92.79 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[3],revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 233 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,100.0%) 35,(1,100.0%) 1,(3,100.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03049/3.355, allocations: 16.45 MB / 1.213 GB, free: 85.89 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02088/3.376, allocations: 11.82 MB / 1.224 GB, free: 78.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/3.377, allocations: 0 / 1.224 GB, free: 78.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00938/3.386, allocations: 5.16 MB / 1.229 GB, free: 73.65 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007292/3.393, allocations: 0.9439 MB / 1.23 GB, free: 72.88 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05915/3.452, allocations: 18.74 MB / 1.249 GB, free: 57.09 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01056/3.463, allocations: 5.491 MB / 1.254 GB, free: 53.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00955/3.473, allocations: 3.165 MB / 1.257 GB, free: 51.05 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007614/3.48, allocations: 3.674 MB / 1.261 GB, free: 47.67 MB / 0.5417 GB Notification: Performance of SimCode: time 1.994e-06/3.48, allocations: 0 / 1.261 GB, free: 47.67 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6538/4.134, allocations: 175.9 MB / 1.432 GB, free: 79.14 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/4.134, allocations: 185.7 kB / 1.433 GB, free: 78.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.897/13.03, allocations: 7.516 kB / 1.433 GB, free: 78.91 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat