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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 109.9 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2322/0.2322, allocations: 43.53 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 71.89 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1214, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004312/0.1257, allocations: 2.703 MB / 0.49 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.1277, allocations: 0.9822 MB / 0.491 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002924/0.1281, allocations: 11.94 kB / 0.491 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002439/0.1283, allocations: 43.52 kB / 0.491 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003194/0.1287, allocations: 103 kB / 0.4911 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005843/0.1293, allocations: 147.6 kB / 0.4913 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006215/0.1299, allocations: 370.2 kB / 0.4916 GB, free: 7.953 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002457/0.1302, allocations: 97.11 kB / 0.4917 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.1304, allocations: 131.5 kB / 0.4918 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000269/0.1307, allocations: 147.3 kB / 0.492 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-05/0.1308, allocations: 24 kB / 0.492 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.1309, allocations: 44 kB / 0.492 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.282e-05/0.131, allocations: 63.77 kB / 0.4921 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002111/0.1312, allocations: 163.2 kB / 0.4923 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000555/0.1318, allocations: 366.4 kB / 0.4926 GB, free: 6.934 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.1318, allocations: 4 kB / 0.4926 GB, free: 6.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1318, allocations: 0 / 0.4926 GB, free: 6.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.1318, allocations: 0 / 0.4926 GB, free: 6.93 MB / 382.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.001202/0.133, allocations: 0.5996 MB / 0.4932 GB, free: 6.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1331, allocations: 11.89 kB / 0.4932 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.15e-05/0.1332, allocations: 70.72 kB / 0.4933 GB, free: 6.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002329/0.1334, allocations: 52.62 kB / 0.4933 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004551/0.1339, allocations: 267.8 kB / 0.4936 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.1339, allocations: 25.03 kB / 0.4936 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-05/0.134, allocations: 36.33 kB / 0.4936 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.1345, allocations: 318.4 kB / 0.494 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.916e-05/0.1346, allocations: 3.953 kB / 0.494 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.1346, allocations: 15.94 kB / 0.494 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.1346, allocations: 8 kB / 0.494 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003544/0.135, allocations: 175.8 kB / 0.4941 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.1371, allocations: 1.337 MB / 0.4955 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00045/0.1376, allocations: 249 kB / 0.4957 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.1377, allocations: 80.31 kB / 0.4958 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1377, allocations: 4 kB / 0.4958 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.22e-05/0.1378, allocations: 38.5 kB / 0.4958 GB, free: 3.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 2.985e-06/0.1378, allocations: 4 kB / 0.4958 GB, free: 3.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005336/0.1383, allocations: 217.3 kB / 0.496 GB, free: 3.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.314e-05/0.1384, allocations: 154.2 kB / 0.4962 GB, free: 2.965 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.1387, allocations: 216.1 kB / 0.4964 GB, free: 2.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.1387, allocations: 29.7 kB / 0.4964 GB, free: 2.703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.1389, allocations: 188.4 kB / 0.4966 GB, free: 2.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.154e-05/0.139, allocations: 99.41 kB / 0.4967 GB, free: 2.418 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.1391, allocations: 69.78 kB / 0.4967 GB, free: 2.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1392, allocations: 330.8 kB / 0.4971 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.1394, allocations: 67.91 kB / 0.4971 GB, free: 1.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.1396, allocations: 205.9 kB / 0.4973 GB, free: 1.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004041/0.14, allocations: 297.7 kB / 0.4976 GB, free: 1.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1401, allocations: 4 kB / 0.4976 GB, free: 1.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005345/0.1406, allocations: 317.5 kB / 0.4979 GB, free: 1.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.1406, allocations: 8 kB / 0.4979 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1406, allocations: 4 kB / 0.4979 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.1407, allocations: 8.531 kB / 0.4979 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.141, allocations: 95.83 kB / 0.498 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.141, allocations: 4.312 kB / 0.498 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.1412, allocations: 35.73 kB / 0.4981 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.1412, allocations: 23.94 kB / 0.4981 GB, free: 0.8281 MB / 382.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.0001512/0.1414, allocations: 153.6 kB / 0.4982 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.1415, allocations: 27.86 kB / 0.4983 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001921/0.1417, allocations: 91 kB / 0.4983 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1417, allocations: 4 kB / 0.4983 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1417, allocations: 8 kB / 0.4983 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1418, allocations: 0 / 0.4983 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/0.1424, allocations: 321.3 kB / 0.4987 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1424, allocations: 0 / 0.4987 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.1428, allocations: 59.97 kB / 0.4987 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.1428, allocations: 4 kB / 0.4987 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.1428, allocations: 8.25 kB / 0.4987 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.1428, allocations: 7.938 kB / 0.4987 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.1428, allocations: 7.984 kB / 0.4987 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006422/0.1435, allocations: 0.6375 MB / 0.4994 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.032e-05/0.1436, allocations: 100.9 kB / 0.4995 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.1436, allocations: 8 kB / 0.4995 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.1439, allocations: 7.984 kB / 0.4995 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.1439, allocations: 19.92 kB / 0.4995 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.144, allocations: 8 kB / 0.4995 GB, free: 15.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.1441, allocations: 149.8 kB / 0.4996 GB, free: 15.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1441, allocations: 0 / 0.4996 GB, free: 15.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005424/0.1447, allocations: 75.89 kB / 0.4997 GB, free: 15.05 MB / 398.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.0009372/0.1456, allocations: 1.182 MB / 0.5009 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003999/0.146, allocations: 188.6 kB / 0.501 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.146, allocations: 320 / 0.501 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.1462, allocations: 79.84 kB / 0.5011 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008082/0.147, allocations: 55.52 kB / 0.5012 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005661/0.1526, allocations: 3.555 MB / 0.5047 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/0.1531, allocations: 0.7755 MB / 0.5054 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.1533, allocations: 26.97 kB / 0.5054 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.1534, allocations: 87.41 kB / 0.5055 GB, free: 8.836 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1535, allocations: 0 / 0.5055 GB, free: 8.836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03093/0.1844, allocations: 5.371 MB / 0.5108 GB, free: 3.461 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.731/8.915, allocations: 12.94 kB / 0.5108 GB, free: 3.449 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.csv","/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) Reference file matches