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: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 169.9 kB / 8.742 MB, free: 344 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.376/1.376, allocations: 221.5 MB / 230.7 MB, free: 7.578 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.0009921/0.0009919, allocations: 98.95 kB / 281.6 MB, free: 5.32 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.223/0.223, allocations: 44.16 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.306e-05/1.309e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1513, allocations: 61.92 MB / 0.4947 GB, free: 1.254 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4537/0.6051, allocations: 89.81 MB / 0.5824 GB, free: 6.699 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001636/0.6053, allocations: 71.95 kB / 0.5824 GB, free: 6.629 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01609/0.6214, allocations: 6.158 MB / 0.5885 GB, free: 496 kB / 394.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.6215, allocations: 0 / 0.5885 GB, free: 496 kB / 394.7 MB Notification: Performance of Transformations before backend: time 1.668e-05/0.6215, allocations: 4 kB / 0.5885 GB, free: 492 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.0006863/0.6222, allocations: 0.5144 MB / 0.589 GB, free: 15.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.6222, allocations: 11.98 kB / 0.589 GB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/0.6224, allocations: 51.61 kB / 0.589 GB, free: 15.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.6227, allocations: 262.4 kB / 0.5893 GB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.6227, allocations: 8 kB / 0.5893 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.6228, allocations: 27.95 kB / 0.5893 GB, free: 15.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002843/0.6231, allocations: 145.5 kB / 0.5894 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003679/0.6235, allocations: 254.8 kB / 0.5897 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.6235, allocations: 3.906 kB / 0.5897 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.6235, allocations: 0 / 0.5897 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.6235, allocations: 8 kB / 0.5897 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.6251, allocations: 1.291 MB / 0.591 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003183/0.6255, allocations: 217.4 kB / 0.5912 GB, free: 13.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.77e-05/0.6256, allocations: 72.27 kB / 0.5912 GB, free: 13.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.6256, allocations: 7.938 kB / 0.5912 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.6256, allocations: 38.69 kB / 0.5913 GB, free: 13.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.6257, allocations: 4 kB / 0.5913 GB, free: 13.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003706/0.626, allocations: 153.5 kB / 0.5914 GB, free: 13.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.6261, allocations: 158.2 kB / 0.5916 GB, free: 12.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.6262, allocations: 170 kB / 0.5917 GB, free: 12.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.6263, allocations: 25.7 kB / 0.5918 GB, free: 12.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.538e-05/0.6264, allocations: 191.8 kB / 0.592 GB, free: 12.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.4e-05/0.6264, allocations: 86.72 kB / 0.592 GB, free: 12.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-06/0.6265, allocations: 4.031 kB / 0.592 GB, free: 12.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.6266, allocations: 334.8 kB / 0.5924 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.863e-05/0.6267, allocations: 52.22 kB / 0.5924 GB, free: 12.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.6268, allocations: 195.9 kB / 0.5926 GB, free: 11.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/0.627, allocations: 95.78 kB / 0.5927 GB, free: 11.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.627, allocations: 0 / 0.5927 GB, free: 11.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003788/0.6274, allocations: 269.2 kB / 0.5929 GB, free: 11.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.6274, allocations: 9.406 kB / 0.593 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.6274, allocations: 4 kB / 0.593 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.6274, allocations: 12.53 kB / 0.593 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002766/0.6277, allocations: 87.84 kB / 0.5931 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.6277, allocations: 15.98 kB / 0.5931 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.6279, allocations: 23.69 kB / 0.5931 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.6279, allocations: 20 kB / 0.5931 GB, free: 11.3 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 8.992e-05/0.628, allocations: 120.8 kB / 0.5932 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.967e-05/0.6281, allocations: 23.72 kB / 0.5932 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.6283, allocations: 75.52 kB / 0.5933 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.6283, allocations: 4 kB / 0.5933 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6283, allocations: 8 kB / 0.5933 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.6283, allocations: 3.984 kB / 0.5933 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004666/0.6288, allocations: 258 kB / 0.5936 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.6288, allocations: 96 / 0.5936 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/0.6291, allocations: 71.84 kB / 0.5936 GB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/0.6292, allocations: 7.953 kB / 0.5937 GB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.6292, allocations: 7.984 kB / 0.5937 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.6292, allocations: 0 / 0.5937 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.6292, allocations: 4 kB / 0.5937 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004687/0.6297, allocations: 0.6533 MB / 0.5943 GB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/0.6297, allocations: 104.9 kB / 0.5944 GB, free: 9.863 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.6298, allocations: 4 kB / 0.5944 GB, free: 9.859 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.63, allocations: 4 kB / 0.5944 GB, free: 9.855 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.6301, allocations: 23.92 kB / 0.5944 GB, free: 9.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.6301, allocations: 7.984 kB / 0.5944 GB, free: 9.824 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.855e-05/0.6302, allocations: 131.3 kB / 0.5946 GB, free: 9.695 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.283e-06/0.6302, allocations: 112 / 0.5946 GB, free: 9.695 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005162/0.6307, allocations: 79.69 kB / 0.5946 GB, free: 9.617 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.0001182/0.6308, allocations: 111.1 kB / 0.5948 GB, free: 9.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002548/0.6311, allocations: 163.6 kB / 0.5949 GB, free: 9.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.6311, allocations: 0 / 0.5949 GB, free: 9.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.12e-05/0.6312, allocations: 63.88 kB / 0.595 GB, free: 9.277 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.6317, allocations: 56.03 kB / 0.595 GB, free: 9.227 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.6331, allocations: 0.999 MB / 0.596 GB, free: 8.188 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.6334, allocations: 0.7797 MB / 0.5968 GB, free: 7.379 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.6336, allocations: 34.05 kB / 0.5968 GB, free: 7.348 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.6336, allocations: 19.44 kB / 0.5968 GB, free: 7.328 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.6336, allocations: 0 / 0.5968 GB, free: 7.328 MB / 410.7 MB Notification: Performance of Templates: time 0.004776/0.6384, allocations: 2.155 MB / 0.5989 GB, free: 5.203 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches