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.001205/0.001205, allocations: 106.9 kB / 16.41 MB, free: 6.492 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.001164/0.001164, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.684/1.684, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2486/0.2486, allocations: 43.52 MB / 314.1 MB, free: 476 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.001491/0.001491, allocations: 67.91 kB / 441.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1639, allocations: 57.79 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004529/0.1685, allocations: 2.699 MB / 0.4905 GB, free: 9.125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.1705, allocations: 0.9862 MB / 0.4915 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.1707, allocations: 7.938 kB / 0.4915 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.171, allocations: 51.52 kB / 0.4915 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002067/0.1712, allocations: 111 kB / 0.4916 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005343/0.1717, allocations: 131.6 kB / 0.4917 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.1722, allocations: 382.2 kB / 0.4921 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.1724, allocations: 96.97 kB / 0.4922 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.1726, allocations: 139.5 kB / 0.4923 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.1728, allocations: 143.3 kB / 0.4925 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.094e-05/0.1729, allocations: 24 kB / 0.4925 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.173, allocations: 43.98 kB / 0.4925 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.313e-05/0.1731, allocations: 63.78 kB / 0.4926 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.1732, allocations: 163.2 kB / 0.4928 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005021/0.1738, allocations: 370.7 kB / 0.4931 GB, free: 6.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.1738, allocations: 0 / 0.4931 GB, free: 6.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1738, allocations: 0 / 0.4931 GB, free: 6.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1738, 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.001041/0.1748, allocations: 0.5926 MB / 0.4937 GB, free: 5.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.1749, allocations: 8.031 kB / 0.4937 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002288/0.1751, allocations: 56.53 kB / 0.4937 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/0.1756, allocations: 263.7 kB / 0.494 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.1756, allocations: 25.02 kB / 0.494 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.131e-05/0.1757, allocations: 32.38 kB / 0.4941 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004978/0.1762, allocations: 306.6 kB / 0.4943 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.1762, allocations: 7.891 kB / 0.4944 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.43e-05/0.1763, allocations: 16 kB / 0.4944 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1763, allocations: 11.94 kB / 0.4944 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003197/0.1766, allocations: 167.8 kB / 0.4945 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1786, allocations: 1.34 MB / 0.4958 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004236/0.179, allocations: 257 kB / 0.4961 GB, free: 3.109 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.1791, allocations: 76.22 kB / 0.4962 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.1792, allocations: 8 kB / 0.4962 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.1792, allocations: 42.48 kB / 0.4962 GB, free: 2.961 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 2.274e-06/0.1792, allocations: 0 / 0.4962 GB, free: 2.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004942/0.1797, allocations: 209.3 kB / 0.4964 GB, free: 2.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.1798, allocations: 166.3 kB / 0.4966 GB, free: 2.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002186/0.1801, allocations: 208.1 kB / 0.4968 GB, free: 2.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.1801, allocations: 33.7 kB / 0.4968 GB, free: 2.293 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.1803, allocations: 192.1 kB / 0.497 GB, free: 2.102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.943e-05/0.1803, allocations: 86.72 kB / 0.4971 GB, free: 2.016 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.1804, allocations: 61.7 kB / 0.4971 GB, free: 1.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1806, allocations: 334.8 kB / 0.4974 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1807, allocations: 63.97 kB / 0.4975 GB, free: 1.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.1809, allocations: 205.9 kB / 0.4977 GB, free: 1.285 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003491/0.1813, allocations: 305.7 kB / 0.498 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1813, allocations: 0 / 0.498 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004546/0.1818, allocations: 317.1 kB / 0.4983 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.1818, allocations: 8 kB / 0.4983 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.1818, allocations: 4 kB / 0.4983 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.583e-05/0.1818, allocations: 8 kB / 0.4983 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.1821, allocations: 87.84 kB / 0.4984 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.1822, allocations: 11.98 kB / 0.4984 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.1823, allocations: 35.53 kB / 0.4984 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/0.1824, allocations: 20 kB / 0.4985 GB, free: 444 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.000147/0.1825, allocations: 158 kB / 0.4986 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.1826, allocations: 23.75 kB / 0.4986 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.1828, allocations: 87.08 kB / 0.4987 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1828, allocations: 0 / 0.4987 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.1829, allocations: 4 kB / 0.4987 GB, free: 156 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.1829, allocations: 3.984 kB / 0.4987 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006322/0.1835, allocations: 317.3 kB / 0.499 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1835, allocations: 7.875 kB / 0.499 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.1839, allocations: 71.97 kB / 0.4991 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1839, allocations: 0 / 0.4991 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.1839, allocations: 8 kB / 0.4991 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.1839, allocations: 8.234 kB / 0.4991 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.1839, allocations: 8.5 kB / 0.4991 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006276/0.1846, allocations: 0.6294 MB / 0.4997 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.896e-05/0.1846, allocations: 104.8 kB / 0.4998 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.1847, allocations: 8 kB / 0.4999 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.1849, allocations: 7.984 kB / 0.4999 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.185, allocations: 15.92 kB / 0.4999 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.185, allocations: 12 kB / 0.4999 GB, free: 14.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.1852, allocations: 149.8 kB / 0.5 GB, free: 14.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.1852, allocations: 0 / 0.5 GB, free: 14.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005487/0.1857, 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.0001556/0.1859, allocations: 99.19 kB / 0.5002 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003825/0.1863, allocations: 188.6 kB / 0.5004 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1863, allocations: 0 / 0.5004 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.1864, allocations: 72.03 kB / 0.5005 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008268/0.1872, allocations: 74.88 kB / 0.5005 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.1892, allocations: 1.107 MB / 0.5016 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.1897, allocations: 0.7755 MB / 0.5024 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.1898, allocations: 30.95 kB / 0.5024 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.349e-05/0.1899, allocations: 23.44 kB / 0.5024 GB, free: 12.21 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1899, allocations: 0 / 0.5024 GB, free: 12.21 MB / 398.1 MB Notification: Performance of Templates: time 0.006692/0.1966, allocations: 2.529 MB / 0.5049 GB, free: 9.695 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