Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.conf.json 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/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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",fileNamePrefix="ModelicaTest_3.2.3_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",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 97.59 kB / 16.93 MB, free: 5.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001528/0.001529, allocations: 187.6 kB / 17.86 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.221/0.221, allocations: 43.53 MB / 314.6 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001597, allocations: 69.27 kB / 383.4 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09705, allocations: 57.79 MB / 441.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00328/0.1004, allocations: 2.69 MB / 443.9 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.1019, allocations: 0.9823 MB / 444.9 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.1021, allocations: 7.938 kB / 444.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.1023, allocations: 47.52 kB / 444.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.1025, allocations: 107 kB / 445 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.1029, allocations: 143.6 kB / 445.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002686/0.1032, allocations: 378.1 kB / 445.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.1034, allocations: 85.41 kB / 445.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.1035, allocations: 135.5 kB / 445.7 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.1037, allocations: 143.3 kB / 445.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.1037, allocations: 28 kB / 445.9 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.1039, allocations: 39.98 kB / 445.9 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.265e-05/0.1039, allocations: 63.78 kB / 446 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.104, allocations: 163.2 kB / 446.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.1043, allocations: 362.7 kB / 446.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1043, allocations: 0 / 446.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1043, allocations: 0 / 446.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1043, allocations: 0 / 446.5 MB, free: 1.551 MB / 318.1 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.0007275/0.1051, allocations: 0.5927 MB / 447.1 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1051, allocations: 8.031 kB / 447.1 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.1053, allocations: 52.53 kB / 447.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.1056, allocations: 267.6 kB / 447.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.1056, allocations: 21.03 kB / 447.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.1056, allocations: 32.38 kB / 447.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.106, allocations: 310.6 kB / 447.8 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.1061, allocations: 7.906 kB / 447.8 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.1061, allocations: 12 kB / 447.8 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.1061, allocations: 4 kB / 447.8 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002953/0.1064, allocations: 179.8 kB / 448 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.1082, allocations: 1.34 MB / 449.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004205/0.1087, allocations: 257 kB / 449.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.1088, allocations: 80.25 kB / 449.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.1088, allocations: 8 kB / 449.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.1088, allocations: 42.5 kB / 449.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.923e-06/0.1088, allocations: 3.938 kB / 449.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004922/0.1093, allocations: 205.3 kB / 449.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.635e-05/0.1094, allocations: 166.2 kB / 450.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.1096, allocations: 212.2 kB / 450.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.1097, allocations: 33.7 kB / 450.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.1098, allocations: 192.1 kB / 450.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.005e-05/0.1099, allocations: 86.7 kB / 450.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.11, allocations: 61.7 kB / 450.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.1101, allocations: 334.8 kB / 451 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.1103, allocations: 63.97 kB / 451 MB, free: 12.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.1105, allocations: 205.9 kB / 451.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/0.1109, allocations: 305.6 kB / 451.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1109, allocations: 0 / 451.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004684/0.1114, allocations: 313.4 kB / 451.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1114, allocations: 9.25 kB / 451.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1114, allocations: 8 kB / 451.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/0.1115, allocations: 8 kB / 451.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.1118, allocations: 91.83 kB / 452 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.1118, allocations: 8 kB / 452 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.112, allocations: 36.16 kB / 452 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.112, allocations: 16 kB / 452 MB, free: 11.55 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00015/0.1122, allocations: 165.8 kB / 452.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.1123, allocations: 23.8 kB / 452.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001719/0.1125, allocations: 83.08 kB / 452.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1125, allocations: 4 kB / 452.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.1125, allocations: 0 / 452.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.1125, allocations: 3.984 kB / 452.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005927/0.1131, allocations: 321.2 kB / 452.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1131, allocations: 4 kB / 452.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000325/0.1134, allocations: 67.95 kB / 452.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1135, allocations: 4 kB / 452.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.1135, allocations: 4 kB / 452.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1135, allocations: 4 kB / 452.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1135, allocations: 3.938 kB / 452.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005769/0.1141, allocations: 0.6392 MB / 453.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.727e-05/0.1142, allocations: 100.8 kB / 453.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.757e-05/0.1142, allocations: 8 kB / 453.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.1145, allocations: 8 kB / 453.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.1145, allocations: 19.91 kB / 453.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.1146, allocations: 8 kB / 453.5 MB, free: 10 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001302/0.1147, allocations: 146 kB / 453.6 MB, free: 9.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1147, allocations: 3.938 kB / 453.6 MB, free: 9.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005382/0.1152, allocations: 83.78 kB / 453.7 MB, free: 9.773 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001129/0.1154, allocations: 104.1 kB / 453.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.1157, allocations: 196 kB / 454 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1157, allocations: 1.062 kB / 454 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.1159, allocations: 75.97 kB / 454.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008681/0.1167, allocations: 56.83 kB / 454.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.1185, allocations: 1.151 MB / 455.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/0.1189, allocations: 0.7677 MB / 456 MB, free: 7.352 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.565e-05/0.119, allocations: 23.44 kB / 456.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.119, allocations: 0 / 456.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of Templates: time 0.005441/0.1244, allocations: 3.375 MB / 459.4 MB, free: 3.961 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches