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.001005/0.001005, allocations: 176.7 kB / 8.742 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.634/1.634, allocations: 221.5 MB / 230.7 MB, free: 7.52 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.000899/0.000899, allocations: 94.02 kB / 281.6 MB, free: 5.262 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.2042/0.2042, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.165e-05/2.188e-05, allocations: 4 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1536, allocations: 61.92 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.503/0.6566, allocations: 89.81 MB / 0.5825 GB, free: 6.539 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/0.657, allocations: 71.95 kB / 0.5825 GB, free: 6.469 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01785/0.6749, allocations: 6.147 MB / 0.5885 GB, free: 336 kB / 394.7 MB Notification: Performance of FrontEnd: time 5.681e-06/0.675, allocations: 4.828 kB / 0.5885 GB, free: 332 kB / 394.7 MB Notification: Performance of Transformations before backend: time 2.411e-05/0.675, allocations: 8 kB / 0.5886 GB, free: 324 kB / 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.0008077/0.6758, allocations: 0.5221 MB / 0.5891 GB, free: 15.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/0.6759, allocations: 11.98 kB / 0.5891 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002589/0.6761, allocations: 47.61 kB / 0.5891 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.6765, allocations: 266.4 kB / 0.5894 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.6765, allocations: 12 kB / 0.5894 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.6766, allocations: 31.86 kB / 0.5894 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003288/0.6769, allocations: 145.5 kB / 0.5896 GB, free: 15.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.6773, allocations: 254.7 kB / 0.5898 GB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.6774, allocations: 0 / 0.5898 GB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.6774, allocations: 4 kB / 0.5898 GB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.6774, allocations: 4 kB / 0.5898 GB, free: 14.92 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.6795, allocations: 1.283 MB / 0.5911 GB, free: 13.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004026/0.6799, allocations: 229.3 kB / 0.5913 GB, free: 13.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.6801, allocations: 68.33 kB / 0.5913 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.6801, allocations: 8 kB / 0.5913 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/0.6801, allocations: 42.5 kB / 0.5914 GB, free: 13.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 2.815e-06/0.6802, allocations: 0 / 0.5914 GB, free: 13.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004284/0.6806, allocations: 149.5 kB / 0.5915 GB, free: 12.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.577e-05/0.6807, allocations: 166.2 kB / 0.5917 GB, free: 12.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.6809, allocations: 166 kB / 0.5918 GB, free: 12.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.6809, allocations: 25.7 kB / 0.5919 GB, free: 12.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.681, allocations: 191.8 kB / 0.5921 GB, free: 12.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.402e-05/0.6811, allocations: 90.72 kB / 0.5921 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-06/0.6811, allocations: 0 / 0.5921 GB, free: 12.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.6813, allocations: 330.8 kB / 0.5925 GB, free: 11.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.6814, allocations: 52 kB / 0.5925 GB, free: 11.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.6816, allocations: 195.9 kB / 0.5927 GB, free: 11.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.6818, allocations: 99.78 kB / 0.5928 GB, free: 11.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.6818, allocations: 0 / 0.5928 GB, free: 11.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004151/0.6822, allocations: 265.4 kB / 0.593 GB, free: 11.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.6823, allocations: 11.94 kB / 0.5931 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/0.6823, allocations: 7.984 kB / 0.5931 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.6823, allocations: 8 kB / 0.5931 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.6826, allocations: 79.91 kB / 0.5931 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.6826, allocations: 11.94 kB / 0.5932 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.6828, allocations: 31.67 kB / 0.5932 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.6828, allocations: 16 kB / 0.5932 GB, free: 11.14 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 0.0001063/0.683, allocations: 121.2 kB / 0.5933 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000357/0.6833, allocations: 165.2 kB / 0.5935 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.792e-05/0.6834, allocations: 19.81 kB / 0.5935 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.6836, allocations: 75.52 kB / 0.5936 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.6836, allocations: 4 kB / 0.5936 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.6836, allocations: 0 / 0.5936 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.6837, allocations: 4.281 kB / 0.5936 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005326/0.6842, allocations: 269.9 kB / 0.5938 GB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.6842, allocations: 7.969 kB / 0.5938 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.6845, allocations: 63.97 kB / 0.5939 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.6846, allocations: 0 / 0.5939 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.6846, allocations: 15.92 kB / 0.5939 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.977e-06/0.6846, allocations: 7.984 kB / 0.5939 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.6846, allocations: 3.938 kB / 0.5939 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005801/0.6852, allocations: 0.6519 MB / 0.5946 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.792e-05/0.6853, allocations: 100.8 kB / 0.5947 GB, free: 9.523 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.6853, allocations: 7.984 kB / 0.5947 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.6856, allocations: 7.953 kB / 0.5947 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.6856, allocations: 15.98 kB / 0.5947 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.6857, allocations: 8 kB / 0.5947 GB, free: 9.484 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.6858, allocations: 131.2 kB / 0.5948 GB, free: 9.355 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6858, allocations: 0 / 0.5948 GB, free: 9.355 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005274/0.6863, allocations: 71.84 kB / 0.5949 GB, free: 9.285 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.001002/0.6873, allocations: 1.476 MB / 0.5963 GB, free: 7.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002963/0.6876, allocations: 167.7 kB / 0.5965 GB, free: 7.605 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.6876, allocations: 0 / 0.5965 GB, free: 7.605 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.745e-05/0.6877, allocations: 67.86 kB / 0.5966 GB, free: 7.539 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005929/0.6883, allocations: 46.61 kB / 0.5966 GB, free: 7.496 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.6903, allocations: 1.084 MB / 0.5977 GB, free: 6.355 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.6907, allocations: 0.7758 MB / 0.5984 GB, free: 5.551 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.6909, allocations: 38.05 kB / 0.5985 GB, free: 5.516 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.691, allocations: 87.41 kB / 0.5985 GB, free: 5.43 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.691, allocations: 0 / 0.5985 GB, free: 5.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02619/0.7172, allocations: 4.365 MB / 0.6028 GB, free: 1.105 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002657/0.7176, allocations: 132.9 kB / 0.6029 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/2.578, allocations: 0 / 0.6029 GB, free: 0.9062 MB / 410.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