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.001558/0.001559, allocations: 119.3 kB / 17.08 MB, free: 5.961 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.001967/0.001967, allocations: 197.2 kB / 18.02 MB, free: 5.043 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.573/1.573, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.2248/0.2248, allocations: 43.53 MB / 314.8 MB, free: 448 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.001553/0.001553, allocations: 69.47 kB / 442.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.111, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004233/0.1153, allocations: 2.696 MB / 0.4912 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.1174, allocations: 0.9862 MB / 0.4921 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003437/0.1177, allocations: 12 kB / 0.4921 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.118, allocations: 47.45 kB / 0.4922 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003855/0.1184, allocations: 99.11 kB / 0.4923 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006568/0.1191, allocations: 139.6 kB / 0.4924 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005417/0.1197, allocations: 374.2 kB / 0.4928 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.1199, allocations: 105 kB / 0.4929 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002027/0.1201, allocations: 131.5 kB / 0.493 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002392/0.1204, allocations: 151.3 kB / 0.4931 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.949e-05/0.1204, allocations: 24 kB / 0.4931 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.1206, allocations: 40 kB / 0.4932 GB, free: 7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.512e-05/0.1207, allocations: 59.77 kB / 0.4932 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.1208, allocations: 163.2 kB / 0.4934 GB, free: 6.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.1213, allocations: 366.8 kB / 0.4937 GB, free: 6.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1213, allocations: 8 kB / 0.4938 GB, free: 6.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1213, allocations: 0 / 0.4938 GB, free: 6.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.1214, allocations: 0 / 0.4938 GB, free: 6.414 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.0009594/0.1223, allocations: 0.5965 MB / 0.4943 GB, free: 5.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1224, allocations: 12.03 kB / 0.4943 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002368/0.1226, allocations: 48.55 kB / 0.4944 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000396/0.123, allocations: 263.7 kB / 0.4946 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.1231, allocations: 21.03 kB / 0.4947 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.1231, allocations: 36.36 kB / 0.4947 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.1236, allocations: 306.6 kB / 0.495 GB, free: 5.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.1236, allocations: 11.91 kB / 0.495 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.1237, allocations: 12 kB / 0.495 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1237, allocations: 11.94 kB / 0.495 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003123/0.124, allocations: 171.8 kB / 0.4952 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.1259, allocations: 1.336 MB / 0.4965 GB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003965/0.1263, allocations: 249 kB / 0.4967 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.1264, allocations: 84.14 kB / 0.4968 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.1264, allocations: 8 kB / 0.4968 GB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.1264, allocations: 34.56 kB / 0.4969 GB, free: 2.953 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.1265, allocations: 0 / 0.4969 GB, free: 2.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004801/0.1269, allocations: 213.3 kB / 0.4971 GB, free: 2.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/0.127, allocations: 162.2 kB / 0.4972 GB, free: 2.543 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.1272, allocations: 220.2 kB / 0.4974 GB, free: 2.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.1273, allocations: 25.7 kB / 0.4974 GB, free: 2.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.1274, allocations: 192.1 kB / 0.4976 GB, free: 2.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.145e-05/0.1275, allocations: 90.7 kB / 0.4977 GB, free: 2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.596e-05/0.1276, allocations: 61.7 kB / 0.4978 GB, free: 1.934 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1277, allocations: 334.8 kB / 0.4981 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1278, allocations: 63.97 kB / 0.4982 GB, free: 1.535 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.128, allocations: 205.9 kB / 0.4984 GB, free: 1.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.1283, allocations: 297.7 kB / 0.4986 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.1284, allocations: 4 kB / 0.4986 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004827/0.1288, allocations: 321.2 kB / 0.4989 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.1289, allocations: 8 kB / 0.499 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.1289, allocations: 4.312 kB / 0.499 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.1289, allocations: 8 kB / 0.499 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/0.1292, allocations: 83.89 kB / 0.499 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.1292, allocations: 7.938 kB / 0.4991 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.1294, allocations: 43.53 kB / 0.4991 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.436e-05/0.1295, allocations: 19.97 kB / 0.4991 GB, free: 428 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.0001487/0.1296, allocations: 161.8 kB / 0.4993 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.1297, allocations: 19.91 kB / 0.4993 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001808/0.1299, allocations: 87.02 kB / 0.4994 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.1299, allocations: 4.562 kB / 0.4994 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.13, allocations: 4 kB / 0.4994 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.13, allocations: 0 / 0.4994 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006296/0.1306, allocations: 321.3 kB / 0.4997 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1306, allocations: 3.938 kB / 0.4997 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.1309, allocations: 67.91 kB / 0.4998 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.311e-06/0.131, allocations: 8 kB / 0.4998 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.131, allocations: 11.98 kB / 0.4998 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.131, allocations: 256 / 0.4998 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.131, allocations: 4 kB / 0.4998 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005367/0.1315, allocations: 0.641 MB / 0.5004 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.813e-05/0.1316, allocations: 104.8 kB / 0.5005 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.958e-05/0.1317, allocations: 7.984 kB / 0.5005 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.1319, allocations: 4 kB / 0.5005 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-05/0.132, allocations: 15.98 kB / 0.5005 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.132, allocations: 8 kB / 0.5005 GB, free: 14.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.1321, allocations: 149.8 kB / 0.5007 GB, free: 14.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1321, allocations: 0 / 0.5007 GB, free: 14.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005345/0.1327, allocations: 79.78 kB / 0.5008 GB, free: 14.64 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.0001172/0.1328, allocations: 111.1 kB / 0.5009 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.1331, allocations: 187.7 kB / 0.501 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1331, allocations: 1.062 kB / 0.501 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.1333, allocations: 71.84 kB / 0.5011 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007926/0.1341, allocations: 72.11 kB / 0.5012 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.1357, allocations: 1.148 MB / 0.5023 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.1361, allocations: 0.7677 MB / 0.5031 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.666e-05/0.1362, allocations: 23.44 kB / 0.5031 GB, free: 12.19 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1362, allocations: 0 / 0.5031 GB, free: 12.19 MB / 398.1 MB Notification: Performance of Templates: time 0.005902/0.1421, allocations: 3.43 MB / 0.5064 GB, free: 8.758 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