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.00124/0.00124, allocations: 177 kB / 17.06 MB, free: 5.094 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.266/1.266, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009116/0.0009116, allocations: 96.86 kB / 292.1 MB, free: 10.89 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.3361/0.3361, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.000347, allocations: 12 kB / 460 MB, free: 1.402 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4314, allocations: 61.89 MB / 0.5096 GB, free: 38.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1448/0.5763, allocations: 110.5 MB / 0.6175 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.5767, allocations: 95.91 kB / 0.6176 GB, free: 476 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6794/1.256, allocations: 150.2 MB / 0.7643 GB, free: 80.28 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.563e-06/1.256, allocations: 0 / 0.7643 GB, free: 80.28 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000667/1.257, allocations: 147.5 kB / 0.7645 GB, free: 80.27 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: 2276 * Number of variables: 2276 Notification: Performance of Generate backend data structure: time 0.04129/1.298, allocations: 9.436 MB / 0.7737 GB, free: 72.42 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/1.298, allocations: 12.02 kB / 0.7737 GB, free: 72.41 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006799/1.305, allocations: 1.157 MB / 0.7748 GB, free: 71.24 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05702/1.362, allocations: 16.67 MB / 0.7911 GB, free: 54.53 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03582/1.398, allocations: 12.74 MB / 0.8035 GB, free: 41.71 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006465/1.399, allocations: 493.1 kB / 0.804 GB, free: 41.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00479/1.403, allocations: 0.6752 MB / 0.8047 GB, free: 40.55 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04486/1.448, allocations: 16.91 MB / 0.8212 GB, free: 22.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008834/1.449, allocations: 103.1 kB / 0.8213 GB, free: 22.01 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003959/1.453, allocations: 319.8 kB / 0.8216 GB, free: 21.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002687/1.456, allocations: 1.479 MB / 0.823 GB, free: 20.21 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03134/1.487, allocations: 13.67 MB / 0.8364 GB, free: 6.512 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5053/1.993, allocations: 76.75 MB / 0.9113 GB, free: 52.28 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02603/2.019, allocations: 8.595 MB / 0.9197 GB, free: 51.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001756/2.021, allocations: 1.341 MB / 0.921 GB, free: 50.47 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.997e-05/2.021, allocations: 64.38 kB / 0.9211 GB, free: 50.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=268): time 6.523e-06/2.021, allocations: 2.531 kB / 0.9211 GB, free: 50.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=352): time 0.1972/2.218, allocations: 51.31 MB / 0.9712 GB, free: 42.63 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001896/2.22, allocations: 3.262 MB / 0.9744 GB, free: 39.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01293/2.233, allocations: 6.524 MB / 0.9808 GB, free: 37.33 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001359/2.234, allocations: 79.64 kB / 0.9808 GB, free: 37.26 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004774/2.239, allocations: 5.196 MB / 0.9859 GB, free: 33.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002503/2.241, allocations: 1.343 MB / 0.9872 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/2.243, allocations: 190.9 kB / 0.9874 GB, free: 32.28 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005331/2.243, allocations: 0.7066 MB / 0.9881 GB, free: 31.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0072/2.25, allocations: 4.553 MB / 0.9926 GB, free: 30.21 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/2.261, allocations: 9.854 MB / 1.002 GB, free: 21.52 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/2.271, allocations: 6.538 MB / 1.009 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003398/2.272, allocations: 52 kB / 1.009 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.07882/2.35, allocations: 31.71 MB / 1.04 GB, free: 7.355 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003865/2.351, allocations: 86.19 kB / 1.04 GB, free: 7.273 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05438/2.405, allocations: 20.63 MB / 1.06 GB, free: 2.594 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04943/2.455, allocations: 16.61 MB / 1.076 GB, free: 1.941 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009276/2.464, allocations: 2.113 MB / 1.078 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4597/2.924, allocations: 35.36 MB / 1.113 GB, free: 147.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01112/2.935, allocations: 0.7724 MB / 1.113 GB, free: 147.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002868/2.938, allocations: 0.5597 MB / 1.114 GB, free: 147.4 MB / 0.573 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 () * Number of clocked 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.009786/2.948, allocations: 3.435 MB / 1.117 GB, free: 147.3 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002298/2.95, allocations: 0.675 MB / 1.118 GB, free: 147.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02272/2.973, allocations: 10.13 MB / 1.128 GB, free: 146.9 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02237/2.995, allocations: 8.825 MB / 1.136 GB, free: 143.9 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001012/2.995, allocations: 17.86 kB / 1.136 GB, free: 143.9 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001311/2.995, allocations: 18.48 kB / 1.136 GB, free: 143.9 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05755/3.053, allocations: 23.42 MB / 1.159 GB, free: 135.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.34e-05/3.053, allocations: 3.469 kB / 1.159 GB, free: 135.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003348/3.056, allocations: 0.5753 MB / 1.16 GB, free: 135.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0125/3.069, allocations: 3.625 MB / 1.163 GB, free: 134.6 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001227/3.07, allocations: 95.97 kB / 1.164 GB, free: 134.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02957/3.1, allocations: 22.73 MB / 1.186 GB, free: 122.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001858/3.102, allocations: 3.024 MB / 1.189 GB, free: 119.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03007/3.132, allocations: 15.58 MB / 1.204 GB, free: 111.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003632/3.136, allocations: 0.702 MB / 1.205 GB, free: 110.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003321/3.139, allocations: 90.75 kB / 1.205 GB, free: 110.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006361/3.145, allocations: 359.8 kB / 1.205 GB, free: 110.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001665/3.147, allocations: 250.6 kB / 1.205 GB, free: 110.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009264/3.148, allocations: 94.84 kB / 1.205 GB, free: 110.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01193/3.16, allocations: 4.671 MB / 1.21 GB, free: 106.5 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.92e-07/3.16, allocations: 0 / 1.21 GB, free: 106.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01452/3.174, allocations: 2.127 MB / 1.212 GB, free: 104.4 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyCylinder1.body.w_a[1],bodyCylinder1.body.w_a[2],bodyCylinder1.body.w_a[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (246): * Single equations (assignments): 236 * 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: 3 * 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: 3 {(5,100.0%) 34,(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.02987/3.204, allocations: 16.63 MB / 1.228 GB, free: 90.14 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02031/3.225, allocations: 11.96 MB / 1.24 GB, free: 80.08 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/3.225, allocations: 1.875 kB / 1.24 GB, free: 80.08 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00902/3.234, allocations: 5.093 MB / 1.245 GB, free: 75.52 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008416/3.242, allocations: 0.9482 MB / 1.246 GB, free: 74.74 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6031/3.845, allocations: 219.5 MB / 1.46 GB, free: 40.94 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01251/3.858, allocations: 5.499 MB / 1.466 GB, free: 40.05 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01113/3.869, allocations: 3.169 MB / 1.469 GB, free: 39.99 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00938/3.879, allocations: 3.668 MB / 1.472 GB, free: 39 MB / 0.573 GB Notification: Performance of SimCode: time 1.893e-06/3.879, allocations: 0 / 1.472 GB, free: 39 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9183/4.797, allocations: 176.7 MB / 1.645 GB, free: 99.28 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/4.797, allocations: 220.3 kB / 1.645 GB, free: 99.03 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.01/12.81, allocations: 0 / 1.645 GB, free: 99.03 MB / 0.573 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