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.00191/0.00191, allocations: 84.84 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002351/0.002351, allocations: 165.1 kB / 23.95 MB, free: 4.172 MB / 14.72 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 1.443/1.443, allocations: 177.2 MB / 204.3 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] 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.2068/0.2068, allocations: 32.81 MB / 293.5 MB, free: 64 kB / 270.1 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 1.483e-06/1.483e-06, allocations: 0 / 440.1 MB, free: 8.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.965e-05/3.113e-05, allocations: 5.234 kB / 440.1 MB, free: 8.227 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004011/0.004042, allocations: 2.627 MB / 442.7 MB, free: 5.582 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.005788, allocations: 0.9503 MB / 443.6 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.005926, allocations: 7.938 kB / 443.6 MB, free: 4.621 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.006095, allocations: 55.38 kB / 443.7 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002076/0.006303, allocations: 115 kB / 443.8 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004518/0.006755, allocations: 155.5 kB / 444 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004301/0.007185, allocations: 397.8 kB / 444.3 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.007344, allocations: 61.34 kB / 444.4 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002851/0.007629, allocations: 211.5 kB / 444.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.007808, allocations: 107.7 kB / 444.7 MB, free: 3.535 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.825e-05/0.007856, allocations: 32 kB / 444.8 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.007968, allocations: 43.98 kB / 444.8 MB, free: 3.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.319e-05/0.008031, allocations: 63.75 kB / 444.9 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.00817, allocations: 115.7 kB / 445 MB, free: 3.285 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004398/0.00861, allocations: 382.7 kB / 445.3 MB, free: 2.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.008613, allocations: 0 / 445.3 MB, free: 2.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.008614, allocations: 0 / 445.3 MB, free: 2.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.00862, allocations: 0 / 445.3 MB, free: 2.91 MB / 366.1 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.0008898/0.00951, allocations: 0.5364 MB / 445.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.747e-05/0.009537, allocations: 8.031 kB / 445.9 MB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002803/0.009817, allocations: 56.69 kB / 445.9 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.01012, allocations: 218 kB / 446.2 MB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.01014, allocations: 21.03 kB / 446.2 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.303e-05/0.0102, allocations: 36.33 kB / 446.2 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004847/0.01069, allocations: 302.9 kB / 446.5 MB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.01071, allocations: 4.141 kB / 446.5 MB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.01075, allocations: 19.94 kB / 446.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.01076, allocations: 8 kB / 446.5 MB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003455/0.01111, allocations: 178.8 kB / 446.7 MB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.013, allocations: 1.177 MB / 447.9 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1823/0.1953, allocations: 232.4 kB / 448.1 MB, free: 21.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.1955, allocations: 72.39 kB / 448.2 MB, free: 21.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.1955, allocations: 7.141 kB / 448.2 MB, free: 21.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.1955, allocations: 43.34 kB / 448.2 MB, free: 21.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 2.194e-06/0.1955, allocations: 3.375 kB / 448.2 MB, free: 21.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005051/0.196, allocations: 213.7 kB / 448.4 MB, free: 21.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.1961, allocations: 158.7 kB / 448.6 MB, free: 21.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.1962, allocations: 207.6 kB / 448.8 MB, free: 20.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.1963, allocations: 31.3 kB / 448.8 MB, free: 20.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.764e-05/0.1964, allocations: 203.6 kB / 449 MB, free: 20.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.405e-05/0.1964, allocations: 98.06 kB / 449.1 MB, free: 20.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.346e-05/0.1965, allocations: 68.67 kB / 449.2 MB, free: 20.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.1966, allocations: 338.9 kB / 449.5 MB, free: 20.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.1967, allocations: 61.78 kB / 449.6 MB, free: 20.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.1968, allocations: 208.5 kB / 449.8 MB, free: 20.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.1971, allocations: 295.8 kB / 450.1 MB, free: 19.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1971, allocations: 1.5 kB / 450.1 MB, free: 19.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004514/0.1976, allocations: 318.1 kB / 450.4 MB, free: 19.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.1976, allocations: 12.72 kB / 450.4 MB, free: 19.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1976, allocations: 5.75 kB / 450.4 MB, free: 19.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.1976, allocations: 6.219 kB / 450.4 MB, free: 19.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.1979, allocations: 88.16 kB / 450.5 MB, free: 19.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.1979, allocations: 11.58 kB / 450.5 MB, free: 19.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.1981, allocations: 35.77 kB / 450.6 MB, free: 19.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.1982, allocations: 18.39 kB / 450.6 MB, free: 19.82 MB / 366.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.0001186/0.1983, allocations: 157.5 kB / 450.7 MB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.1984, allocations: 27.52 kB / 450.7 MB, free: 19.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001794/0.1986, allocations: 88.95 kB / 450.8 MB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1986, allocations: 3.562 kB / 450.8 MB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.1986, allocations: 2.312 kB / 450.8 MB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.1986, allocations: 2.75 kB / 450.8 MB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005007/0.1991, allocations: 225.2 kB / 451.1 MB, free: 19.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1991, allocations: 4.75 kB / 451.1 MB, free: 19.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/0.1994, allocations: 73.41 kB / 451.1 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1994, allocations: 2.781 kB / 451.1 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.1994, allocations: 9.531 kB / 451.2 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1994, allocations: 0.6562 kB / 451.2 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.1995, allocations: 1.188 kB / 451.2 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005079/0.2, allocations: 0.6391 MB / 451.8 MB, free: 18.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-05/0.2, allocations: 23.31 kB / 451.8 MB, free: 18.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.2, allocations: 8.109 kB / 451.8 MB, free: 18.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.2003, allocations: 7.438 kB / 451.8 MB, free: 18.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.2003, allocations: 14.55 kB / 451.8 MB, free: 18.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.2003, allocations: 11.31 kB / 451.9 MB, free: 18.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001135/0.2005, allocations: 149.7 kB / 452 MB, free: 18.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2005, allocations: 0 / 452 MB, free: 18.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005709/0.201, allocations: 84.33 kB / 452.1 MB, free: 18.78 MB / 366.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.0001222/0.2012, allocations: 103.9 kB / 452.2 MB, free: 18.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00038/0.2015, allocations: 180.9 kB / 452.4 MB, free: 18.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2015, allocations: 1.375 kB / 452.4 MB, free: 18.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.2017, allocations: 72.56 kB / 452.4 MB, free: 18.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008416/0.2025, allocations: 68 kB / 452.5 MB, free: 18.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.2039, allocations: 0.8899 MB / 453.4 MB, free: 17.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.2041, allocations: 167.1 kB / 453.6 MB, free: 17.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.2042, allocations: 27.73 kB / 453.6 MB, free: 17.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.002e-05/0.2043, allocations: 23 kB / 453.6 MB, free: 17.87 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2043, allocations: 0 / 453.6 MB, free: 17.87 MB / 366.1 MB Notification: Performance of Templates: time 0.007658/0.2119, allocations: 2.471 MB / 456.1 MB, free: 17.55 MB / 366.1 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.717319887131453]