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.001919/0.001919, allocations: 198.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.2 MB / 245 MB, free: 7.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009551/0.0009549, allocations: 102.5 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.368/0.368, allocations: 45.23 MB / 394.7 MB, free: 31.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003465, allocations: 8 kB / 468.5 MB, free: 7.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4627/0.463, allocations: 63.24 MB / 0.5193 GB, free: 43.8 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1527/0.6158, allocations: 92.36 MB / 0.6095 GB, free: 13.26 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.6161, allocations: 73.62 kB / 0.6095 GB, free: 13.19 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02271/0.6389, allocations: 7.933 MB / 0.6173 GB, free: 5.277 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6389, allocations: 0 / 0.6173 GB, free: 5.277 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.095e-05/0.639, allocations: 12 kB / 0.6173 GB, free: 5.266 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001297/0.6403, allocations: 0.5966 MB / 0.6179 GB, free: 4.621 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.6404, allocations: 12.03 kB / 0.6179 GB, free: 4.609 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.6405, allocations: 70.53 kB / 0.6179 GB, free: 4.531 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003884/0.6409, allocations: 63.5 kB / 0.618 GB, free: 4.469 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000529/0.6414, allocations: 283.2 kB / 0.6183 GB, free: 4.152 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.664e-05/0.6415, allocations: 29 kB / 0.6183 GB, free: 4.125 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.243e-05/0.6416, allocations: 39.91 kB / 0.6183 GB, free: 4.086 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007048/0.6423, allocations: 355.6 kB / 0.6187 GB, free: 3.715 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.977e-05/0.6424, allocations: 15.84 kB / 0.6187 GB, free: 3.699 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.6424, allocations: 16 kB / 0.6187 GB, free: 3.684 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.6424, allocations: 11.98 kB / 0.6187 GB, free: 3.672 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005151/0.643, allocations: 231.7 kB / 0.6189 GB, free: 3.445 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/0.6457, allocations: 1.577 MB / 0.6205 GB, free: 1.758 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006185/0.6463, allocations: 320.4 kB / 0.6208 GB, free: 1.391 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.6463, allocations: 7.969 kB / 0.6208 GB, free: 1.383 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.6464, allocations: 50.47 kB / 0.6208 GB, free: 1.324 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 2.284e-06/0.6464, allocations: 0 / 0.6208 GB, free: 1.324 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.000729/0.6471, allocations: 277.5 kB / 0.6211 GB, free: 1.047 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.6473, allocations: 183.9 kB / 0.6213 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/0.6475, allocations: 213.8 kB / 0.6215 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.6476, allocations: 29.7 kB / 0.6215 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.6477, allocations: 215.6 kB / 0.6217 GB, free: 372 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.021e-05/0.6478, allocations: 106.6 kB / 0.6218 GB, free: 264 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.539e-05/0.6479, allocations: 12 kB / 0.6218 GB, free: 252 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.6481, allocations: 342.8 kB / 0.6222 GB, free: 15.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.6483, allocations: 84.83 kB / 0.6222 GB, free: 15.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003317/0.6486, allocations: 245.7 kB / 0.6225 GB, free: 15.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/0.6489, allocations: 127.8 kB / 0.6226 GB, free: 15.38 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.6489, allocations: 3.953 kB / 0.6226 GB, free: 15.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007151/0.6496, allocations: 380.7 kB / 0.623 GB, free: 14.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.6497, allocations: 8 kB / 0.623 GB, free: 14.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.6497, allocations: 4.625 kB / 0.623 GB, free: 14.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.201e-05/0.6497, allocations: 16 kB / 0.623 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.6501, allocations: 99.83 kB / 0.6231 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/0.6501, allocations: 19.92 kB / 0.6231 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.6504, allocations: 43.53 kB / 0.6231 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.394e-05/0.6505, allocations: 24 kB / 0.6232 GB, free: 14.78 MB / 442.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 () * Number of clocked 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 0.0001959/0.6507, allocations: 155.1 kB / 0.6233 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.6508, allocations: 31.66 kB / 0.6233 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002144/0.651, allocations: 100.4 kB / 0.6234 GB, free: 14.49 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.6511, allocations: 4 kB / 0.6234 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.6511, allocations: 4 kB / 0.6235 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.6511, allocations: 0 / 0.6235 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008277/0.6519, allocations: 341.3 kB / 0.6238 GB, free: 14.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.6519, allocations: 3.938 kB / 0.6238 GB, free: 14.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004226/0.6524, allocations: 91.84 kB / 0.6239 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.6524, allocations: 0 / 0.6239 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.6524, allocations: 8 kB / 0.6239 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.6524, allocations: 4.312 kB / 0.6239 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.6524, allocations: 7.938 kB / 0.6239 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009037/0.6534, allocations: 0.8294 MB / 0.6247 GB, free: 13.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.6535, allocations: 104.8 kB / 0.6248 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.6535, allocations: 11.95 kB / 0.6248 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003331/0.6539, allocations: 12 kB / 0.6248 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.297e-05/0.654, allocations: 27.91 kB / 0.6248 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.654, allocations: 4 kB / 0.6249 GB, free: 12.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000159/0.6541, allocations: 166 kB / 0.625 GB, free: 12.76 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6542, allocations: 0 / 0.625 GB, free: 12.76 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006954/0.6549, allocations: 115.9 kB / 0.6251 GB, free: 12.65 MB / 442.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 () * Number of clocked 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.001426/0.6563, allocations: 1.718 MB / 0.6268 GB, free: 10.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004906/0.6568, allocations: 241.6 kB / 0.627 GB, free: 10.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.6568, allocations: 4 kB / 0.627 GB, free: 10.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.657, allocations: 95.83 kB / 0.6271 GB, free: 10.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.6577, allocations: 62.84 kB / 0.6272 GB, free: 10.49 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006569/0.6642, allocations: 6.308 MB / 0.6333 GB, free: 4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000578/0.6649, allocations: 0.7994 MB / 0.6341 GB, free: 3.176 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000222/0.6651, allocations: 30.97 kB / 0.6342 GB, free: 3.145 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.6653, allocations: 115.4 kB / 0.6343 GB, free: 3.031 MB / 442.7 MB Notification: Performance of SimCode: time 1.383e-06/0.6653, allocations: 192 / 0.6343 GB, free: 3.031 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02414/0.6895, allocations: 5.793 MB / 0.6399 GB, free: 13.41 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/0.6898, allocations: 159.6 kB / 0.6401 GB, free: 13.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.141/2.831, allocations: 0 / 0.6401 GB, free: 13.18 MB / 458.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