Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005861/0.005861, allocations: 158.6 kB / 24.7 MB, free: 8.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8871/0.8871, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2413/0.2413, allocations: 34.25 MB / 295.7 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 443.4 MB, free: 1.184 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.334e-05/3.509e-05, allocations: 11.34 kB / 443.4 MB, free: 1.172 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.2058/0.2058, allocations: 2.827 MB / 446.2 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009997/0.2068, allocations: 1.004 MB / 447.2 MB, free: 42.71 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.2069, allocations: 12.56 kB / 447.3 MB, free: 42.71 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.2071, allocations: 62.5 kB / 447.3 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.2072, allocations: 139.6 kB / 447.5 MB, free: 42.58 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.2076, allocations: 174.5 kB / 447.6 MB, free: 42.54 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002561/0.2078, allocations: 479.3 kB / 448.1 MB, free: 42.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.208, allocations: 74.45 kB / 448.2 MB, free: 42.25 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.2081, allocations: 254.7 kB / 448.4 MB, free: 42.16 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.2082, allocations: 131.5 kB / 448.5 MB, free: 42.12 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.2083, allocations: 29.34 kB / 448.6 MB, free: 42.12 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.477e-05/0.2083, allocations: 52.3 kB / 448.6 MB, free: 42.11 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.943e-05/0.2084, allocations: 73.45 kB / 448.7 MB, free: 42.06 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.835e-05/0.2084, allocations: 139.1 kB / 448.8 MB, free: 42 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.2087, allocations: 448.4 kB / 449.3 MB, free: 41.84 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2087, allocations: 4 kB / 449.3 MB, free: 41.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2087, allocations: 4 kB / 449.3 MB, free: 41.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.2087, allocations: 0 / 449.3 MB, free: 41.83 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0005807/0.2093, allocations: 0.5814 MB / 449.9 MB, free: 41.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.2093, allocations: 8.562 kB / 449.9 MB, free: 41.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.2095, allocations: 72.67 kB / 449.9 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.2098, allocations: 226.1 kB / 450.2 MB, free: 41.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.2098, allocations: 31.53 kB / 450.2 MB, free: 41.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.933e-05/0.2098, allocations: 35.53 kB / 450.2 MB, free: 41.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.2101, allocations: 358.7 kB / 450.6 MB, free: 40.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.2102, allocations: 17.86 kB / 450.6 MB, free: 40.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.2102, allocations: 14.84 kB / 450.6 MB, free: 40.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2102, allocations: 8.688 kB / 450.6 MB, free: 40.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002574/0.2104, allocations: 227.1 kB / 450.8 MB, free: 40.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.2115, allocations: 1.376 MB / 452.2 MB, free: 39.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.2118, allocations: 304.3 kB / 452.5 MB, free: 39.57 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.082e-05/0.2119, allocations: 98.94 kB / 452.6 MB, free: 39.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.2119, allocations: 2.938 kB / 452.6 MB, free: 39.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.2119, allocations: 43.91 kB / 452.6 MB, free: 39.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.784e-06/0.2119, allocations: 0 / 452.6 MB, free: 39.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003886/0.2123, allocations: 273.3 kB / 452.9 MB, free: 39.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/0.2123, allocations: 189.2 kB / 453.1 MB, free: 39.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.2125, allocations: 232.8 kB / 453.3 MB, free: 38.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.2125, allocations: 36.77 kB / 453.4 MB, free: 38.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/0.2126, allocations: 221 kB / 453.6 MB, free: 38.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.2126, allocations: 109 kB / 453.7 MB, free: 38.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.2126, allocations: 76.86 kB / 453.8 MB, free: 38.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.94e-05/0.2127, allocations: 338.8 kB / 454.1 MB, free: 38.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.782e-05/0.2128, allocations: 78.67 kB / 454.2 MB, free: 38.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.2129, allocations: 249.8 kB / 454.4 MB, free: 38.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002461/0.2132, allocations: 362.9 kB / 454.8 MB, free: 37.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/0.2132, allocations: 2.938 kB / 454.8 MB, free: 37.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003368/0.2135, allocations: 381.4 kB / 455.1 MB, free: 37.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2135, allocations: 12.41 kB / 455.2 MB, free: 37.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.2135, allocations: 5.562 kB / 455.2 MB, free: 37.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.2135, allocations: 8.5 kB / 455.2 MB, free: 37.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.2137, allocations: 110.9 kB / 455.3 MB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.2137, allocations: 12.19 kB / 455.3 MB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.999e-05/0.2138, allocations: 49.52 kB / 455.3 MB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.2138, allocations: 18.25 kB / 455.4 MB, free: 37.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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 7.919e-05/0.2139, allocations: 154.3 kB / 455.5 MB, free: 37.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.108e-05/0.214, allocations: 34.39 kB / 455.5 MB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.2141, allocations: 89.48 kB / 455.6 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.2141, allocations: 2.875 kB / 455.6 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.2141, allocations: 2.906 kB / 455.6 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.2141, allocations: 3.469 kB / 455.6 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/0.2144, allocations: 251.7 kB / 455.9 MB, free: 37.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2144, allocations: 6.531 kB / 455.9 MB, free: 37.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.2146, allocations: 91.17 kB / 456 MB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.2146, allocations: 2.625 kB / 456 MB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.2147, allocations: 13.16 kB / 456 MB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.2147, allocations: 2.594 kB / 456 MB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2147, allocations: 2.812 kB / 456 MB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003597/0.215, allocations: 0.7578 MB / 456.8 MB, free: 36.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.178e-05/0.215, allocations: 29.25 kB / 456.8 MB, free: 36.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.2151, allocations: 10.88 kB / 456.8 MB, free: 36.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.2152, allocations: 12.94 kB / 456.8 MB, free: 36.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.562e-05/0.2153, allocations: 23.16 kB / 456.8 MB, free: 36.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.2153, allocations: 8.797 kB / 456.8 MB, free: 36.43 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.547e-05/0.2154, allocations: 163.7 kB / 457 MB, free: 36.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2154, allocations: 0 / 457 MB, free: 36.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003396/0.2157, allocations: 99.41 kB / 457.1 MB, free: 36.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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 7.659e-05/0.2158, allocations: 106.1 kB / 457.2 MB, free: 36.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002467/0.216, allocations: 234 kB / 457.4 MB, free: 36.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.216, allocations: 0 / 457.4 MB, free: 36.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.919e-05/0.2161, allocations: 91.19 kB / 457.5 MB, free: 36.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005433/0.2166, allocations: 79.7 kB / 457.6 MB, free: 36.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009028/0.2176, allocations: 1.045 MB / 458.6 MB, free: 35.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.2177, allocations: 197.5 kB / 458.8 MB, free: 35.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.181e-05/0.2177, allocations: 28.41 kB / 458.9 MB, free: 35.22 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.2177, allocations: 0 / 458.9 MB, free: 35.22 MB / 410.7 MB Notification: Performance of Templates: time 0.003414/0.2211, allocations: 4.286 MB / 463.1 MB, free: 34.71 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.935605847276747]