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.001403/0.001403, allocations: 173.9 kB / 8.742 MB, free: 344 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.497/1.497, allocations: 221.5 MB / 230.7 MB, free: 7.59 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.000918/0.0009178, allocations: 108.7 kB / 281.6 MB, free: 5.324 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.227/0.227, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.466e-05/1.473e-05, allocations: 224 / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1315, allocations: 61.92 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4864/0.618, allocations: 109.8 MB / 0.602 GB, free: 2.551 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.6183, allocations: 82.3 kB / 0.602 GB, free: 2.473 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7161/1.334, allocations: 147.4 MB / 0.746 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.543e-06/1.334, allocations: 0 / 0.746 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004213/1.335, allocations: 146.2 kB / 0.7461 GB, free: 105.5 MB / 0.4948 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.0333/1.368, allocations: 8.548 MB / 0.7545 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/1.368, allocations: 10.02 kB / 0.7545 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05804/1.426, allocations: 16.69 MB / 0.7708 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02853/1.455, allocations: 12.68 MB / 0.7832 GB, free: 94.57 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003958/1.455, allocations: 212 kB / 0.7834 GB, free: 94.36 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004346/1.46, allocations: 411.7 kB / 0.7838 GB, free: 93.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01561/1.475, allocations: 9.003 MB / 0.7926 GB, free: 84.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01894/1.494, allocations: 14.17 MB / 0.8064 GB, free: 69.27 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002121/1.495, allocations: 99.12 kB / 0.8065 GB, free: 69.17 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007296/1.495, allocations: 48 kB / 0.8065 GB, free: 69.12 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001721/1.497, allocations: 1.478 MB / 0.808 GB, free: 67.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07824/1.575, allocations: 74.52 MB / 0.8808 GB, free: 7.434 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007567/1.583, allocations: 5.336 MB / 0.886 GB, free: 1.953 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.36/1.943, allocations: 4.012 MB / 0.8899 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001873/1.945, allocations: 1.346 MB / 0.8912 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.294e-05/1.945, allocations: 64.42 kB / 0.8913 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=268): time 6.713e-06/1.945, allocations: 0 / 0.8913 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=350): time 0.111/2.056, allocations: 43.01 MB / 0.9333 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001408/2.056, allocations: 272.3 kB / 0.9335 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01168/2.068, allocations: 5.612 MB / 0.939 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00125/2.069, allocations: 25.7 kB / 0.939 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004018/2.073, allocations: 5.252 MB / 0.9442 GB, free: 98.64 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002096/2.075, allocations: 1.298 MB / 0.9454 GB, free: 97.68 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007177/2.076, allocations: 0 / 0.9454 GB, free: 97.68 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005613/2.076, allocations: 0.7201 MB / 0.9461 GB, free: 97.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006633/2.083, allocations: 4.323 MB / 0.9503 GB, free: 95.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008242/2.091, allocations: 9.7 MB / 0.9598 GB, free: 86.77 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008837/2.1, allocations: 6.364 MB / 0.966 GB, free: 84.73 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001256/2.1, allocations: 56.06 kB / 0.9661 GB, free: 84.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.07078/2.171, allocations: 30.24 MB / 0.9956 GB, free: 69.68 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001342/2.171, allocations: 84 kB / 0.9957 GB, free: 69.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04528/2.217, allocations: 20.32 MB / 1.016 GB, free: 52.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04383/2.261, allocations: 16.53 MB / 1.032 GB, free: 35.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008273/2.269, allocations: 2.156 MB / 1.034 GB, free: 33.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04183/2.311, allocations: 31.5 MB / 1.065 GB, free: 1.625 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01091/2.322, allocations: 0.5925 MB / 1.065 GB, free: 1.031 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003008/2.325, allocations: 0.5702 MB / 1.066 GB, free: 472 kB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 869 * 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 (1114): * Single equations (assignments): 1101 * 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,(5,100.0%) 40} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.00305/2.328, allocations: 0.5894 MB / 1.066 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02056/2.348, allocations: 9.716 MB / 1.076 GB, free: 6.035 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003328/2.352, allocations: 0.6248 MB / 1.076 GB, free: 5.402 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4123/2.764, allocations: 9.788 MB / 1.086 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02069/2.785, allocations: 8.615 MB / 1.094 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-05/2.785, allocations: 16.19 kB / 1.094 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001169/2.785, allocations: 17.42 kB / 1.094 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05233/2.837, allocations: 22.26 MB / 1.116 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.951e-05/2.838, allocations: 5.531 kB / 1.116 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003455/2.841, allocations: 0.5542 MB / 1.117 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01328/2.854, allocations: 3.957 MB / 1.121 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001317/2.856, allocations: 60.17 kB / 1.121 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02817/2.884, allocations: 22.73 MB / 1.143 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002024/2.886, allocations: 2.878 MB / 1.146 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0262/2.912, allocations: 15.07 MB / 1.16 GB, free: 101.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003499/2.916, allocations: 0.6433 MB / 1.161 GB, free: 101.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003317/2.919, allocations: 38.14 kB / 1.161 GB, free: 101.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005711/2.925, allocations: 302.4 kB / 1.161 GB, free: 101.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001318/2.926, allocations: 247.6 kB / 1.161 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003536/2.926, allocations: 96.66 kB / 1.162 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00911/2.936, allocations: 3.866 MB / 1.165 GB, free: 99.96 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.11e-07/2.936, allocations: 0 / 1.165 GB, free: 99.96 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.013/2.949, allocations: 1.905 MB / 1.167 GB, free: 99.96 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 (242): * Single equations (assignments): 231 * 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.02514/2.974, allocations: 16.01 MB / 1.183 GB, free: 93.23 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01858/2.992, allocations: 11.38 MB / 1.194 GB, free: 85.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/2.993, allocations: 0 / 1.194 GB, free: 85.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007417/3, allocations: 5.007 MB / 1.199 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00634/3.006, allocations: 0.8152 MB / 1.2 GB, free: 79.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05902/3.065, allocations: 18.18 MB / 1.217 GB, free: 64.62 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01175/3.077, allocations: 5.49 MB / 1.223 GB, free: 60.63 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009939/3.087, allocations: 3.166 MB / 1.226 GB, free: 58.59 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00726/3.095, allocations: 3.646 MB / 1.229 GB, free: 55.23 MB / 0.5417 GB Notification: Performance of SimCode: time 1.603e-06/3.095, allocations: 0 / 1.229 GB, free: 55.23 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6714/3.766, allocations: 164.3 MB / 1.39 GB, free: 95.03 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/3.766, allocations: 142.7 kB / 1.39 GB, free: 94.83 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/11.5, allocations: 3.656 kB / 1.39 GB, free: 94.83 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