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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001798/0.001798, allocations: 119 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002098/0.002098, allocations: 194.9 kB / 21.44 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 225.6 MB / 249.8 MB, free: 3.711 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.244/0.244, allocations: 44.92 MB / 349.6 MB, free: 1.719 MB / 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 66.25 kB / 491.7 MB, free: 30.19 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1199, allocations: 64.26 MB / 0.543 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004638/0.1245, allocations: 2.714 MB / 0.5456 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1266, allocations: 0.9502 MB / 0.5466 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003243/0.1269, allocations: 11.94 kB / 0.5466 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002586/0.1272, allocations: 47.52 kB / 0.5466 GB, free: 480 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000442/0.1276, allocations: 115 kB / 0.5467 GB, free: 364 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000618/0.1283, allocations: 139.6 kB / 0.5469 GB, free: 224 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006398/0.1289, allocations: 370.2 kB / 0.5472 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.1291, allocations: 69.42 kB / 0.5473 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.1294, allocations: 131.5 kB / 0.5474 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.1296, allocations: 143.4 kB / 0.5475 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.329e-05/0.1297, allocations: 24 kB / 0.5476 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.1298, allocations: 43.98 kB / 0.5476 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-05/0.1299, allocations: 63.75 kB / 0.5477 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001974/0.1301, allocations: 159.2 kB / 0.5478 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005528/0.1307, allocations: 366.5 kB / 0.5482 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1307, allocations: 7.938 kB / 0.5482 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1307, allocations: 0 / 0.5482 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.1307, allocations: 0 / 0.5482 GB, free: 14.86 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001156/0.1318, allocations: 0.6078 MB / 0.5488 GB, free: 14.21 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1319, allocations: 8.031 kB / 0.5488 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.132, allocations: 74.66 kB / 0.5488 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.1322, allocations: 44.73 kB / 0.5489 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004723/0.1327, allocations: 267.9 kB / 0.5491 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.1327, allocations: 25.03 kB / 0.5492 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.93e-05/0.1328, allocations: 36.27 kB / 0.5492 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005138/0.1333, allocations: 302.5 kB / 0.5495 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.1334, allocations: 11.94 kB / 0.5495 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.1334, allocations: 16 kB / 0.5495 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.1334, allocations: 8 kB / 0.5495 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003357/0.1337, allocations: 179.8 kB / 0.5497 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.1359, allocations: 1.337 MB / 0.551 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004535/0.1364, allocations: 241 kB / 0.5512 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1365, allocations: 72.31 kB / 0.5513 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.1365, allocations: 4 kB / 0.5513 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.1365, allocations: 46.5 kB / 0.5513 GB, free: 11.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.844e-06/0.1365, allocations: 0 / 0.5513 GB, free: 11.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005314/0.1371, allocations: 213.6 kB / 0.5516 GB, free: 11.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.1372, allocations: 162.2 kB / 0.5517 GB, free: 10.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.1374, allocations: 212.2 kB / 0.5519 GB, free: 10.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.36e-05/0.1374, allocations: 33.83 kB / 0.5519 GB, free: 10.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.1376, allocations: 196.5 kB / 0.5521 GB, free: 10.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.913e-05/0.1377, allocations: 95.22 kB / 0.5522 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.352e-05/0.1378, allocations: 65.64 kB / 0.5523 GB, free: 10.29 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1379, allocations: 338.8 kB / 0.5526 GB, free: 9.953 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.1381, allocations: 67.97 kB / 0.5527 GB, free: 9.887 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.1383, allocations: 201.9 kB / 0.5529 GB, free: 9.625 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003924/0.1387, allocations: 297.7 kB / 0.5531 GB, free: 9.27 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1387, allocations: 0 / 0.5531 GB, free: 9.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000531/0.1392, allocations: 321.7 kB / 0.5535 GB, free: 8.949 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.1392, allocations: 6.188 kB / 0.5535 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.1393, allocations: 12 kB / 0.5535 GB, free: 8.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.1393, allocations: 4 kB / 0.5535 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.1396, allocations: 91.83 kB / 0.5536 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.73e-05/0.1396, allocations: 11.94 kB / 0.5536 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.1398, allocations: 35.73 kB / 0.5536 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.1398, allocations: 16 kB / 0.5536 GB, free: 8.777 MB / 414.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.0001714/0.14, allocations: 153.7 kB / 0.5538 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.1401, allocations: 27.89 kB / 0.5538 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002084/0.1403, allocations: 91 kB / 0.5539 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.1403, allocations: 4 kB / 0.5539 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1403, allocations: 0 / 0.5539 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1404, allocations: 4 kB / 0.5539 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006422/0.141, allocations: 309.4 kB / 0.5542 GB, free: 8.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/0.141, allocations: 4 kB / 0.5542 GB, free: 8.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003376/0.1413, allocations: 67.95 kB / 0.5543 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.1413, allocations: 4 kB / 0.5543 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1414, allocations: 96 / 0.5543 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1414, allocations: 15.88 kB / 0.5543 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1414, allocations: 0 / 0.5543 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000656/0.142, allocations: 0.6374 MB / 0.5549 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.059e-05/0.1421, allocations: 96.91 kB / 0.555 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.798e-05/0.1421, allocations: 12 kB / 0.555 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.1424, allocations: 11.94 kB / 0.555 GB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.37e-05/0.1424, allocations: 15.97 kB / 0.555 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.1424, allocations: 8 kB / 0.555 GB, free: 7.219 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001465/0.1426, allocations: 153.5 kB / 0.5552 GB, free: 7.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1426, allocations: 0 / 0.5552 GB, free: 7.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005535/0.1431, allocations: 83.83 kB / 0.5553 GB, free: 6.988 MB / 414.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.000987/0.1441, allocations: 1.171 MB / 0.5564 GB, free: 5.789 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004087/0.1445, allocations: 184.2 kB / 0.5566 GB, free: 5.609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1445, allocations: 0 / 0.5566 GB, free: 5.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.1447, allocations: 71.98 kB / 0.5566 GB, free: 5.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009063/0.1456, allocations: 61 kB / 0.5567 GB, free: 5.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004993/0.1506, allocations: 3.548 MB / 0.5602 GB, free: 1.719 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.151, allocations: 0.7716 MB / 0.5609 GB, free: 0.918 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.1512, allocations: 30.95 kB / 0.561 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.1513, allocations: 91.41 kB / 0.561 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of SimCode: time 1.453e-06/0.1513, allocations: 0 / 0.561 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0308/0.1821, allocations: 5.412 MB / 0.5663 GB, free: 11.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.437/8.619, allocations: 7.938 kB / 0.5663 GB, free: 11.48 MB / 430.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.799219462554902]