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.001692/0.001692, allocations: 180.7 kB / 14.15 MB, free: 1.176 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.627/1.627, allocations: 221.3 MB / 236 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009248/0.000925, allocations: 84.09 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2224/0.2224, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.169e-05/4.179e-05, allocations: 224 / 451.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1555, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4656/0.6211, allocations: 90.49 MB / 0.5902 GB, free: 14.78 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.6214, allocations: 63.97 kB / 0.5902 GB, free: 14.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01686/0.6383, allocations: 6.21 MB / 0.5963 GB, free: 8.512 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.6383, allocations: 3.938 kB / 0.5963 GB, free: 8.508 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.114e-05/0.6384, allocations: 8 kB / 0.5963 GB, free: 8.5 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0007422/0.6391, allocations: 0.526 MB / 0.5968 GB, free: 7.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.6392, allocations: 8.031 kB / 0.5968 GB, free: 7.922 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.608e-05/0.6393, allocations: 70.53 kB / 0.5969 GB, free: 7.844 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/0.6395, allocations: 43.61 kB / 0.5969 GB, free: 7.801 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002869/0.6398, allocations: 254.4 kB / 0.5972 GB, free: 7.512 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.6398, allocations: 20.78 kB / 0.5972 GB, free: 7.492 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.438e-05/0.6399, allocations: 43.84 kB / 0.5972 GB, free: 7.449 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/0.6403, allocations: 292.4 kB / 0.5975 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.6403, allocations: 4 kB / 0.5975 GB, free: 7.137 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.6404, allocations: 12 kB / 0.5975 GB, free: 7.125 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.6404, allocations: 8 kB / 0.5975 GB, free: 7.117 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002957/0.6407, allocations: 168.4 kB / 0.5977 GB, free: 6.953 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.6426, allocations: 1.345 MB / 0.599 GB, free: 5.504 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/0.6429, allocations: 241.3 kB / 0.5992 GB, free: 5.223 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.6431, allocations: 72.3 kB / 0.5993 GB, free: 5.137 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.6431, allocations: 3.938 kB / 0.5993 GB, free: 5.133 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.6431, allocations: 46.59 kB / 0.5993 GB, free: 5.078 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.6431, allocations: 0 / 0.5993 GB, free: 5.078 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003936/0.6435, allocations: 169.2 kB / 0.5995 GB, free: 4.906 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.805e-05/0.6436, allocations: 158.2 kB / 0.5997 GB, free: 4.715 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.6438, allocations: 183.1 kB / 0.5998 GB, free: 4.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.6438, allocations: 33.73 kB / 0.5999 GB, free: 4.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.6439, allocations: 191.9 kB / 0.6 GB, free: 4.289 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.644, allocations: 86.7 kB / 0.6001 GB, free: 4.203 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.729e-05/0.644, allocations: 12 kB / 0.6001 GB, free: 4.191 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.6442, allocations: 335 kB / 0.6005 GB, free: 3.855 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.6443, allocations: 64 kB / 0.6005 GB, free: 3.793 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.6445, allocations: 205.4 kB / 0.6007 GB, free: 3.531 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.6446, allocations: 99.89 kB / 0.6008 GB, free: 3.434 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.6446, allocations: 4 kB / 0.6008 GB, free: 3.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004275/0.6451, allocations: 313 kB / 0.6011 GB, free: 3.117 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.6451, allocations: 8 kB / 0.6011 GB, free: 3.109 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.6451, allocations: 4 kB / 0.6011 GB, free: 3.105 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.6451, allocations: 8 kB / 0.6011 GB, free: 3.098 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/0.6454, allocations: 83.89 kB / 0.6012 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.6455, allocations: 11.94 kB / 0.6012 GB, free: 3.004 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.6456, allocations: 35.83 kB / 0.6013 GB, free: 2.969 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.6456, allocations: 12.31 kB / 0.6013 GB, free: 2.957 MB / 410.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 () * 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 9.1e-05/0.6457, allocations: 136.8 kB / 0.6014 GB, free: 2.816 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.6459, allocations: 31.69 kB / 0.6014 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.646, allocations: 87.14 kB / 0.6015 GB, free: 2.691 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.6461, allocations: 4 kB / 0.6015 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.6461, allocations: 0 / 0.6015 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.6461, allocations: 4 kB / 0.6015 GB, free: 2.684 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005565/0.6466, allocations: 309.3 kB / 0.6018 GB, free: 2.332 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.6467, allocations: 4 kB / 0.6018 GB, free: 2.328 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.647, allocations: 71.89 kB / 0.6019 GB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.647, allocations: 4 kB / 0.6019 GB, free: 2.254 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.647, allocations: 8 kB / 0.6019 GB, free: 2.246 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.647, allocations: 0 / 0.6019 GB, free: 2.246 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.647, allocations: 0 / 0.6019 GB, free: 2.246 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.6476, allocations: 0.6891 MB / 0.6026 GB, free: 1.516 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.078e-05/0.6477, allocations: 100.8 kB / 0.6027 GB, free: 1.398 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.6477, allocations: 15.95 kB / 0.6027 GB, free: 1.383 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.648, allocations: 4 kB / 0.6027 GB, free: 1.379 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.648, allocations: 23.97 kB / 0.6027 GB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.6481, allocations: 8 kB / 0.6027 GB, free: 1.348 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001148/0.6482, allocations: 142 kB / 0.6029 GB, free: 1.211 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6482, allocations: 3.938 kB / 0.6029 GB, free: 1.207 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004731/0.6487, allocations: 83.83 kB / 0.6029 GB, free: 1.125 MB / 410.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 () * 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.000889/0.6496, allocations: 1.491 MB / 0.6044 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003165/0.6499, allocations: 183.6 kB / 0.6046 GB, free: 15.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6499, allocations: 0 / 0.6046 GB, free: 15.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.468e-05/0.65, allocations: 67.94 kB / 0.6046 GB, free: 15.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005998/0.6506, allocations: 63.22 kB / 0.6047 GB, free: 15.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.6525, allocations: 1.1 MB / 0.6058 GB, free: 14.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.6529, allocations: 0.7802 MB / 0.6065 GB, free: 13.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.653, allocations: 30.97 kB / 0.6066 GB, free: 13.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.6531, allocations: 91.41 kB / 0.6067 GB, free: 13.21 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6531, allocations: 0 / 0.6067 GB, free: 13.21 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.6704, allocations: 4.811 MB / 0.6113 GB, free: 8.535 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.6706, allocations: 136.7 kB / 0.6115 GB, free: 8.316 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.554, allocations: 4 kB / 0.6115 GB, free: 8.312 MB / 426.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