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/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 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 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) 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|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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 108.3 kB / 18.4 MB, free: 4.719 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.001405/0.001405, allocations: 191 kB / 19.34 MB, free: 3.789 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 243 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2457/0.2457, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 63.69 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1275, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004734/0.1323, allocations: 2.698 MB / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.1342, allocations: 0.958 MB / 474.4 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.1344, allocations: 4 kB / 474.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.1346, allocations: 47.45 kB / 474.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.1348, allocations: 99.11 kB / 474.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004916/0.1353, allocations: 139.6 kB / 474.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003935/0.1357, allocations: 382.2 kB / 475 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.1359, allocations: 93.11 kB / 475.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001347/0.1361, allocations: 131.5 kB / 475.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.1363, allocations: 143.3 kB / 475.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.471e-05/0.1363, allocations: 24 kB / 475.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.1364, allocations: 43.98 kB / 475.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.203e-05/0.1365, allocations: 59.78 kB / 475.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.1366, allocations: 163.2 kB / 475.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.137, allocations: 366.7 kB / 476 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1371, allocations: 0 / 476 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1371, allocations: 0 / 476 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.1371, allocations: 0 / 476 MB, free: 8.332 MB / 350.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.0008978/0.138, allocations: 0.5926 MB / 476.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.138, allocations: 12.02 kB / 476.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.1382, allocations: 52.55 kB / 476.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.1387, allocations: 267.7 kB / 476.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.1387, allocations: 21.03 kB / 477 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.045e-05/0.1388, allocations: 36.28 kB / 477 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004845/0.1392, allocations: 302.7 kB / 477.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.1393, allocations: 15.83 kB / 477.3 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.1393, allocations: 12 kB / 477.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1393, allocations: 4 kB / 477.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.1396, allocations: 175.8 kB / 477.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.1414, allocations: 1.329 MB / 478.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/0.1418, allocations: 261 kB / 479.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.882e-05/0.1419, allocations: 76.22 kB / 479.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.142, allocations: 8 kB / 479.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.142, allocations: 46.48 kB / 479.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/0.142, allocations: 0 / 479.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004604/0.1425, allocations: 209.2 kB / 479.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.1426, allocations: 162.3 kB / 479.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.1428, allocations: 212.2 kB / 479.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.1428, allocations: 29.7 kB / 479.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.1429, allocations: 191.9 kB / 480 MB, free: 4.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.805e-05/0.143, allocations: 94.89 kB / 480.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.096e-05/0.1431, allocations: 65.56 kB / 480.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1432, allocations: 338.8 kB / 480.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.1433, allocations: 67.97 kB / 480.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.1435, allocations: 201.9 kB / 480.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.1439, allocations: 301.7 kB / 481 MB, free: 2.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1439, allocations: 0 / 481 MB, free: 2.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004406/0.1443, allocations: 325.6 kB / 481.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.1444, allocations: 4 kB / 481.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1444, allocations: 8 kB / 481.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1444, allocations: 4 kB / 481.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002871/0.1447, allocations: 83.91 kB / 481.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.1447, allocations: 15.92 kB / 481.5 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.1449, allocations: 31.69 kB / 481.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.1449, allocations: 16 kB / 481.5 MB, free: 2.34 MB / 350.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.0001394/0.1451, allocations: 157.9 kB / 481.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.1452, allocations: 23.81 kB / 481.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001718/0.1453, allocations: 94.94 kB / 481.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.1454, allocations: 4 kB / 481.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1454, allocations: 256 / 481.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.1454, allocations: 7.984 kB / 481.8 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005733/0.146, allocations: 313.3 kB / 482.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.146, allocations: 4 kB / 482.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003182/0.1463, allocations: 67.91 kB / 482.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1463, allocations: 8 kB / 482.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.1463, allocations: 0 / 482.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.1464, allocations: 7.984 kB / 482.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1464, allocations: 0 / 482.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000554/0.1469, allocations: 0.6447 MB / 482.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.283e-05/0.147, allocations: 96.84 kB / 482.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.147, allocations: 8 kB / 482.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.1473, allocations: 8 kB / 482.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.157e-05/0.1473, allocations: 12.09 kB / 482.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.1474, allocations: 15.92 kB / 483 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001278/0.1475, allocations: 149.6 kB / 483.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1475, allocations: 0 / 483.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005156/0.148, allocations: 87.69 kB / 483.2 MB, free: 0.5508 MB / 350.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.0001203/0.1481, allocations: 111.2 kB / 483.3 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003152/0.1485, allocations: 183.5 kB / 483.5 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1485, allocations: 1.062 kB / 483.5 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.901e-05/0.1486, allocations: 75.84 kB / 483.6 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000766/0.1494, allocations: 69.34 kB / 483.6 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.151, allocations: 1.11 MB / 484.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.1513, allocations: 0.7677 MB / 485.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.1514, allocations: 30.97 kB / 485.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.521e-05/0.1515, allocations: 19.44 kB / 485.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1515, allocations: 0 / 485.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of Templates: time 0.005787/0.1573, allocations: 2.484 MB / 488 MB, free: 11.66 MB / 366.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches