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.001263/0.001263, allocations: 105.9 kB / 16.4 MB, free: 5.961 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.001128/0.001128, allocations: 195.7 kB / 17.34 MB, free: 5.566 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.35/1.35, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2016/0.2016, allocations: 43.52 MB / 314.1 MB, free: 448 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.001414/0.001414, allocations: 72.47 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1146, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003675/0.1183, allocations: 2.687 MB / 0.49 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.12, allocations: 0.99 MB / 0.491 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.1202, allocations: 11.94 kB / 0.491 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.1204, allocations: 43.52 kB / 0.491 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.1207, allocations: 115 kB / 0.4911 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004717/0.1211, allocations: 139.6 kB / 0.4913 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000366/0.1215, allocations: 378.2 kB / 0.4916 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.1217, allocations: 89.09 kB / 0.4917 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.1219, allocations: 135.5 kB / 0.4918 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.122, allocations: 151.3 kB / 0.492 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.1221, allocations: 24 kB / 0.492 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.1222, allocations: 39.98 kB / 0.4921 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.652e-05/0.1223, allocations: 63.77 kB / 0.4921 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.1224, allocations: 167.1 kB / 0.4923 GB, free: 7.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004366/0.1228, allocations: 362.5 kB / 0.4926 GB, free: 6.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1229, allocations: 0 / 0.4926 GB, free: 6.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1229, allocations: 0 / 0.4926 GB, free: 6.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1229, allocations: 0 / 0.4926 GB, free: 6.906 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.0009154/0.1238, allocations: 0.6001 MB / 0.4932 GB, free: 6.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.1239, allocations: 11.89 kB / 0.4932 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.789e-05/0.1239, allocations: 74.66 kB / 0.4933 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.1241, allocations: 48.69 kB / 0.4933 GB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.1245, allocations: 275.8 kB / 0.4936 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.1246, allocations: 25.03 kB / 0.4936 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.722e-05/0.1246, allocations: 40.27 kB / 0.4937 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/0.1251, allocations: 310.5 kB / 0.494 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.1251, allocations: 3.953 kB / 0.494 GB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.1251, allocations: 12 kB / 0.494 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.1252, allocations: 11.94 kB / 0.494 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002945/0.1255, allocations: 179.8 kB / 0.4942 GB, free: 5.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.1272, allocations: 1.325 MB / 0.4954 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.1277, allocations: 256.9 kB / 0.4957 GB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.1278, allocations: 76.33 kB / 0.4958 GB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.1278, allocations: 4 kB / 0.4958 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.1279, allocations: 46.48 kB / 0.4958 GB, free: 3.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 2.134e-06/0.1279, allocations: 0 / 0.4958 GB, free: 3.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004951/0.1284, allocations: 217.5 kB / 0.496 GB, free: 3.121 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.16e-05/0.1285, allocations: 154.2 kB / 0.4962 GB, free: 2.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.1287, allocations: 220.1 kB / 0.4964 GB, free: 2.703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1287, allocations: 29.7 kB / 0.4964 GB, free: 2.668 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.1288, allocations: 192.4 kB / 0.4966 GB, free: 2.477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.889e-05/0.1289, allocations: 95.41 kB / 0.4967 GB, free: 2.383 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.439e-05/0.129, allocations: 73.58 kB / 0.4967 GB, free: 2.305 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1291, allocations: 330.8 kB / 0.4971 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.1293, allocations: 67.97 kB / 0.4971 GB, free: 1.906 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.1295, allocations: 201.9 kB / 0.4973 GB, free: 1.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003466/0.1298, allocations: 289.7 kB / 0.4976 GB, free: 1.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1298, allocations: 8 kB / 0.4976 GB, free: 1.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004499/0.1303, allocations: 317 kB / 0.4979 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1303, allocations: 8.531 kB / 0.4979 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.1303, allocations: 4.188 kB / 0.4979 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.1304, allocations: 12 kB / 0.4979 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.1307, allocations: 91.84 kB / 0.498 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.1307, allocations: 11.92 kB / 0.498 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.1309, allocations: 35.73 kB / 0.4981 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.1309, allocations: 20 kB / 0.4981 GB, free: 0.793 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.0001553/0.131, allocations: 153.6 kB / 0.4982 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.1312, allocations: 23.86 kB / 0.4983 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001961/0.1314, allocations: 91.02 kB / 0.4983 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1314, allocations: 4 kB / 0.4983 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.1314, allocations: 7.984 kB / 0.4984 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1314, allocations: 0 / 0.4984 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/0.1321, allocations: 317.3 kB / 0.4987 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1321, allocations: 3.938 kB / 0.4987 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/0.1324, allocations: 59.97 kB / 0.4987 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.959e-06/0.1324, allocations: 4 kB / 0.4987 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.1325, allocations: 15.92 kB / 0.4987 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.1325, allocations: 0 / 0.4987 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1325, allocations: 4 kB / 0.4987 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006179/0.1331, allocations: 0.6336 MB / 0.4994 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.098e-05/0.1332, allocations: 100.9 kB / 0.4995 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/0.1332, allocations: 11.94 kB / 0.4995 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.1335, allocations: 4 kB / 0.4995 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.206e-05/0.1335, allocations: 19.97 kB / 0.4995 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.1336, allocations: 12 kB / 0.4995 GB, free: 15.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001346/0.1337, allocations: 145.8 kB / 0.4996 GB, free: 15.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1337, allocations: 0 / 0.4996 GB, free: 15.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006055/0.1343, allocations: 79.89 kB / 0.4997 GB, free: 15.02 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.001063/0.1354, allocations: 1.175 MB / 0.5009 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004534/0.1358, allocations: 193 kB / 0.501 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1359, allocations: 0 / 0.501 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.136, allocations: 79.83 kB / 0.5011 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009965/0.137, allocations: 76.8 kB / 0.5012 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004267/0.1413, allocations: 3.544 MB / 0.5047 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.1417, allocations: 0.7755 MB / 0.5054 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.1418, allocations: 30.95 kB / 0.5054 GB, free: 8.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.1419, allocations: 91.41 kB / 0.5055 GB, free: 8.801 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1419, allocations: 0 / 0.5055 GB, free: 8.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02451/0.1665, allocations: 5.359 MB / 0.5108 GB, free: 3.434 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.585/7.751, allocations: 13 kB / 0.5108 GB, free: 3.422 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