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.001151/0.001151, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0009473/0.0009473, allocations: 164.4 kB / 24.82 MB, free: 9.266 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 1.018/1.018, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.3243/0.3243, allocations: 34.26 MB / 296.1 MB, free: 0.7344 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 2.445e-06/2.445e-06, allocations: 0 / 378.5 MB, free: 2.445 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.367e-05/4.612e-05, allocations: 2.312 kB / 378.5 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004441/0.004488, allocations: 3.027 MB / 381.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.00643, allocations: 1.059 MB / 382.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/0.00673, allocations: 15.88 kB / 382.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.006947, allocations: 59.38 kB / 382.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.007265, allocations: 130.8 kB / 382.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006505/0.007915, allocations: 179.4 kB / 382.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004856/0.008401, allocations: 477.5 kB / 383.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.008593, allocations: 75.98 kB / 383.5 MB, free: 13.39 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.008881, allocations: 247.5 kB / 383.7 MB, free: 13.15 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.009048, allocations: 127.7 kB / 383.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.00909, allocations: 28 kB / 383.9 MB, free: 13 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.009207, allocations: 51.98 kB / 383.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.496e-05/0.009262, allocations: 83.61 kB / 384 MB, free: 12.87 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.009368, allocations: 135.7 kB / 384.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003738/0.009742, allocations: 314.8 kB / 384.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.009745, allocations: 4 kB / 384.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.009747, allocations: 0 / 384.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.009754, allocations: 0 / 384.4 MB, free: 12.42 MB / 362.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.0007824/0.01054, allocations: 0.6947 MB / 385.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.01058, allocations: 8.031 kB / 385.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002343/0.01082, allocations: 96.64 kB / 385.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.01111, allocations: 236 kB / 385.5 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.963e-05/0.01114, allocations: 29.38 kB / 385.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.159e-05/0.01119, allocations: 40.31 kB / 385.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.01158, allocations: 305.8 kB / 385.8 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.0116, allocations: 12.12 kB / 385.8 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.01162, allocations: 19.94 kB / 385.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.01164, allocations: 12 kB / 385.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.0118, allocations: 126.4 kB / 386 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.01355, allocations: 1.611 MB / 387.6 MB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.01387, allocations: 282.6 kB / 387.9 MB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.015e-05/0.01394, allocations: 90.19 kB / 388 MB, free: 8.605 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.01396, allocations: 7.984 kB / 388 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.01399, allocations: 49.33 kB / 388 MB, free: 8.539 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.334e-06/0.01399, allocations: 0 / 388 MB, free: 8.539 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003474/0.01434, allocations: 201.2 kB / 388.2 MB, free: 8.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.01441, allocations: 191.9 kB / 388.4 MB, free: 8.105 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.01458, allocations: 280.1 kB / 388.7 MB, free: 7.812 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.01461, allocations: 29.7 kB / 388.7 MB, free: 7.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.01474, allocations: 274.8 kB / 389 MB, free: 7.504 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/0.0148, allocations: 107.2 kB / 389.1 MB, free: 7.398 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.823e-05/0.01488, allocations: 87.77 kB / 389.2 MB, free: 7.305 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.01503, allocations: 0.5117 MB / 389.7 MB, free: 6.781 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.894e-05/0.01508, allocations: 32.97 kB / 389.7 MB, free: 6.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.01526, allocations: 273 kB / 390 MB, free: 6.375 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.01552, allocations: 355.8 kB / 390.3 MB, free: 5.922 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.01553, allocations: 0 / 390.3 MB, free: 5.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003203/0.01585, allocations: 305.4 kB / 390.6 MB, free: 5.617 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.01586, allocations: 12.03 kB / 390.6 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.01588, allocations: 7.938 kB / 390.6 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.01589, allocations: 8 kB / 390.7 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.01609, allocations: 103.9 kB / 390.8 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.0161, allocations: 16.23 kB / 390.8 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.01621, allocations: 39.73 kB / 390.8 MB, free: 5.434 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.01622, allocations: 12 kB / 390.8 MB, free: 5.422 MB / 362.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 0.0001203/0.01634, allocations: 184.4 kB / 391 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.343e-05/0.01643, allocations: 36.61 kB / 391 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001445/0.01657, allocations: 95.33 kB / 391.1 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.01658, allocations: 4 kB / 391.1 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.01658, allocations: 4 kB / 391.1 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.01659, allocations: 3.984 kB / 391.1 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003749/0.01697, allocations: 201 kB / 391.3 MB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.01697, allocations: 4.312 kB / 391.3 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001996/0.01717, allocations: 79.95 kB / 391.4 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.01717, allocations: 4 kB / 391.4 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.01719, allocations: 15.92 kB / 391.4 MB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.01719, allocations: 7.984 kB / 391.5 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.0172, allocations: 7.938 kB / 391.5 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005111/0.01771, allocations: 0.9617 MB / 392.4 MB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.871e-05/0.01774, allocations: 31.69 kB / 392.5 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.01776, allocations: 8 kB / 392.5 MB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.01791, allocations: 11.98 kB / 392.5 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.666e-05/0.01796, allocations: 23.91 kB / 392.5 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.01797, allocations: 4 kB / 392.5 MB, free: 3.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.085e-05/0.01806, allocations: 189.1 kB / 392.7 MB, free: 3.492 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01806, allocations: 0 / 392.7 MB, free: 3.492 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003964/0.01846, allocations: 103.8 kB / 392.8 MB, free: 3.391 MB / 362.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 0.0001279/0.01858, allocations: 107.7 kB / 392.9 MB, free: 3.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002077/0.01879, allocations: 169.4 kB / 393.1 MB, free: 3.109 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.0188, allocations: 4 kB / 393.1 MB, free: 3.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.817e-05/0.01886, allocations: 75.62 kB / 393.1 MB, free: 3.027 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.0194, allocations: 68.03 kB / 393.2 MB, free: 2.965 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.0211, allocations: 1.062 MB / 394.3 MB, free: 1.852 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.591e-05/0.02119, allocations: 100.6 kB / 394.4 MB, free: 1.734 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.02129, allocations: 34.97 kB / 394.4 MB, free: 1.699 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.02143, allocations: 130.2 kB / 394.5 MB, free: 1.57 MB / 362.7 MB Notification: Performance of SimCode: time 9.91e-07/0.02143, allocations: 0 / 394.5 MB, free: 1.57 MB / 362.7 MB Notification: Performance of Templates: time 0.005875/0.0273, allocations: 3.307 MB / 397.8 MB, free: 14.33 MB / 378.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2293902849778533]