Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 196.9 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.345/1.345, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009794/0.0009794, allocations: 89.22 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.204/0.204, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.61e-05/3.649e-05, allocations: 4 kB / 460.5 MB, free: 69.94 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1194, allocations: 63.24 MB / 0.5114 GB, free: 6.711 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4183/0.5377, allocations: 92.29 MB / 0.6016 GB, free: 1.527 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/0.538, allocations: 64.34 kB / 0.6016 GB, free: 1.496 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0211/0.5591, allocations: 7.925 MB / 0.6094 GB, free: 10.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.5592, allocations: 4 kB / 0.6094 GB, free: 10.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.136e-05/0.5592, allocations: 12 kB / 0.6094 GB, free: 10.87 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001006/0.5602, allocations: 0.5677 MB / 0.6099 GB, free: 10.28 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.5603, allocations: 15.97 kB / 0.61 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.5604, allocations: 73.09 kB / 0.61 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003037/0.5607, allocations: 63.5 kB / 0.6101 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.5611, allocations: 281.6 kB / 0.6104 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/0.5611, allocations: 34.09 kB / 0.6104 GB, free: 9.828 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.418e-05/0.5612, allocations: 41.16 kB / 0.6104 GB, free: 9.801 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004962/0.5617, allocations: 335.9 kB / 0.6108 GB, free: 9.543 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/0.5617, allocations: 11.66 kB / 0.6108 GB, free: 9.535 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.5618, allocations: 18.88 kB / 0.6108 GB, free: 9.527 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.5618, allocations: 8 kB / 0.6108 GB, free: 9.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003461/0.5621, allocations: 203.7 kB / 0.611 GB, free: 9.379 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.5643, allocations: 1.581 MB / 0.6125 GB, free: 7.883 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004458/0.5648, allocations: 297.1 kB / 0.6128 GB, free: 7.594 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.5649, allocations: 90.56 kB / 0.6129 GB, free: 7.508 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.5649, allocations: 7.984 kB / 0.6129 GB, free: 7.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.565, allocations: 49.97 kB / 0.613 GB, free: 7.445 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 2.164e-06/0.565, allocations: 4 kB / 0.613 GB, free: 7.441 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004469/0.5654, allocations: 201.3 kB / 0.6131 GB, free: 7.273 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.5655, allocations: 187.9 kB / 0.6133 GB, free: 7.047 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/0.5657, allocations: 209.4 kB / 0.6135 GB, free: 6.863 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.5657, allocations: 29.52 kB / 0.6136 GB, free: 6.832 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.5659, allocations: 216.2 kB / 0.6138 GB, free: 6.652 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.371e-05/0.566, allocations: 110.4 kB / 0.6139 GB, free: 6.559 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.566, allocations: 7.344 kB / 0.6139 GB, free: 6.559 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.5661, allocations: 343.6 kB / 0.6142 GB, free: 6.227 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.5662, allocations: 72.94 kB / 0.6143 GB, free: 6.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.5665, allocations: 237.8 kB / 0.6145 GB, free: 5.906 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.5667, allocations: 116.2 kB / 0.6146 GB, free: 5.824 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.5667, allocations: 4 kB / 0.6146 GB, free: 5.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005112/0.5672, allocations: 370 kB / 0.615 GB, free: 5.527 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.5672, allocations: 4 kB / 0.615 GB, free: 5.523 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.5673, allocations: 8 kB / 0.615 GB, free: 5.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.5673, allocations: 8 kB / 0.615 GB, free: 5.508 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/0.5676, allocations: 108 kB / 0.6151 GB, free: 5.406 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.793e-05/0.5676, allocations: 16 kB / 0.6151 GB, free: 5.391 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.5679, allocations: 49.31 kB / 0.6151 GB, free: 5.348 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.5679, allocations: 23.8 kB / 0.6152 GB, free: 5.328 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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 8.801e-05/0.568, allocations: 130.7 kB / 0.6153 GB, free: 5.203 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.5681, allocations: 35.61 kB / 0.6153 GB, free: 5.168 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001695/0.5683, allocations: 90.14 kB / 0.6154 GB, free: 5.094 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.5683, allocations: 4 kB / 0.6154 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.5683, allocations: 0 / 0.6154 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.5684, allocations: 8 kB / 0.6154 GB, free: 5.082 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006274/0.569, allocations: 347.4 kB / 0.6158 GB, free: 4.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.569, allocations: 3.953 kB / 0.6158 GB, free: 4.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003929/0.5694, allocations: 87.14 kB / 0.6158 GB, free: 4.664 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.5694, allocations: 0 / 0.6158 GB, free: 4.664 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.5695, allocations: 10.5 kB / 0.6159 GB, free: 4.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.5695, allocations: 4 kB / 0.6159 GB, free: 4.656 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5695, allocations: 0 / 0.6159 GB, free: 4.656 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006354/0.5701, allocations: 0.8105 MB / 0.6166 GB, free: 3.867 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.296e-05/0.5702, allocations: 104.7 kB / 0.6167 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.5702, allocations: 11.08 kB / 0.6168 GB, free: 3.738 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/0.5706, allocations: 15.11 kB / 0.6168 GB, free: 3.727 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.5706, allocations: 19.8 kB / 0.6168 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.5706, allocations: 19.55 kB / 0.6168 GB, free: 3.695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001313/0.5708, allocations: 160.7 kB / 0.617 GB, free: 3.559 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5708, allocations: 3.938 kB / 0.617 GB, free: 3.555 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005331/0.5713, allocations: 106.7 kB / 0.6171 GB, free: 3.461 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T,inertia6.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * 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.0009116/0.5722, allocations: 1.691 MB / 0.6187 GB, free: 1.801 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003335/0.5726, allocations: 218.1 kB / 0.6189 GB, free: 1.637 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.5726, allocations: 0 / 0.6189 GB, free: 1.637 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.5727, allocations: 92.84 kB / 0.619 GB, free: 1.566 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.5733, allocations: 60.77 kB / 0.6191 GB, free: 1.523 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.5754, allocations: 1.296 MB / 0.6203 GB, free: 240 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.5758, allocations: 0.8033 MB / 0.6211 GB, free: 15.41 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001608/0.5759, allocations: 38.95 kB / 0.6212 GB, free: 15.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.5761, allocations: 115.3 kB / 0.6213 GB, free: 15.33 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5761, allocations: 0 / 0.6213 GB, free: 15.33 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01775/0.5938, allocations: 5.74 MB / 0.6269 GB, free: 9.734 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/0.5941, allocations: 136.5 kB / 0.627 GB, free: 9.516 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.565, allocations: 0 / 0.627 GB, free: 9.516 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat