Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",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.001524/0.001524, allocations: 178 kB / 17.06 MB, free: 5.098 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.585/1.585, 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.0009113/0.0009114, allocations: 86.33 kB / 292.1 MB, free: 10.91 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.4031/0.4031, allocations: 44.23 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003297/0.0003296, allocations: 8 kB / 460 MB, free: 1.422 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3565, allocations: 61.89 MB / 0.5096 GB, free: 38.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1305/0.487, allocations: 90.56 MB / 0.5981 GB, free: 4.535 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.4873, allocations: 71.94 kB / 0.5981 GB, free: 4.469 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01637/0.5036, allocations: 6.202 MB / 0.6042 GB, free: 14.26 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5037, allocations: 4 kB / 0.6042 GB, free: 14.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.454e-05/0.5037, allocations: 11.98 kB / 0.6042 GB, free: 14.25 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008822/0.5046, allocations: 0.5462 MB / 0.6047 GB, free: 13.65 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.5047, allocations: 11.97 kB / 0.6047 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.472e-05/0.5048, allocations: 70.53 kB / 0.6048 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002561/0.505, allocations: 51.52 kB / 0.6049 GB, free: 13.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/0.5053, allocations: 255.1 kB / 0.6051 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.5054, allocations: 24.66 kB / 0.6051 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-05/0.5054, allocations: 39.86 kB / 0.6052 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004504/0.5059, allocations: 302.6 kB / 0.6055 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.5059, allocations: 7.906 kB / 0.6055 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.506, allocations: 12 kB / 0.6055 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.506, allocations: 4 kB / 0.6055 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002947/0.5063, allocations: 176.4 kB / 0.6056 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.5082, allocations: 1.335 MB / 0.607 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003998/0.5086, allocations: 249.3 kB / 0.6072 GB, free: 10.92 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.381e-05/0.5086, allocations: 7.938 kB / 0.6072 GB, free: 10.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.5086, allocations: 42.56 kB / 0.6072 GB, free: 10.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=22): time 1.834e-06/0.5086, allocations: 0 / 0.6072 GB, free: 10.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005052/0.5092, allocations: 221.4 kB / 0.6075 GB, free: 10.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.5092, allocations: 158.2 kB / 0.6076 GB, free: 10.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.5094, allocations: 187.3 kB / 0.6078 GB, free: 10.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.5095, allocations: 33.83 kB / 0.6078 GB, free: 10.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.5096, allocations: 191.9 kB / 0.608 GB, free: 10.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.804e-05/0.5096, allocations: 94.73 kB / 0.6081 GB, free: 9.926 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.123e-05/0.5097, allocations: 4 kB / 0.6081 GB, free: 9.922 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5098, allocations: 342.8 kB / 0.6084 GB, free: 9.578 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.5099, allocations: 59.97 kB / 0.6085 GB, free: 9.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.5101, allocations: 206.5 kB / 0.6087 GB, free: 9.254 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.5103, allocations: 95.94 kB / 0.6088 GB, free: 9.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5103, allocations: 0 / 0.6088 GB, free: 9.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004794/0.5108, allocations: 313.4 kB / 0.6091 GB, free: 8.848 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.5108, allocations: 12.06 kB / 0.6091 GB, free: 8.836 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.5109, allocations: 4 kB / 0.6091 GB, free: 8.832 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.5109, allocations: 8 kB / 0.6091 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002955/0.5112, allocations: 87.84 kB / 0.6092 GB, free: 8.738 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.5112, allocations: 11.98 kB / 0.6092 GB, free: 8.727 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002044/0.5114, allocations: 35.59 kB / 0.6092 GB, free: 8.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.5115, allocations: 19.94 kB / 0.6092 GB, free: 8.672 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001766/0.5116, allocations: 157.6 kB / 0.6094 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.5118, allocations: 23.81 kB / 0.6094 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.512, allocations: 86.98 kB / 0.6095 GB, free: 8.391 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.512, allocations: 11.92 kB / 0.6095 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.512, allocations: 0 / 0.6095 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.512, allocations: 4 kB / 0.6095 GB, free: 8.375 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006452/0.5127, allocations: 305.4 kB / 0.6098 GB, free: 8.027 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.5127, allocations: 4 kB / 0.6098 GB, free: 8.023 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003563/0.513, allocations: 59.97 kB / 0.6099 GB, free: 7.965 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.5131, allocations: 7.984 kB / 0.6099 GB, free: 7.957 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.5131, allocations: 8 kB / 0.6099 GB, free: 7.949 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.5131, allocations: 4 kB / 0.6099 GB, free: 7.945 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5131, allocations: 4.031 kB / 0.6099 GB, free: 7.941 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006544/0.5138, allocations: 0.6797 MB / 0.6105 GB, free: 7.215 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.845e-05/0.5139, allocations: 96.83 kB / 0.6106 GB, free: 7.102 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/0.5139, allocations: 8 kB / 0.6106 GB, free: 7.094 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.5142, allocations: 11.89 kB / 0.6107 GB, free: 7.082 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.5142, allocations: 27.89 kB / 0.6107 GB, free: 7.055 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.5143, allocations: 4 kB / 0.6107 GB, free: 7.051 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001232/0.5144, allocations: 149.9 kB / 0.6108 GB, free: 6.906 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5144, allocations: 0 / 0.6108 GB, free: 6.906 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005321/0.5149, allocations: 79.84 kB / 0.6109 GB, free: 6.828 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008995/0.5158, allocations: 1.501 MB / 0.6124 GB, free: 5.289 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003306/0.5162, allocations: 192.9 kB / 0.6126 GB, free: 5.102 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5162, allocations: 3.938 kB / 0.6126 GB, free: 5.098 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.5163, allocations: 75.84 kB / 0.6126 GB, free: 5.023 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006075/0.5169, allocations: 53.91 kB / 0.6127 GB, free: 4.969 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.5213, allocations: 5.281 MB / 0.6178 GB, free: 15.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.5217, allocations: 0.7833 MB / 0.6186 GB, free: 14.73 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.5218, allocations: 34.89 kB / 0.6186 GB, free: 14.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.522, allocations: 91.41 kB / 0.6187 GB, free: 14.61 MB / 442.7 MB Notification: Performance of SimCode: time 4.068e-06/0.522, allocations: 0 / 0.6187 GB, free: 14.61 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.5383, allocations: 4.854 MB / 0.6235 GB, free: 9.902 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.5386, allocations: 167.6 kB / 0.6236 GB, free: 9.66 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.134/2.673, allocations: 0 / 0.6236 GB, free: 9.66 MB / 442.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat