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.001117/0.001117, allocations: 176.5 kB / 17.06 MB, free: 5.098 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.476/1.476, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000814/0.000814, allocations: 104.7 kB / 292.2 MB, free: 10.93 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.34/0.34, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003262/0.0003261, allocations: 8 kB / 459.9 MB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3377, allocations: 61.89 MB / 0.5095 GB, free: 37.87 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.4879, allocations: 90.56 MB / 0.598 GB, free: 4.602 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.4883, allocations: 71.95 kB / 0.598 GB, free: 4.531 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01743/0.5057, allocations: 6.21 MB / 0.6041 GB, free: 14.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5057, allocations: 4 kB / 0.6041 GB, free: 14.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.5058, allocations: 8 kB / 0.6041 GB, free: 14.31 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008593/0.5066, allocations: 0.5382 MB / 0.6046 GB, free: 13.72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.5067, allocations: 12.25 kB / 0.6047 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.5069, allocations: 55.5 kB / 0.6047 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/0.5072, allocations: 259 kB / 0.605 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.5073, allocations: 20.66 kB / 0.605 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.65e-05/0.5073, allocations: 39.86 kB / 0.605 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.5078, allocations: 294.7 kB / 0.6053 GB, free: 12.99 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.5078, allocations: 8 kB / 0.6053 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.5079, allocations: 12 kB / 0.6053 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.5079, allocations: 8 kB / 0.6053 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.5082, allocations: 177.9 kB / 0.6055 GB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.5101, allocations: 1.347 MB / 0.6068 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004276/0.5105, allocations: 245.3 kB / 0.607 GB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.5106, allocations: 11.88 kB / 0.6071 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.5106, allocations: 42.59 kB / 0.6071 GB, free: 11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=22): time 1.884e-06/0.5106, allocations: 0 / 0.6071 GB, free: 11 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004801/0.5111, allocations: 209.2 kB / 0.6073 GB, free: 10.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.199e-05/0.5112, allocations: 166.3 kB / 0.6075 GB, free: 10.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.5114, allocations: 183.4 kB / 0.6076 GB, free: 10.39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.5114, allocations: 25.7 kB / 0.6077 GB, free: 10.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.5116, allocations: 200 kB / 0.6078 GB, free: 10.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.5116, allocations: 86.75 kB / 0.6079 GB, free: 10.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.399e-05/0.5117, allocations: 8 kB / 0.6079 GB, free: 10.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5118, allocations: 338.8 kB / 0.6083 GB, free: 9.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.5119, allocations: 67.97 kB / 0.6083 GB, free: 9.664 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.5121, allocations: 202.5 kB / 0.6085 GB, free: 9.402 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.5123, allocations: 91.92 kB / 0.6086 GB, free: 9.312 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.5123, allocations: 4 kB / 0.6086 GB, free: 9.309 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004537/0.5128, allocations: 313 kB / 0.6089 GB, free: 8.996 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.5128, allocations: 8 kB / 0.6089 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.5128, allocations: 4 kB / 0.6089 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.5129, allocations: 8 kB / 0.6089 GB, free: 8.977 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002977/0.5132, allocations: 87.83 kB / 0.609 GB, free: 8.891 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.5132, allocations: 8 kB / 0.609 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.5134, allocations: 40.03 kB / 0.6091 GB, free: 8.844 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.5134, allocations: 16 kB / 0.6091 GB, free: 8.828 MB / 426.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.0001428/0.5135, allocations: 161.6 kB / 0.6092 GB, free: 8.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.5136, allocations: 19.81 kB / 0.6092 GB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.5138, allocations: 87.02 kB / 0.6093 GB, free: 8.547 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.5138, allocations: 4 kB / 0.6093 GB, free: 8.543 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5138, allocations: 4.188 kB / 0.6093 GB, free: 8.539 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.5138, allocations: 4.562 kB / 0.6093 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005894/0.5144, allocations: 325.3 kB / 0.6096 GB, free: 8.168 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.5145, allocations: 8.094 kB / 0.6097 GB, free: 8.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000317/0.5148, allocations: 63.91 kB / 0.6097 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-06/0.5148, allocations: 4 kB / 0.6097 GB, free: 8.094 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.5148, allocations: 4 kB / 0.6097 GB, free: 8.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.5148, allocations: 4 kB / 0.6097 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.5148, allocations: 3.938 kB / 0.6097 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006797/0.5155, allocations: 0.6753 MB / 0.6104 GB, free: 7.359 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.5156, allocations: 100.8 kB / 0.6105 GB, free: 7.242 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.5157, allocations: 4 kB / 0.6105 GB, free: 7.238 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.5159, allocations: 19.88 kB / 0.6105 GB, free: 7.219 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.168e-05/0.516, allocations: 23.92 kB / 0.6105 GB, free: 7.195 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.516, allocations: 4 kB / 0.6105 GB, free: 7.191 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001504/0.5162, allocations: 149.8 kB / 0.6107 GB, free: 7.047 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5162, allocations: 0 / 0.6107 GB, free: 7.047 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000524/0.5167, allocations: 79.84 kB / 0.6108 GB, free: 6.969 MB / 426.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.0001538/0.5169, allocations: 102.1 kB / 0.6109 GB, free: 6.863 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003473/0.5172, allocations: 191.2 kB / 0.611 GB, free: 6.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.5172, allocations: 0 / 0.611 GB, free: 6.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.5173, allocations: 75.84 kB / 0.6111 GB, free: 6.605 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006137/0.518, allocations: 56.64 kB / 0.6112 GB, free: 6.551 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.5199, allocations: 1.381 MB / 0.6125 GB, free: 5.137 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.5203, allocations: 0.7874 MB / 0.6133 GB, free: 4.32 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.5204, allocations: 30.95 kB / 0.6133 GB, free: 4.285 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.859e-05/0.5205, allocations: 27.38 kB / 0.6133 GB, free: 4.258 MB / 426.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5205, allocations: 0 / 0.6133 GB, free: 4.258 MB / 426.7 MB Notification: Performance of Templates: time 0.005166/0.5257, allocations: 2.277 MB / 0.6156 GB, free: 2.012 MB / 426.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