Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001293/0.001293, allocations: 109 kB / 20.48 MB, free: 1.492 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.001453/0.001453, allocations: 211.9 kB / 23.79 MB, free: 4.707 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 207.6 MB / 234.6 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2341/0.2341, allocations: 44.24 MB / 331.1 MB, free: 9.535 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002426/0.002426, allocations: 70.88 kB / 468.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1354, allocations: 61.04 MB / 0.5169 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004496/0.1399, allocations: 2.728 MB / 0.5196 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002231/0.1421, allocations: 1.006 MB / 0.5205 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.1423, allocations: 11.88 kB / 0.5206 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.1426, allocations: 43.52 kB / 0.5206 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002485/0.1428, allocations: 111 kB / 0.5207 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005951/0.1434, allocations: 139.7 kB / 0.5208 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.1439, allocations: 378.2 kB / 0.5212 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.1441, allocations: 65.55 kB / 0.5213 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.1443, allocations: 139.5 kB / 0.5214 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002345/0.1445, allocations: 147.3 kB / 0.5215 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.892e-05/0.1446, allocations: 31.94 kB / 0.5216 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.1447, allocations: 43.98 kB / 0.5216 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.884e-05/0.1447, allocations: 59.78 kB / 0.5217 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.1449, allocations: 163.2 kB / 0.5218 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004864/0.1454, allocations: 366.5 kB / 0.5222 GB, free: 1.941 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1454, allocations: 0 / 0.5222 GB, free: 1.941 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1454, allocations: 0 / 0.5222 GB, free: 1.941 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.1454, allocations: 0 / 0.5222 GB, free: 1.941 MB / 398.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.0009771/0.1464, allocations: 0.5287 MB / 0.5227 GB, free: 1.383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.1464, allocations: 8.031 kB / 0.5227 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.391e-05/0.1464, allocations: 8.844 kB / 0.5227 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.273e-05/0.1465, allocations: 70.66 kB / 0.5228 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002192/0.1467, allocations: 52.69 kB / 0.5228 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.1471, allocations: 202.1 kB / 0.523 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.1472, allocations: 25.03 kB / 0.523 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/0.1472, allocations: 40.25 kB / 0.5231 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005196/0.1477, allocations: 302.3 kB / 0.5234 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.1478, allocations: 7.953 kB / 0.5234 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.1478, allocations: 12 kB / 0.5234 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1478, allocations: 12 kB / 0.5234 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.1482, allocations: 175.8 kB / 0.5236 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.1502, allocations: 1.262 MB / 0.5248 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/0.1506, allocations: 252.9 kB / 0.525 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.1507, allocations: 72.33 kB / 0.5251 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.1507, allocations: 0 / 0.5251 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.1508, allocations: 50.61 kB / 0.5251 GB, free: 14.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.072e-06/0.1508, allocations: 0 / 0.5251 GB, free: 14.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004993/0.1513, allocations: 209.4 kB / 0.5253 GB, free: 14.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.1513, allocations: 162.2 kB / 0.5255 GB, free: 14.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.1516, allocations: 212.1 kB / 0.5257 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.1516, allocations: 29.7 kB / 0.5257 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.1517, allocations: 196.5 kB / 0.5259 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.116e-05/0.1518, allocations: 95.36 kB / 0.526 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.1519, allocations: 69.64 kB / 0.5261 GB, free: 13.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.1521, allocations: 338.8 kB / 0.5264 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.1522, allocations: 63.97 kB / 0.5265 GB, free: 13.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.1525, allocations: 197.9 kB / 0.5266 GB, free: 12.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.1529, allocations: 301.7 kB / 0.5269 GB, free: 12.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.1529, allocations: 4 kB / 0.5269 GB, free: 12.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004871/0.1533, allocations: 313.5 kB / 0.5272 GB, free: 12.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1534, allocations: 4.031 kB / 0.5272 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.1534, allocations: 12.31 kB / 0.5273 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.1534, allocations: 4 kB / 0.5273 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002959/0.1537, allocations: 91.84 kB / 0.5273 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.1537, allocations: 11.92 kB / 0.5274 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/0.1539, allocations: 35.73 kB / 0.5274 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.1539, allocations: 19.98 kB / 0.5274 GB, free: 12.11 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.0001767/0.1541, allocations: 153.7 kB / 0.5276 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.1542, allocations: 23.86 kB / 0.5276 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001883/0.1544, allocations: 91.58 kB / 0.5277 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1544, allocations: 4 kB / 0.5277 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.1544, allocations: 3.984 kB / 0.5277 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1544, allocations: 4 kB / 0.5277 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006494/0.1551, allocations: 284.4 kB / 0.528 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1551, allocations: 0 / 0.528 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.1554, allocations: 64.22 kB / 0.528 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.1554, allocations: 7.984 kB / 0.528 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.1554, allocations: 15.98 kB / 0.528 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1554, allocations: 7.875 kB / 0.528 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.1554, allocations: 8 kB / 0.528 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007857/0.1562, allocations: 0.6297 MB / 0.5287 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.619e-05/0.1563, allocations: 27.8 kB / 0.5287 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/0.1563, allocations: 8 kB / 0.5287 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.1566, allocations: 11.94 kB / 0.5287 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.1566, allocations: 19.97 kB / 0.5287 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1566, allocations: 7.938 kB / 0.5287 GB, free: 10.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.1568, allocations: 153.6 kB / 0.5289 GB, free: 10.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1568, allocations: 0 / 0.5289 GB, free: 10.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005408/0.1573, allocations: 79.98 kB / 0.529 GB, free: 10.44 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.000897/0.1582, allocations: 1.175 MB / 0.5301 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003769/0.1586, allocations: 180.2 kB / 0.5303 GB, free: 9.059 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.1586, allocations: 0 / 0.5303 GB, free: 9.059 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.1587, allocations: 67.84 kB / 0.5303 GB, free: 8.992 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008341/0.1596, allocations: 60.95 kB / 0.5304 GB, free: 8.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004349/0.1639, allocations: 3.55 MB / 0.5339 GB, free: 5.164 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.1643, allocations: 0.7716 MB / 0.5346 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.1644, allocations: 31.19 kB / 0.5347 GB, free: 4.336 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.1646, allocations: 87.59 kB / 0.5347 GB, free: 4.25 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1646, allocations: 3.938 kB / 0.5347 GB, free: 4.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2581/0.4227, allocations: 5.757 MB / 0.5404 GB, free: 27.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.13, allocations: 6.109 kB / 0.5404 GB, free: 27.85 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 15.379161874996498]