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.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.0009501/0.0009501, allocations: 91.62 kB / 21.43 MB, free: 3.105 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.0009203/0.0009203, allocations: 155.5 kB / 24.7 MB, free: 9.422 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.9006/0.9006, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2264/0.2264, allocations: 32.79 MB / 294.2 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 180] 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.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=5002,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=5002,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 440.8 MB, free: 3.793 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.57e-05/2.777e-05, allocations: 6.219 kB / 440.8 MB, free: 3.785 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002856/0.002883, allocations: 2.629 MB / 443.4 MB, free: 1.137 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.004178, allocations: 0.9503 MB / 444.4 MB, free: 188 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.004324, allocations: 11.94 kB / 444.4 MB, free: 176 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.004489, allocations: 51.39 kB / 444.5 MB, free: 124 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.004636, allocations: 115 kB / 444.6 MB, free: 8 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1964/0.2011, allocations: 150.8 kB / 444.7 MB, free: 43.81 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.2015, allocations: 395.2 kB / 445.1 MB, free: 43.72 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2017, allocations: 60.36 kB / 445.2 MB, free: 43.72 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.2018, allocations: 212.8 kB / 445.4 MB, free: 43.7 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.2019, allocations: 109.2 kB / 445.5 MB, free: 43.69 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.2019, allocations: 24.91 kB / 445.5 MB, free: 43.69 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.069e-05/0.202, allocations: 45.12 kB / 445.5 MB, free: 43.69 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.839e-05/0.202, allocations: 63.55 kB / 445.6 MB, free: 43.68 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.525e-05/0.2021, allocations: 116.9 kB / 445.7 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.2024, allocations: 385.9 kB / 446.1 MB, free: 43.63 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.2024, allocations: 0 / 446.1 MB, free: 43.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.2024, allocations: 0 / 446.1 MB, free: 43.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.2024, allocations: 0 / 446.1 MB, free: 43.63 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0005348/0.2029, allocations: 0.5286 MB / 446.6 MB, free: 43.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.203, allocations: 11.47 kB / 446.6 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.2031, allocations: 60.19 kB / 446.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.2034, allocations: 217.4 kB / 446.9 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.2034, allocations: 22.09 kB / 446.9 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.2034, allocations: 38.77 kB / 447 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.2037, allocations: 302.9 kB / 447.3 MB, free: 43.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.2037, allocations: 10.83 kB / 447.3 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.2037, allocations: 18.28 kB / 447.3 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.2038, allocations: 16.28 kB / 447.3 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.2039, allocations: 175.9 kB / 447.5 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008721/0.2048, allocations: 1.167 MB / 448.6 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.2051, allocations: 237.5 kB / 448.9 MB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.692e-05/0.2051, allocations: 76.36 kB / 448.9 MB, free: 42.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.2051, allocations: 6.438 kB / 449 MB, free: 42.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.341e-05/0.2051, allocations: 39.72 kB / 449 MB, free: 42.06 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 1.973e-06/0.2051, allocations: 0.5938 kB / 449 MB, free: 42.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002992/0.2054, allocations: 216.1 kB / 449.2 MB, free: 41.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.2055, allocations: 163 kB / 449.4 MB, free: 41.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.018e-05/0.2056, allocations: 208.2 kB / 449.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.347e-06/0.2056, allocations: 33.03 kB / 449.6 MB, free: 41.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.334e-05/0.2056, allocations: 204.9 kB / 449.8 MB, free: 41.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.2057, allocations: 96.8 kB / 449.9 MB, free: 41.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.8e-05/0.2057, allocations: 67.06 kB / 450 MB, free: 41.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.316e-05/0.2057, allocations: 343.1 kB / 450.3 MB, free: 40.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.635e-05/0.2058, allocations: 61.41 kB / 450.4 MB, free: 40.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.602e-05/0.2059, allocations: 206.9 kB / 450.6 MB, free: 40.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001852/0.2061, allocations: 295.8 kB / 450.8 MB, free: 40.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2061, allocations: 0 / 450.8 MB, free: 40.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0002525/0.2063, allocations: 328.3 kB / 451.2 MB, free: 40.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.2063, allocations: 7.062 kB / 451.2 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.2064, allocations: 6.188 kB / 451.2 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2064, allocations: 6.188 kB / 451.2 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.2065, allocations: 90.61 kB / 451.3 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.2065, allocations: 13.66 kB / 451.3 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.933e-05/0.2066, allocations: 39.09 kB / 451.3 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.2066, allocations: 14.31 kB / 451.3 MB, free: 40.39 MB / 410.7 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 7.116e-05/0.2067, allocations: 152.5 kB / 451.5 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.069e-05/0.2067, allocations: 22.98 kB / 451.5 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.2068, allocations: 91.61 kB / 451.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.2068, allocations: 2.844 kB / 451.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.2068, allocations: 2.812 kB / 451.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2069, allocations: 9.625 kB / 451.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.2071, allocations: 220 kB / 451.8 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2071, allocations: 6.562 kB / 451.8 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.2073, allocations: 60.44 kB / 451.9 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.2073, allocations: 2.875 kB / 451.9 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.2073, allocations: 6.875 kB / 451.9 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2073, allocations: 2.875 kB / 451.9 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2073, allocations: 9.656 kB / 451.9 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.2076, allocations: 0.6266 MB / 452.5 MB, free: 39.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.786e-05/0.2076, allocations: 24.11 kB / 452.6 MB, free: 39.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.2076, allocations: 12.69 kB / 452.6 MB, free: 39.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.2077, allocations: 10.69 kB / 452.6 MB, free: 39.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.155e-05/0.2077, allocations: 25.55 kB / 452.6 MB, free: 39.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.2078, allocations: 11.88 kB / 452.6 MB, free: 39.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.239e-05/0.2078, allocations: 147.2 kB / 452.8 MB, free: 39.37 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2078, allocations: 0 / 452.8 MB, free: 39.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003094/0.2081, allocations: 86.22 kB / 452.9 MB, free: 39.35 MB / 410.7 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 7.577e-05/0.2082, allocations: 100.3 kB / 453 MB, free: 39.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001939/0.2084, allocations: 185.3 kB / 453.1 MB, free: 39.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.2084, allocations: 0 / 453.1 MB, free: 39.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.477e-05/0.2084, allocations: 72.78 kB / 453.2 MB, free: 39.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004776/0.2089, allocations: 59.72 kB / 453.3 MB, free: 39.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007578/0.2097, allocations: 0.912 MB / 454.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.781e-05/0.2098, allocations: 165.7 kB / 454.3 MB, free: 38.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.439e-05/0.2098, allocations: 31.5 kB / 454.4 MB, free: 38.44 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2098, allocations: 0 / 454.4 MB, free: 38.44 MB / 410.7 MB Notification: Performance of Templates: time 0.0029/0.2127, allocations: 3.631 MB / 458 MB, free: 38.02 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.66478562541306]