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.00119/0.00119, allocations: 112.3 kB / 16.41 MB, free: 6.027 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.001117/0.001118, allocations: 185.1 kB / 17.34 MB, free: 5.633 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.729/1.729, allocations: 205.1 MB / 223.2 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.2969/0.2969, allocations: 43.53 MB / 314.1 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.00139/0.00139, allocations: 63.91 kB / 441.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1604, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004094/0.1645, allocations: 2.691 MB / 0.4905 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.1662, allocations: 0.994 MB / 0.4915 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.1664, allocations: 8 kB / 0.4915 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.1666, allocations: 51.45 kB / 0.4915 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002403/0.1668, allocations: 99.11 kB / 0.4916 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004616/0.1673, allocations: 139.6 kB / 0.4917 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003731/0.1677, allocations: 378.2 kB / 0.4921 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.1679, allocations: 96.95 kB / 0.4922 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.1681, allocations: 135.5 kB / 0.4923 GB, free: 7.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.1683, allocations: 139.3 kB / 0.4925 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.183e-05/0.1684, allocations: 28 kB / 0.4925 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.1685, allocations: 39.98 kB / 0.4925 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.1686, allocations: 67.75 kB / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.1687, allocations: 155.2 kB / 0.4927 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004177/0.1691, allocations: 374.8 kB / 0.4931 GB, free: 6.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1692, allocations: 0 / 0.4931 GB, free: 6.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1692, allocations: 0 / 0.4931 GB, free: 6.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.1692, allocations: 0 / 0.4931 GB, free: 6.43 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.0009704/0.1701, allocations: 0.5998 MB / 0.4937 GB, free: 5.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.1702, allocations: 8.031 kB / 0.4937 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002601/0.1705, allocations: 52.55 kB / 0.4937 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000398/0.1709, allocations: 267.7 kB / 0.494 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.747e-05/0.1709, allocations: 25.03 kB / 0.494 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/0.171, allocations: 32.38 kB / 0.494 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/0.1715, allocations: 314.6 kB / 0.4943 GB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.1715, allocations: 7.891 kB / 0.4944 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.1716, allocations: 15.94 kB / 0.4944 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.1716, allocations: 8 kB / 0.4944 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003107/0.1719, allocations: 179.8 kB / 0.4946 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.1739, allocations: 1.336 MB / 0.4959 GB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004705/0.1744, allocations: 237.1 kB / 0.4961 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.1745, allocations: 88.19 kB / 0.4962 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.1746, allocations: 8 kB / 0.4962 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1746, allocations: 38.72 kB / 0.4962 GB, free: 2.957 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.944e-06/0.1746, allocations: 0 / 0.4962 GB, free: 2.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005227/0.1752, allocations: 221.7 kB / 0.4964 GB, free: 2.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.1753, allocations: 162.3 kB / 0.4966 GB, free: 2.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002186/0.1755, allocations: 212.1 kB / 0.4968 GB, free: 2.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.1755, allocations: 33.7 kB / 0.4968 GB, free: 2.277 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.1756, allocations: 188 kB / 0.497 GB, free: 2.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.993e-05/0.1757, allocations: 90.7 kB / 0.4971 GB, free: 2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.747e-05/0.1758, allocations: 61.7 kB / 0.4971 GB, free: 1.934 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.176, allocations: 334.8 kB / 0.4975 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1761, allocations: 59.97 kB / 0.4975 GB, free: 1.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.1764, allocations: 209.9 kB / 0.4977 GB, free: 1.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003624/0.1767, allocations: 297.7 kB / 0.498 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.1767, allocations: 0 / 0.498 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000523/0.1773, allocations: 321 kB / 0.4983 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.1773, allocations: 8 kB / 0.4983 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.1773, allocations: 4.078 kB / 0.4983 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.63e-05/0.1773, allocations: 8 kB / 0.4983 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000286/0.1776, allocations: 91.83 kB / 0.4984 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.1777, allocations: 11.98 kB / 0.4984 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.1778, allocations: 35.53 kB / 0.4985 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.1779, allocations: 20.34 kB / 0.4985 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.0001646/0.178, allocations: 161.7 kB / 0.4986 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.1781, allocations: 23.75 kB / 0.4987 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001839/0.1783, allocations: 87.08 kB / 0.4987 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.1784, allocations: 4 kB / 0.4987 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1784, allocations: 0 / 0.4987 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.1784, allocations: 0 / 0.4987 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000577/0.179, allocations: 321.4 kB / 0.499 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.179, allocations: 0 / 0.499 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/0.1793, allocations: 71.91 kB / 0.4991 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1793, allocations: 0 / 0.4991 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.1793, allocations: 8 kB / 0.4991 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.1794, allocations: 4 kB / 0.4991 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1794, allocations: 0 / 0.4991 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000579/0.1799, allocations: 0.641 MB / 0.4998 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.057e-05/0.18, allocations: 100.8 kB / 0.4998 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.1801, allocations: 12.23 kB / 0.4999 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.1803, allocations: 8 kB / 0.4999 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.592e-05/0.1804, allocations: 11.98 kB / 0.4999 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.1804, allocations: 12 kB / 0.4999 GB, free: 14.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001251/0.1805, allocations: 145.8 kB / 0.5 GB, free: 14.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1805, allocations: 0 / 0.5 GB, free: 14.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005048/0.181, allocations: 87.78 kB / 0.5001 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.0001127/0.1811, allocations: 103.1 kB / 0.5002 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003432/0.1815, allocations: 192.7 kB / 0.5004 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1815, allocations: 0 / 0.5004 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.1816, allocations: 75.97 kB / 0.5005 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.000842/0.1825, allocations: 63.14 kB / 0.5005 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.1841, allocations: 1.115 MB / 0.5016 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.1846, allocations: 0.7716 MB / 0.5024 GB, free: 12.26 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.1847, allocations: 26.97 kB / 0.5024 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.762e-05/0.1848, allocations: 23.44 kB / 0.5024 GB, free: 12.2 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1848, allocations: 0 / 0.5024 GB, free: 12.2 MB / 398.1 MB Notification: Performance of Templates: time 0.006484/0.1913, allocations: 2.521 MB / 0.5049 GB, free: 9.691 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches