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.001321/0.001321, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001162/0.001162, allocations: 160.5 kB / 24.99 MB, free: 9.316 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.039/1.039, allocations: 177.1 MB / 205.3 MB, free: 5.582 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.2875/0.2875, allocations: 34.27 MB / 296.1 MB, free: 0.7656 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.944e-06/1.944e-06, allocations: 0 / 378 MB, free: 3.012 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.527e-05/2.721e-05, allocations: 2.312 kB / 378 MB, free: 3.008 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004904/0.004931, allocations: 3.055 MB / 381 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.007149, allocations: 1.048 MB / 382.1 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002785/0.007427, allocations: 11.94 kB / 382.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.007614, allocations: 67.31 kB / 382.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.007824, allocations: 130.8 kB / 382.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005386/0.008363, allocations: 179.4 kB / 382.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004199/0.008783, allocations: 477.5 kB / 382.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.008958, allocations: 75.98 kB / 383 MB, free: 13.94 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.009161, allocations: 247.5 kB / 383.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.009314, allocations: 131.6 kB / 383.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.41e-05/0.009358, allocations: 32 kB / 383.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.736e-05/0.009455, allocations: 51.98 kB / 383.5 MB, free: 13.49 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.417e-05/0.00951, allocations: 79.67 kB / 383.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.009616, allocations: 131.7 kB / 383.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.009939, allocations: 322.7 kB / 384 MB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.009942, allocations: 0 / 384 MB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.009944, allocations: 0 / 384 MB, free: 12.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.00995, allocations: 0 / 384 MB, free: 12.96 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.0009728/0.01092, allocations: 0.687 MB / 384.7 MB, free: 12.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.01098, allocations: 8.031 kB / 384.7 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002586/0.01124, allocations: 96.62 kB / 384.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.0115, allocations: 236 kB / 385 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.01152, allocations: 29.38 kB / 385 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.784e-05/0.01157, allocations: 44.36 kB / 385.1 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003625/0.01193, allocations: 325.8 kB / 385.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.01195, allocations: 8.141 kB / 385.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.01198, allocations: 19.94 kB / 385.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.01199, allocations: 8 kB / 385.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/0.0122, allocations: 150.5 kB / 385.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.0136, allocations: 1.665 MB / 387.2 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003475/0.01395, allocations: 282.6 kB / 387.5 MB, free: 9.168 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.185e-05/0.01404, allocations: 90.08 kB / 387.6 MB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.01406, allocations: 11.94 kB / 387.6 MB, free: 9.043 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.01409, allocations: 49.31 kB / 387.7 MB, free: 8.984 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.483e-06/0.01409, allocations: 0 / 387.7 MB, free: 8.984 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003686/0.01446, allocations: 225.3 kB / 387.9 MB, free: 8.758 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000337/0.01479, allocations: 187.9 kB / 388.1 MB, free: 8.531 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.01496, allocations: 284.2 kB / 388.4 MB, free: 8.234 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.01497, allocations: 29.7 kB / 388.4 MB, free: 8.199 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.01507, allocations: 266.9 kB / 388.6 MB, free: 7.934 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.966e-05/0.01513, allocations: 111.1 kB / 388.7 MB, free: 7.824 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.806e-05/0.0152, allocations: 79.81 kB / 388.8 MB, free: 7.738 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.01532, allocations: 0.5156 MB / 389.3 MB, free: 7.211 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.149e-05/0.0154, allocations: 40.97 kB / 389.4 MB, free: 7.168 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.01564, allocations: 281.1 kB / 389.7 MB, free: 6.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.01597, allocations: 371.9 kB / 390 MB, free: 6.324 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.01597, allocations: 0 / 390 MB, free: 6.324 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003423/0.01632, allocations: 329 kB / 390.3 MB, free: 5.996 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.01633, allocations: 7.938 kB / 390.3 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.01634, allocations: 12.06 kB / 390.4 MB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.01636, allocations: 8 kB / 390.4 MB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.01657, allocations: 104.5 kB / 390.5 MB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.01658, allocations: 16.23 kB / 390.5 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.01669, allocations: 47.73 kB / 390.5 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.01671, allocations: 20 kB / 390.6 MB, free: 5.785 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.0001007/0.01681, allocations: 184.4 kB / 390.7 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.894e-05/0.01688, allocations: 39.8 kB / 390.8 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.01701, allocations: 87.44 kB / 390.9 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.01702, allocations: 4 kB / 390.9 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.01702, allocations: 0 / 390.9 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.01703, allocations: 4 kB / 390.9 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003631/0.01739, allocations: 244.4 kB / 391.1 MB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.01739, allocations: 4 kB / 391.1 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.01761, allocations: 83.89 kB / 391.2 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.01762, allocations: 4 kB / 391.2 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.01764, allocations: 11.94 kB / 391.2 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.01764, allocations: 4 kB / 391.2 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.01764, allocations: 3.938 kB / 391.2 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.01811, allocations: 0.9741 MB / 392.2 MB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.501e-05/0.01813, allocations: 27.75 kB / 392.2 MB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.01816, allocations: 11.94 kB / 392.2 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.01834, allocations: 15.94 kB / 392.2 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.01839, allocations: 23.89 kB / 392.3 MB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.01839, allocations: 12 kB / 392.3 MB, free: 3.984 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.869e-05/0.01848, allocations: 189.1 kB / 392.5 MB, free: 3.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01848, allocations: 0 / 392.5 MB, free: 3.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003795/0.01886, allocations: 103.8 kB / 392.6 MB, free: 3.695 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.0001031/0.01897, allocations: 103.7 kB / 392.7 MB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002548/0.01922, allocations: 189.8 kB / 392.8 MB, free: 3.398 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01922, allocations: 4 kB / 392.9 MB, free: 3.395 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.4e-05/0.01931, allocations: 79.64 kB / 392.9 MB, free: 3.312 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005875/0.01989, allocations: 87.22 kB / 393 MB, free: 3.234 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.02129, allocations: 1.046 MB / 394.1 MB, free: 2.137 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.956e-05/0.02138, allocations: 100.6 kB / 394.2 MB, free: 2.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.331e-05/0.02147, allocations: 38.95 kB / 394.2 MB, free: 1.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.241e-05/0.02152, allocations: 28.5 kB / 394.2 MB, free: 1.953 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.02152, allocations: 0 / 394.2 MB, free: 1.953 MB / 362.7 MB Notification: Performance of Templates: time 0.00513/0.02665, allocations: 3.028 MB / 397.3 MB, free: 14.98 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.1400039249565452]