Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.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_1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001493/0.001492, allocations: 185.4 kB / 16.41 MB, free: 5.727 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.997/1.997, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001804/0.001804, allocations: 88.42 kB / 270.9 MB, free: 8.355 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.531/0.531, allocations: 43.55 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004778/0.0004779, allocations: 16 kB / 431.5 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1278, allocations: 58.85 MB / 490.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4895/0.6173, allocations: 108.8 MB / 0.5851 GB, free: 9.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/0.6177, allocations: 86.17 kB / 0.5852 GB, free: 9.398 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9779/1.596, allocations: 148.4 MB / 0.7302 GB, free: 84.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.955e-06/1.596, allocations: 3.938 kB / 0.7302 GB, free: 84.83 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007038/1.596, allocations: 151.1 kB / 0.7303 GB, free: 84.82 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.06098/1.657, allocations: 9.491 MB / 0.7396 GB, free: 81.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/1.657, allocations: 7.875 kB / 0.7396 GB, free: 81.52 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006343/1.664, allocations: 1.157 MB / 0.7407 GB, free: 81.43 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1146/1.778, allocations: 16.67 MB / 0.757 GB, free: 79.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04843/1.827, allocations: 13.39 MB / 0.7701 GB, free: 73.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006896/1.828, allocations: 493.6 kB / 0.7705 GB, free: 72.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003952/1.832, allocations: 0.6699 MB / 0.7712 GB, free: 72.76 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05543/1.887, allocations: 16.91 MB / 0.7877 GB, free: 58.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000676/1.888, allocations: 115 kB / 0.7878 GB, free: 58.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003422/1.891, allocations: 319.5 kB / 0.7881 GB, free: 58.14 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003597/1.895, allocations: 1.473 MB / 0.7896 GB, free: 56.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04742/1.942, allocations: 13.67 MB / 0.8029 GB, free: 42.98 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5299/2.472, allocations: 76.83 MB / 0.8779 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04608/2.519, allocations: 8.587 MB / 0.8863 GB, free: 42.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003362/2.522, allocations: 1.347 MB / 0.8876 GB, free: 41.21 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.639e-05/2.522, allocations: 63.59 kB / 0.8877 GB, free: 41.18 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=268): time 1.009e-05/2.522, allocations: 0 / 0.8877 GB, free: 41.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=352): time 0.3149/2.837, allocations: 51.54 MB / 0.938 GB, free: 34.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002617/2.84, allocations: 3.256 MB / 0.9412 GB, free: 31.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01726/2.857, allocations: 6.59 MB / 0.9476 GB, free: 29.18 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00119/2.858, allocations: 77.23 kB / 0.9477 GB, free: 29.11 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004802/2.863, allocations: 4.877 MB / 0.9525 GB, free: 25.36 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002405/2.866, allocations: 1.348 MB / 0.9538 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001535/2.867, allocations: 186.6 kB / 0.954 GB, free: 24.24 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005918/2.868, allocations: 0.716 MB / 0.9547 GB, free: 23.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01112/2.879, allocations: 4.554 MB / 0.9591 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01513/2.894, allocations: 9.849 MB / 0.9687 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01505/2.909, allocations: 6.546 MB / 0.9751 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001975/2.909, allocations: 51.84 kB / 0.9752 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.1313/3.041, allocations: 31.57 MB / 1.006 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001786/3.041, allocations: 84 kB / 1.006 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0965/3.137, allocations: 20.64 MB / 1.026 GB, free: 6.531 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09349/3.231, allocations: 16.61 MB / 1.042 GB, free: 5.883 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0143/3.245, allocations: 2.125 MB / 1.045 GB, free: 3.754 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4995/3.745, allocations: 35.36 MB / 1.079 GB, free: 155.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01496/3.76, allocations: 0.7746 MB / 1.08 GB, free: 155.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00309/3.763, allocations: 0.5601 MB / 1.08 GB, free: 155.2 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.01259/3.776, allocations: 3.43 MB / 1.084 GB, free: 155.1 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002307/3.778, allocations: 0.6772 MB / 1.084 GB, free: 155.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0369/3.815, allocations: 10.13 MB / 1.094 GB, free: 154.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02929/3.844, allocations: 8.823 MB / 1.103 GB, free: 154.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-05/3.844, allocations: 20.88 kB / 1.103 GB, free: 154.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001073/3.844, allocations: 18.14 kB / 1.103 GB, free: 154.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07788/3.922, allocations: 23.44 MB / 1.126 GB, free: 148.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.297e-05/3.922, allocations: 3.469 kB / 1.126 GB, free: 148.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006055/3.929, allocations: 0.5683 MB / 1.126 GB, free: 148.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02186/3.95, allocations: 3.629 MB / 1.13 GB, free: 147.7 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00123/3.952, allocations: 90.84 kB / 1.13 GB, free: 147.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04789/4, allocations: 22.73 MB / 1.152 GB, free: 135.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002456/4.002, allocations: 3.033 MB / 1.155 GB, free: 132.3 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04399/4.046, allocations: 15.59 MB / 1.17 GB, free: 126.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005752/4.052, allocations: 1.386 MB / 1.172 GB, free: 125.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002912/4.055, allocations: 77.19 kB / 1.172 GB, free: 125.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008462/4.063, allocations: 360.1 kB / 1.172 GB, free: 125.4 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001846/4.065, allocations: 248.2 kB / 1.172 GB, free: 125.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000574/4.066, allocations: 96.69 kB / 1.173 GB, free: 125.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01344/4.079, allocations: 4.719 MB / 1.177 GB, free: 123.9 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.01e-07/4.08, allocations: 0 / 1.177 GB, free: 123.9 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01469/4.094, allocations: 2.131 MB / 1.179 GB, free: 123.7 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.04515/4.139, allocations: 16.63 MB / 1.195 GB, free: 116.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02921/4.169, allocations: 11.97 MB / 1.207 GB, free: 108.6 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/4.169, allocations: 5.641 kB / 1.207 GB, free: 108.6 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01289/4.182, allocations: 5.109 MB / 1.212 GB, free: 104 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008958/4.191, allocations: 0.9403 MB / 1.213 GB, free: 103.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6969/4.888, allocations: 220.7 MB / 1.429 GB, free: 70.48 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01452/4.902, allocations: 5.511 MB / 1.434 GB, free: 69.59 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01051/4.913, allocations: 3.759 MB / 1.438 GB, free: 69.29 MB / 0.573 GB Notification: Performance of SimCode: time 1.714e-06/4.913, allocations: 0 / 1.438 GB, free: 69.29 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.73/12.64, allocations: 347 MB / 1.777 GB, free: 163.4 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat