Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00201/0.00201, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.104/2.104, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0012/0.0012, allocations: 93.3 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5333/0.5333, allocations: 43.56 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000525/0.0005249, allocations: 8 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1394, allocations: 58.84 MB / 490.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4972/0.6367, allocations: 89.61 MB / 0.5663 GB, free: 12.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003062/0.6371, allocations: 67.97 kB / 0.5664 GB, free: 12.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02817/0.6653, allocations: 6.121 MB / 0.5724 GB, free: 6.828 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.6653, allocations: 0 / 0.5724 GB, free: 6.828 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.981e-05/0.6654, allocations: 8 kB / 0.5724 GB, free: 6.82 MB / 394.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.001204/0.6666, allocations: 0.5334 MB / 0.5729 GB, free: 6.242 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.6667, allocations: 16.03 kB / 0.5729 GB, free: 6.227 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.6668, allocations: 66.47 kB / 0.573 GB, free: 6.152 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000294/0.6671, allocations: 54.95 kB / 0.573 GB, free: 6.102 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.6675, allocations: 257.5 kB / 0.5733 GB, free: 5.812 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.6676, allocations: 20.66 kB / 0.5733 GB, free: 5.793 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.292e-05/0.6677, allocations: 39.84 kB / 0.5733 GB, free: 5.754 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007745/0.6685, allocations: 302.7 kB / 0.5736 GB, free: 5.434 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/0.6685, allocations: 4.125 kB / 0.5736 GB, free: 5.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.435e-05/0.6686, allocations: 12 kB / 0.5736 GB, free: 5.418 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.6686, allocations: 12.97 kB / 0.5736 GB, free: 5.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005371/0.6692, allocations: 180.9 kB / 0.5738 GB, free: 5.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003026/0.6722, allocations: 1.336 MB / 0.5751 GB, free: 3.793 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006806/0.6729, allocations: 249.7 kB / 0.5754 GB, free: 3.504 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.673, allocations: 160 / 0.5754 GB, free: 3.504 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/0.673, allocations: 46.53 kB / 0.5754 GB, free: 3.449 MB / 394.7 MB Notification: Performance of pre-optimization done (n=22): time 2.204e-06/0.6731, allocations: 4 kB / 0.5754 GB, free: 3.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.000762/0.6738, allocations: 225.1 kB / 0.5756 GB, free: 3.219 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.674, allocations: 158.2 kB / 0.5758 GB, free: 3.027 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002917/0.6743, allocations: 179.4 kB / 0.5759 GB, free: 2.844 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.6743, allocations: 33.7 kB / 0.576 GB, free: 2.805 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.6745, allocations: 250.3 kB / 0.5762 GB, free: 2.559 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.6746, allocations: 90.73 kB / 0.5763 GB, free: 2.469 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.168e-05/0.6747, allocations: 12.12 kB / 0.5763 GB, free: 2.457 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.6748, allocations: 326.8 kB / 0.5766 GB, free: 2.129 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.675, allocations: 63.91 kB / 0.5767 GB, free: 2.066 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.6754, allocations: 206.5 kB / 0.5769 GB, free: 1.801 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.6757, allocations: 99.92 kB / 0.577 GB, free: 1.703 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.6757, allocations: 0 / 0.577 GB, free: 1.703 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007897/0.6765, allocations: 304.9 kB / 0.5773 GB, free: 1.398 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.6765, allocations: 8 kB / 0.5773 GB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.6766, allocations: 4 kB / 0.5773 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.6766, allocations: 8.531 kB / 0.5773 GB, free: 1.379 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005761/0.6772, allocations: 91.89 kB / 0.5774 GB, free: 1.289 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.209e-05/0.6772, allocations: 15.89 kB / 0.5774 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.6776, allocations: 31.69 kB / 0.5774 GB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.6776, allocations: 19.98 kB / 0.5774 GB, free: 1.223 MB / 394.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.0002523/0.6779, allocations: 153.8 kB / 0.5776 GB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.678, allocations: 27.66 kB / 0.5776 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002641/0.6783, allocations: 83.08 kB / 0.5777 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.6783, allocations: 8 kB / 0.5777 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.6783, allocations: 0 / 0.5777 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.6784, allocations: 7.953 kB / 0.5777 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008719/0.6792, allocations: 305.4 kB / 0.578 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.6793, allocations: 4 kB / 0.578 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006809/0.68, allocations: 67.84 kB / 0.5781 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.274e-05/0.68, allocations: 4 kB / 0.5781 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.68, allocations: 4 kB / 0.5781 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.185e-06/0.68, allocations: 4.25 kB / 0.5781 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.6801, allocations: 0 / 0.5781 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009487/0.681, allocations: 0.6922 MB / 0.5788 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.6811, allocations: 104.8 kB / 0.5789 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.6812, allocations: 8 kB / 0.5789 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003719/0.6816, allocations: 4 kB / 0.5789 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/0.6817, allocations: 16.55 kB / 0.5789 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.6817, allocations: 4 kB / 0.5789 GB, free: 15.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001998/0.6819, allocations: 153.6 kB / 0.579 GB, free: 15.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6819, allocations: 0 / 0.579 GB, free: 15.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007687/0.6827, allocations: 87.91 kB / 0.5791 GB, free: 15.38 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 () * 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.001342/0.684, allocations: 1.506 MB / 0.5806 GB, free: 13.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000608/0.6847, allocations: 187.5 kB / 0.5808 GB, free: 13.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6847, allocations: 1.062 kB / 0.5808 GB, free: 13.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.6849, allocations: 75.89 kB / 0.5808 GB, free: 13.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008735/0.6858, allocations: 57.94 kB / 0.5809 GB, free: 13.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006424/0.6922, allocations: 5.317 MB / 0.5861 GB, free: 8.055 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005069/0.6928, allocations: 0.7794 MB / 0.5868 GB, free: 7.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.693, allocations: 95.39 kB / 0.5869 GB, free: 7.156 MB / 410.7 MB Notification: Performance of SimCode: time 1.533e-06/0.693, allocations: 4 kB / 0.5869 GB, free: 7.152 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.447/3.14, allocations: 4.551 MB / 0.5914 GB, free: 2.617 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat