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.0008003/0.0008054, allocations: 102.6 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 180.8 kB / 16.92 MB, free: 6.922 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.701/1.701, allocations: 205.4 MB / 223.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4509/0.4509, allocations: 43.58 MB / 315 MB, free: 9.047 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.0005503/0.00055, allocations: 12 kB / 384.6 MB, free: 7.883 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1644, allocations: 58.87 MB / 443.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004033/0.1685, allocations: 2.366 MB / 445.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.1707, allocations: 0.9708 MB / 446.8 MB, free: 9.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.1709, allocations: 7.938 kB / 446.8 MB, free: 9.539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.1711, allocations: 39.7 kB / 446.8 MB, free: 9.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002041/0.1713, allocations: 91.28 kB / 446.9 MB, free: 9.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004385/0.1717, allocations: 115.8 kB / 447 MB, free: 9.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004398/0.1722, allocations: 366.1 kB / 447.4 MB, free: 8.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.1724, allocations: 85.66 kB / 447.5 MB, free: 8.855 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.1726, allocations: 115.5 kB / 447.6 MB, free: 8.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002207/0.1728, allocations: 135.3 kB / 447.7 MB, free: 8.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.1729, allocations: 12 kB / 447.7 MB, free: 8.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.173, allocations: 39.92 kB / 447.8 MB, free: 8.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.49e-05/0.1731, allocations: 55.77 kB / 447.8 MB, free: 8.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.1732, allocations: 172.9 kB / 448 MB, free: 8.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.1736, allocations: 338.9 kB / 448.3 MB, free: 7.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1736, allocations: 4 kB / 448.3 MB, free: 7.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1736, allocations: 0 / 448.3 MB, free: 7.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1736, allocations: 0 / 448.3 MB, free: 7.992 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.0008602/0.1745, allocations: 0.5381 MB / 448.9 MB, free: 7.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.1745, allocations: 12.02 kB / 448.9 MB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/0.1748, allocations: 56.45 kB / 448.9 MB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.1751, allocations: 267.7 kB / 449.2 MB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.1752, allocations: 21.03 kB / 449.2 MB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.037e-05/0.1752, allocations: 36.28 kB / 449.2 MB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.1757, allocations: 302.6 kB / 449.5 MB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.1757, allocations: 7.906 kB / 449.5 MB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.1758, allocations: 16 kB / 449.6 MB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.1758, allocations: 8 kB / 449.6 MB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.1761, allocations: 175.8 kB / 449.7 MB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.1781, allocations: 1.34 MB / 451.1 MB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004303/0.1785, allocations: 241 kB / 451.3 MB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.1786, allocations: 88.25 kB / 451.4 MB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.1787, allocations: 4 kB / 451.4 MB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.1787, allocations: 34.5 kB / 451.4 MB, free: 4.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.733e-06/0.1787, allocations: 4 kB / 451.4 MB, free: 4.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.000503/0.1792, allocations: 221.7 kB / 451.7 MB, free: 4.367 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.089e-05/0.1793, allocations: 158.4 kB / 451.8 MB, free: 4.176 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.1796, allocations: 216.1 kB / 452 MB, free: 3.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1796, allocations: 25.7 kB / 452.1 MB, free: 3.918 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.1797, allocations: 188 kB / 452.2 MB, free: 3.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.258e-05/0.1798, allocations: 98.67 kB / 452.3 MB, free: 3.633 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-05/0.1799, allocations: 33.7 kB / 452.4 MB, free: 3.594 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.18, allocations: 338.9 kB / 452.7 MB, free: 3.254 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.1802, allocations: 67.91 kB / 452.8 MB, free: 3.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1804, allocations: 202 kB / 453 MB, free: 2.926 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.1807, allocations: 297.6 kB / 453.3 MB, free: 2.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1808, allocations: 4 kB / 453.3 MB, free: 2.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004492/0.1812, allocations: 324.8 kB / 453.6 MB, free: 2.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1812, allocations: 4 kB / 453.6 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1813, allocations: 8 kB / 453.6 MB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.1813, allocations: 4.531 kB / 453.6 MB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.1816, allocations: 87.83 kB / 453.7 MB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.1816, allocations: 12 kB / 453.7 MB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.1818, allocations: 35.69 kB / 453.7 MB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.1818, allocations: 12 kB / 453.7 MB, free: 2.082 MB / 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.0001431/0.1819, allocations: 157.6 kB / 453.9 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.182, allocations: 23.72 kB / 453.9 MB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.1822, allocations: 91 kB / 454 MB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.1823, allocations: 4 kB / 454 MB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.1823, allocations: 8 kB / 454 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1823, allocations: 0 / 454 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005765/0.1829, allocations: 321.3 kB / 454.3 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1829, allocations: 0 / 454.3 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/0.1832, allocations: 63.95 kB / 454.4 MB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.1832, allocations: 4 kB / 454.4 MB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.1832, allocations: 8.25 kB / 454.4 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.1833, allocations: 7.938 kB / 454.4 MB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.1833, allocations: 4 kB / 454.4 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006165/0.1839, allocations: 0.6296 MB / 455 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.849e-05/0.184, allocations: 100.8 kB / 455.1 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.184, allocations: 4.109 kB / 455.1 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.1843, allocations: 7.938 kB / 455.2 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.411e-05/0.1843, allocations: 27.91 kB / 455.2 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.1843, allocations: 8 kB / 455.2 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001201/0.1845, allocations: 145.9 kB / 455.3 MB, free: 388 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1845, allocations: 0 / 455.3 MB, free: 388 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005148/0.185, allocations: 83.69 kB / 455.4 MB, free: 304 kB / 382.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.0001297/0.1851, allocations: 107.1 kB / 455.5 MB, free: 188 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2434/0.4285, allocations: 192.1 kB / 455.7 MB, free: 45.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.4286, allocations: 0 / 455.7 MB, free: 45.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.4288, allocations: 72.77 kB / 455.8 MB, free: 45.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.43, allocations: 53.38 kB / 455.8 MB, free: 45.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.4318, allocations: 1.413 MB / 457.2 MB, free: 45.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.4321, allocations: 0.7695 MB / 458 MB, free: 44.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.4322, allocations: 27.31 kB / 458 MB, free: 44.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.4323, allocations: 21.62 kB / 458.1 MB, free: 44.33 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4323, allocations: 0 / 458.1 MB, free: 44.33 MB / 382.1 MB Notification: Performance of Templates: time 0.005163/0.4374, allocations: 2.352 MB / 460.4 MB, free: 44.2 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches