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.001456/0.001456, allocations: 117.9 kB / 17.08 MB, free: 6.008 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.00164/0.00164, allocations: 194.4 kB / 18.01 MB, free: 5.094 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.378/1.378, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2186/0.2186, allocations: 43.52 MB / 314.8 MB, free: 464 kB / 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.001562/0.001562, allocations: 64.36 kB / 442.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1126, allocations: 57.78 MB / 0.4885 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004312/0.117, allocations: 2.7 MB / 0.4912 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.119, allocations: 0.9901 MB / 0.4921 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002909/0.1193, allocations: 4 kB / 0.4921 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002197/0.1195, allocations: 55.45 kB / 0.4922 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.1199, allocations: 91.11 kB / 0.4923 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.1204, allocations: 139.6 kB / 0.4924 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005031/0.121, allocations: 382.2 kB / 0.4928 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.1212, allocations: 100.9 kB / 0.4929 GB, free: 7.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.1214, allocations: 131.5 kB / 0.493 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/0.1217, allocations: 143.3 kB / 0.4931 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.819e-05/0.1218, allocations: 28 kB / 0.4931 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.1219, allocations: 39.98 kB / 0.4932 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.42e-05/0.122, allocations: 59.78 kB / 0.4932 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.1221, allocations: 163.2 kB / 0.4934 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004492/0.1226, allocations: 366.8 kB / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1226, allocations: 0 / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1226, allocations: 0 / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.486e-05/0.1227, allocations: 0 / 0.4937 GB, free: 6.461 MB / 382.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.001025/0.1237, allocations: 0.6043 MB / 0.4943 GB, free: 5.805 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.1237, allocations: 8.031 kB / 0.4943 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002476/0.124, allocations: 52.55 kB / 0.4944 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004389/0.1244, allocations: 267.7 kB / 0.4946 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.1245, allocations: 25.03 kB / 0.4947 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.038e-05/0.1245, allocations: 28.38 kB / 0.4947 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004959/0.125, allocations: 314.6 kB / 0.495 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.1251, allocations: 7.906 kB / 0.495 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.1251, allocations: 8 kB / 0.495 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.1251, allocations: 11.94 kB / 0.495 GB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003389/0.1255, allocations: 179.8 kB / 0.4952 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.1276, allocations: 1.336 MB / 0.4965 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003984/0.128, allocations: 245.1 kB / 0.4967 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.1281, allocations: 80.2 kB / 0.4968 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.1281, allocations: 11.98 kB / 0.4968 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.1282, allocations: 38.56 kB / 0.4969 GB, free: 2.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 2.334e-06/0.1282, allocations: 0 / 0.4969 GB, free: 2.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.000487/0.1287, allocations: 213.2 kB / 0.4971 GB, free: 2.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.507e-05/0.1288, allocations: 158.3 kB / 0.4972 GB, free: 2.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.129, allocations: 220 kB / 0.4974 GB, free: 2.348 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.129, allocations: 33.7 kB / 0.4975 GB, free: 2.309 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1291, allocations: 188.1 kB / 0.4976 GB, free: 2.121 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.729e-05/0.1292, allocations: 86.72 kB / 0.4977 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.311e-05/0.1293, allocations: 61.69 kB / 0.4978 GB, free: 1.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1294, allocations: 338.8 kB / 0.4981 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.1296, allocations: 59.97 kB / 0.4982 GB, free: 1.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.1298, allocations: 209.9 kB / 0.4984 GB, free: 1.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003567/0.1301, allocations: 297.7 kB / 0.4986 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1301, allocations: 0 / 0.4986 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004903/0.1306, allocations: 321.2 kB / 0.4989 GB, free: 0.625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.1307, allocations: 8 kB / 0.499 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1307, allocations: 4 kB / 0.499 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.1307, allocations: 8 kB / 0.499 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.131, allocations: 91.83 kB / 0.4991 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.131, allocations: 8 kB / 0.4991 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.1312, allocations: 39.53 kB / 0.4991 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.1313, allocations: 16.09 kB / 0.4991 GB, free: 464 kB / 382.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.0001573/0.1314, allocations: 161.8 kB / 0.4993 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.1316, allocations: 24.38 kB / 0.4993 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001867/0.1318, allocations: 87.06 kB / 0.4994 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1318, allocations: 4 kB / 0.4994 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.1318, allocations: 0 / 0.4994 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1318, allocations: 0 / 0.4994 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006407/0.1325, allocations: 317.3 kB / 0.4997 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.1325, allocations: 11.92 kB / 0.4997 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/0.1328, allocations: 67.89 kB / 0.4998 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.1328, allocations: 4 kB / 0.4998 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.1328, allocations: 8 kB / 0.4998 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1328, allocations: 4 kB / 0.4998 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1329, allocations: 0 / 0.4998 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005521/0.1334, allocations: 0.641 MB / 0.5004 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.645e-05/0.1335, allocations: 100.8 kB / 0.5005 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.1335, allocations: 8 kB / 0.5005 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.1338, allocations: 8 kB / 0.5005 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.1338, allocations: 15.97 kB / 0.5005 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.1339, allocations: 4 kB / 0.5005 GB, free: 14.9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001143/0.134, allocations: 145.9 kB / 0.5007 GB, free: 14.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.134, allocations: 0 / 0.5007 GB, free: 14.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005579/0.1345, allocations: 87.78 kB / 0.5008 GB, free: 14.68 MB / 398.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.0001348/0.1347, allocations: 107.1 kB / 0.5009 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003457/0.135, allocations: 188 kB / 0.501 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1351, allocations: 1.062 kB / 0.501 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.1352, allocations: 79.97 kB / 0.5011 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007754/0.1359, allocations: 74.94 kB / 0.5012 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.1376, allocations: 1.139 MB / 0.5023 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.138, allocations: 0.7716 MB / 0.503 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.983e-05/0.1381, allocations: 23.44 kB / 0.5031 GB, free: 12.23 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.1381, allocations: 0 / 0.5031 GB, free: 12.23 MB / 398.1 MB Notification: Performance of Templates: time 0.005703/0.1438, allocations: 3.389 MB / 0.5064 GB, free: 8.836 MB / 398.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