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.001492/0.001492, allocations: 114.5 kB / 19.69 MB, free: 2.207 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.001808/0.001808, allocations: 222.3 kB / 23.01 MB, free: 5.062 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.48/1.48, allocations: 207.6 MB / 233.8 MB, free: 10 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.2177/0.2177, allocations: 44.23 MB / 330.3 MB, free: 9.535 MB / 270.1 MB " [Timeout remaining time 180] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",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.002516/0.002516, allocations: 74.55 kB / 467.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.127, allocations: 61.05 MB / 0.5161 GB, free: 7.363 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004567/0.1316, allocations: 2.725 MB / 0.5188 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.1337, allocations: 1.006 MB / 0.5198 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003316/0.1341, allocations: 7.938 kB / 0.5198 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002556/0.1343, allocations: 47.45 kB / 0.5198 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003502/0.1347, allocations: 103.1 kB / 0.5199 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.1353, allocations: 147.6 kB / 0.5201 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007112/0.136, allocations: 378.2 kB / 0.5204 GB, free: 2.934 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.1362, allocations: 73.53 kB / 0.5205 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/0.1365, allocations: 135.5 kB / 0.5206 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002958/0.1368, allocations: 143.3 kB / 0.5208 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.202e-05/0.1369, allocations: 24 kB / 0.5208 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001626/0.137, allocations: 43.98 kB / 0.5208 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.253e-05/0.1371, allocations: 63.77 kB / 0.5209 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002067/0.1373, allocations: 163.2 kB / 0.521 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005613/0.1379, allocations: 366.5 kB / 0.5214 GB, free: 1.938 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1379, allocations: 0 / 0.5214 GB, free: 1.938 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1379, allocations: 0 / 0.5214 GB, free: 1.938 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.1379, allocations: 0 / 0.5214 GB, free: 1.938 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.00109/0.139, allocations: 0.5286 MB / 0.5219 GB, free: 1.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.139, allocations: 8.031 kB / 0.5219 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.334e-05/0.1391, allocations: 74.72 kB / 0.522 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.1393, allocations: 52.69 kB / 0.522 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004664/0.1398, allocations: 210 kB / 0.5222 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.1398, allocations: 17.03 kB / 0.5223 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.1399, allocations: 40.33 kB / 0.5223 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004976/0.1404, allocations: 310.4 kB / 0.5226 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.7e-05/0.1405, allocations: 3.953 kB / 0.5226 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.1405, allocations: 12 kB / 0.5226 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.1405, allocations: 8 kB / 0.5226 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.1409, allocations: 175.8 kB / 0.5228 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.143, allocations: 1.265 MB / 0.524 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004391/0.1435, allocations: 241 kB / 0.5242 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.1436, allocations: 84.2 kB / 0.5243 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.1436, allocations: 0 / 0.5243 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.1436, allocations: 42.67 kB / 0.5244 GB, free: 14.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.202e-06/0.1436, allocations: 0 / 0.5244 GB, free: 14.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005118/0.1442, allocations: 213.4 kB / 0.5246 GB, free: 14.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.1443, allocations: 166.3 kB / 0.5247 GB, free: 14.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.1445, allocations: 216.1 kB / 0.5249 GB, free: 14.01 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.1445, allocations: 25.7 kB / 0.525 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.1447, allocations: 196.5 kB / 0.5251 GB, free: 13.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.368e-05/0.1447, allocations: 91.22 kB / 0.5252 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.815e-05/0.1448, allocations: 69.64 kB / 0.5253 GB, free: 13.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.145, allocations: 334.8 kB / 0.5256 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.1451, allocations: 63.98 kB / 0.5257 GB, free: 13.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.1454, allocations: 209.9 kB / 0.5259 GB, free: 12.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.1458, allocations: 285.8 kB / 0.5262 GB, free: 12.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1458, allocations: 4 kB / 0.5262 GB, free: 12.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005212/0.1463, allocations: 328.9 kB / 0.5265 GB, free: 12.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1463, allocations: 8 kB / 0.5265 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1463, allocations: 4 kB / 0.5265 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.1463, allocations: 8 kB / 0.5265 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000284/0.1466, allocations: 79.91 kB / 0.5266 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.1466, allocations: 11.92 kB / 0.5266 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.1468, allocations: 40.27 kB / 0.5266 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.1468, allocations: 16.56 kB / 0.5266 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.000153/0.147, allocations: 157.6 kB / 0.5268 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.1471, allocations: 23.86 kB / 0.5268 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.1473, allocations: 83.08 kB / 0.5269 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1473, allocations: 4 kB / 0.5269 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.1473, allocations: 4 kB / 0.5269 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.1473, allocations: 7.969 kB / 0.5269 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006131/0.1479, allocations: 292.4 kB / 0.5272 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1479, allocations: 4 kB / 0.5272 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.1483, allocations: 63.91 kB / 0.5272 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.1483, allocations: 4 kB / 0.5272 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.1483, allocations: 11.98 kB / 0.5273 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1483, allocations: 256 / 0.5273 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.321e-06/0.1483, allocations: 11.94 kB / 0.5273 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006422/0.1489, allocations: 0.6335 MB / 0.5279 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.842e-05/0.149, allocations: 35.78 kB / 0.5279 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.993e-05/0.149, allocations: 8 kB / 0.5279 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.1493, allocations: 0 / 0.5279 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.1493, allocations: 19.97 kB / 0.5279 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1493, allocations: 4 kB / 0.528 GB, free: 10.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001476/0.1495, allocations: 161.5 kB / 0.5281 GB, free: 10.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1495, allocations: 0 / 0.5281 GB, free: 10.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005391/0.15, allocations: 75.89 kB / 0.5282 GB, free: 10.45 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.0009381/0.151, allocations: 1.178 MB / 0.5293 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003587/0.1513, allocations: 175.7 kB / 0.5295 GB, free: 9.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1513, allocations: 1.062 kB / 0.5295 GB, free: 9.062 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.1514, allocations: 71.84 kB / 0.5296 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.0007906/0.1522, allocations: 69.38 kB / 0.5296 GB, free: 8.922 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004419/0.1566, allocations: 3.546 MB / 0.5331 GB, free: 5.164 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.1571, allocations: 0.7716 MB / 0.5338 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001415/0.1573, allocations: 26.97 kB / 0.5339 GB, free: 4.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.1574, allocations: 91.62 kB / 0.534 GB, free: 4.25 MB / 414.1 MB Notification: Performance of SimCode: time 9.41e-07/0.1574, allocations: 4 kB / 0.534 GB, free: 4.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2357/0.3931, allocations: 5.715 MB / 0.5395 GB, free: 28.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.59, allocations: 1.828 kB / 0.5395 GB, free: 28.27 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: 14.556134187150747]