Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001019/0.001019, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008057/0.0008057, allocations: 88.83 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1752/0.1752, allocations: 45.13 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.3e-05/2.302e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.08595, allocations: 63.24 MB / 0.5115 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4008/0.4868, allocations: 111.3 MB / 0.6202 GB, free: 14.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.487, allocations: 79.33 kB / 0.6203 GB, free: 14.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6981/1.185, allocations: 159 MB / 0.7755 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.683e-06/1.185, allocations: 2.562 kB / 0.7755 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004189/1.186, allocations: 144.4 kB / 0.7756 GB, free: 109.4 MB / 0.5261 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.03218/1.218, allocations: 8.798 MB / 0.7842 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/1.218, allocations: 10.78 kB / 0.7842 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003173/1.221, allocations: 1.158 MB / 0.7854 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05667/1.278, allocations: 17.83 MB / 0.8028 GB, free: 106 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02733/1.305, allocations: 11.52 MB / 0.814 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005495/1.306, allocations: 497.9 kB / 0.8145 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003425/1.309, allocations: 0.6685 MB / 0.8152 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03374/1.343, allocations: 16.79 MB / 0.8316 GB, free: 100 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003433/1.343, allocations: 101.7 kB / 0.8317 GB, free: 100 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001411/1.345, allocations: 328.4 kB / 0.832 GB, free: 99.85 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001709/1.346, allocations: 1.476 MB / 0.8334 GB, free: 99.59 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02615/1.373, allocations: 13.48 MB / 0.8466 GB, free: 94.79 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07124/1.444, allocations: 76.75 MB / 0.9215 GB, free: 21.22 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02236/1.466, allocations: 8.557 MB / 0.9299 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004221/1.471, allocations: 4.086 MB / 0.9339 GB, free: 8.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001449/1.472, allocations: 1.353 MB / 0.9352 GB, free: 6.875 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/1.472, allocations: 64.56 kB / 0.9353 GB, free: 6.801 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=268): time 5.48e-06/1.472, allocations: 0 / 0.9353 GB, free: 6.801 MB / 0.5261 GB Notification: Performance of matching and sorting (n=352): time 0.4183/1.89, allocations: 44.69 MB / 0.9789 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001796/1.892, allocations: 3.229 MB / 0.982 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008706/1.901, allocations: 6.455 MB / 0.9883 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008195/1.902, allocations: 79.45 kB / 0.9884 GB, free: 107 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003057/1.905, allocations: 5.199 MB / 0.9935 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001478/1.906, allocations: 1.342 MB / 0.9948 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004966/1.907, allocations: 190.5 kB / 0.995 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003497/1.907, allocations: 0.7113 MB / 0.9957 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00538/1.913, allocations: 4.477 MB / 1 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007118/1.92, allocations: 9.784 MB / 1.01 GB, free: 96.62 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00734/1.927, allocations: 6.53 MB / 1.016 GB, free: 94.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.54e-05/1.927, allocations: 54.47 kB / 1.016 GB, free: 94.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.06462/1.992, allocations: 31.78 MB / 1.047 GB, free: 89.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001941/1.992, allocations: 82.56 kB / 1.047 GB, free: 89.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04573/2.038, allocations: 20.92 MB / 1.068 GB, free: 85.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04297/2.081, allocations: 16.93 MB / 1.084 GB, free: 72.96 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006885/2.088, allocations: 2.117 MB / 1.086 GB, free: 70.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03922/2.127, allocations: 33.33 MB / 1.119 GB, free: 37.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009338/2.136, allocations: 0.7802 MB / 1.12 GB, free: 36.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002061/2.138, allocations: 0.5559 MB / 1.12 GB, free: 35.74 MB / 0.5417 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.002772/2.141, allocations: 0.8198 MB / 1.121 GB, free: 34.93 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002153/2.143, allocations: 0.6672 MB / 1.121 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02123/2.165, allocations: 10.15 MB / 1.131 GB, free: 24.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01509/2.18, allocations: 8.84 MB / 1.14 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.209e-05/2.18, allocations: 20 kB / 1.14 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.125e-05/2.18, allocations: 15.94 kB / 1.14 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3474/2.527, allocations: 23.36 MB / 1.163 GB, free: 112.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-05/2.527, allocations: 1.781 kB / 1.163 GB, free: 112.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003046/2.531, allocations: 0.5591 MB / 1.163 GB, free: 112.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01305/2.544, allocations: 4.012 MB / 1.167 GB, free: 112.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008297/2.544, allocations: 100.7 kB / 1.167 GB, free: 112.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02863/2.573, allocations: 23.99 MB / 1.191 GB, free: 104.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001585/2.575, allocations: 2.991 MB / 1.194 GB, free: 101.5 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02448/2.599, allocations: 15.46 MB / 1.209 GB, free: 100.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/2.602, allocations: 0.7085 MB / 1.21 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002196/2.604, allocations: 90.31 kB / 1.21 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004868/2.609, allocations: 361 kB / 1.21 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001203/2.61, allocations: 242.8 kB / 1.21 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005523/2.61, allocations: 101.7 kB / 1.21 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008277/2.619, allocations: 4.607 MB / 1.215 GB, free: 99.84 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.01e-07/2.619, allocations: 6.5 kB / 1.215 GB, free: 99.84 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01111/2.63, allocations: 2.134 MB / 1.217 GB, free: 99.63 MB / 0.5573 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.02409/2.654, allocations: 16.45 MB / 1.233 GB, free: 92.88 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01661/2.671, allocations: 11.81 MB / 1.245 GB, free: 88.69 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/2.671, allocations: 4 kB / 1.245 GB, free: 88.68 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007894/2.679, allocations: 5.165 MB / 1.25 GB, free: 86.18 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005307/2.684, allocations: 0.9348 MB / 1.25 GB, free: 85.81 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04279/2.727, allocations: 18.75 MB / 1.269 GB, free: 79.41 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008069/2.735, allocations: 5.486 MB / 1.274 GB, free: 77.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008227/2.743, allocations: 3.176 MB / 1.277 GB, free: 75.77 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004988/2.748, allocations: 3.667 MB / 1.281 GB, free: 72.39 MB / 0.5573 GB Notification: Performance of SimCode: time 6.61e-07/2.748, allocations: 0 / 1.281 GB, free: 72.39 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4908/3.239, allocations: 175.9 MB / 1.453 GB, free: 118.8 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/3.239, allocations: 189.6 kB / 1.453 GB, free: 118.6 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.169/9.408, allocations: 4 kB / 1.453 GB, free: 118.6 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat