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.001909/0.001909, allocations: 85.72 kB / 20.68 MB, free: 1.023 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.002262/0.002262, allocations: 166.3 kB / 23.96 MB, free: 4.141 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.548/1.548, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.2216/0.2216, allocations: 34.28 MB / 294.9 MB, free: 14.56 MB / 286.1 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.913e-06/1.913e-06, allocations: 0 / 442.6 MB, free: 5.422 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.304e-05/3.495e-05, allocations: 2.281 kB / 442.6 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004855/0.00489, allocations: 2.837 MB / 445.5 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.006993, allocations: 1.012 MB / 446.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.007158, allocations: 15.88 kB / 446.5 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.007339, allocations: 55.38 kB / 446.6 MB, free: 1.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002491/0.007588, allocations: 134.8 kB / 446.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005696/0.008157, allocations: 179.4 kB / 446.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000571/0.008728, allocations: 481.5 kB / 447.3 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.00894, allocations: 83.91 kB / 447.4 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003366/0.009277, allocations: 247.5 kB / 447.7 MB, free: 372 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002227/0.0095, allocations: 123.7 kB / 447.8 MB, free: 248 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.852e-05/0.009558, allocations: 28 kB / 447.8 MB, free: 220 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001379/0.009696, allocations: 55.97 kB / 447.9 MB, free: 164 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.624e-05/0.009782, allocations: 75.67 kB / 447.9 MB, free: 88 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2138/0.2236, allocations: 138.1 kB / 448.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008159/0.2244, allocations: 443.9 kB / 448.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.872e-06/0.2244, allocations: 0 / 448.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2244, allocations: 1.594 kB / 448.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.2244, allocations: 0 / 448.5 MB, free: 15.63 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001062/0.2255, allocations: 0.5858 MB / 449.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.809e-05/0.2256, allocations: 13.09 kB / 449.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003303/0.2259, allocations: 69.25 kB / 449.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.2263, allocations: 223.1 kB / 449.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.2263, allocations: 30.81 kB / 449.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.606e-05/0.2264, allocations: 43.31 kB / 449.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006098/0.227, allocations: 353.6 kB / 449.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/0.227, allocations: 15.42 kB / 449.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.227, allocations: 14.03 kB / 449.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.227, allocations: 12.69 kB / 449.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004558/0.2275, allocations: 213.3 kB / 450.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.2294, allocations: 1.386 MB / 451.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005693/0.23, allocations: 303.3 kB / 451.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.2302, allocations: 93.38 kB / 451.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.2302, allocations: 9.312 kB / 451.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.2302, allocations: 42.38 kB / 451.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.813e-06/0.2302, allocations: 4 kB / 451.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007392/0.231, allocations: 272.9 kB / 452.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.935e-05/0.231, allocations: 187.8 kB / 452.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/0.2313, allocations: 233.7 kB / 452.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.2313, allocations: 30.02 kB / 452.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.2314, allocations: 220 kB / 452.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.351e-05/0.2315, allocations: 110.5 kB / 452.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.2316, allocations: 74.86 kB / 453 MB, free: 13.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.191e-05/0.2317, allocations: 340.6 kB / 453.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.2319, allocations: 84.78 kB / 453.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002763/0.2322, allocations: 256.2 kB / 453.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000509/0.2327, allocations: 358.8 kB / 454 MB, free: 12.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.2327, allocations: 1.281 kB / 454 MB, free: 12.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007505/0.2334, allocations: 382.1 kB / 454.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.2335, allocations: 12.62 kB / 454.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.2335, allocations: 8.562 kB / 454.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.405e-05/0.2335, allocations: 9.5 kB / 454.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.2339, allocations: 108.4 kB / 454.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/0.2339, allocations: 10.62 kB / 454.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.2341, allocations: 43.27 kB / 454.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.2342, allocations: 22.81 kB / 454.6 MB, free: 12.2 MB / 366.1 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 0.0001288/0.2343, allocations: 159.7 kB / 454.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.2344, allocations: 26.31 kB / 454.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001793/0.2346, allocations: 102.4 kB / 454.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.2346, allocations: 5 kB / 454.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.2346, allocations: 2.75 kB / 454.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.2346, allocations: 2.781 kB / 454.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005768/0.2352, allocations: 248.3 kB / 455.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.2352, allocations: 1.781 kB / 455.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004112/0.2356, allocations: 82.08 kB / 455.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.2356, allocations: 7.375 kB / 455.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.2356, allocations: 7.922 kB / 455.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.2357, allocations: 8.141 kB / 455.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2357, allocations: 4.969 kB / 455.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006897/0.2363, allocations: 0.7639 MB / 456 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.951e-05/0.2364, allocations: 28.97 kB / 456 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.2364, allocations: 9.516 kB / 456 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000314/0.2367, allocations: 13.42 kB / 456 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.2368, allocations: 21.67 kB / 456.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.2368, allocations: 7.688 kB / 456.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001387/0.237, allocations: 165.9 kB / 456.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.237, allocations: 1.188 kB / 456.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006046/0.2376, allocations: 97.53 kB / 456.3 MB, free: 11.02 MB / 366.1 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 0.0001083/0.2377, allocations: 110.1 kB / 456.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004955/0.2382, allocations: 219.5 kB / 456.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2382, allocations: 4 kB / 456.7 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.2384, allocations: 96.77 kB / 456.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009371/0.2393, allocations: 82.39 kB / 456.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.2409, allocations: 1.028 MB / 457.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.2411, allocations: 187.1 kB / 458 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001451/0.2413, allocations: 36.19 kB / 458.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.912e-05/0.2414, allocations: 26.36 kB / 458.1 MB, free: 10 MB / 366.1 MB Notification: Performance of SimCode: time 6.02e-07/0.2414, allocations: 0 / 458.1 MB, free: 10 MB / 366.1 MB Notification: Performance of Templates: time 0.008562/0.2499, allocations: 3.026 MB / 461.1 MB, free: 9.609 MB / 366.1 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: 5.148321487009525]