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) 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.001245, allocations: 104.1 kB / 17.63 MB, free: 5.48 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.00112/0.00112, allocations: 192 kB / 18.56 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2156/0.2156, allocations: 44.19 MB / 336.6 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 65.86 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1215, allocations: 60.82 MB / 469.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003795/0.1253, allocations: 2.696 MB / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.1268, allocations: 0.9464 MB / 473 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.1269, allocations: 7.938 kB / 473 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.1271, allocations: 47.52 kB / 473 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.1273, allocations: 107 kB / 473.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004127/0.1277, allocations: 139.6 kB / 473.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.128, allocations: 374.3 kB / 473.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.1282, allocations: 89.11 kB / 473.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.1283, allocations: 127.5 kB / 473.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.1285, allocations: 143.3 kB / 474 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.1286, allocations: 24 kB / 474 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.1287, allocations: 43.98 kB / 474.1 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.1288, allocations: 67.75 kB / 474.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.1289, allocations: 163.2 kB / 474.3 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.1292, allocations: 363 kB / 474.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1293, allocations: 0 / 474.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1293, allocations: 0 / 474.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.1293, allocations: 4 kB / 474.7 MB, free: 8.914 MB / 350.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.0008545/0.1301, allocations: 0.5955 MB / 475.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1302, allocations: 8.031 kB / 475.3 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.9e-05/0.1303, allocations: 70.66 kB / 475.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002021/0.1305, allocations: 52.45 kB / 475.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.1307, allocations: 259.8 kB / 475.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.1308, allocations: 21.03 kB / 475.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.855e-05/0.1308, allocations: 44.2 kB / 475.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.1313, allocations: 302.5 kB / 476 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.1313, allocations: 7.906 kB / 476 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.1313, allocations: 12 kB / 476 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.1314, allocations: 12 kB / 476 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002921/0.1316, allocations: 171.8 kB / 476.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.1334, allocations: 1.341 MB / 477.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004023/0.1338, allocations: 249 kB / 477.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.134, allocations: 76.28 kB / 477.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.134, allocations: 4 kB / 477.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.134, allocations: 38.5 kB / 477.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.134, allocations: 0 / 477.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004659/0.1345, allocations: 225.3 kB / 478.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.1346, allocations: 162.2 kB / 478.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.1348, allocations: 212.1 kB / 478.5 MB, free: 4.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.1348, allocations: 25.7 kB / 478.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1349, allocations: 192 kB / 478.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.656e-05/0.135, allocations: 86.75 kB / 478.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.601e-05/0.1351, allocations: 69.56 kB / 478.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1352, allocations: 342.9 kB / 479.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.1354, allocations: 63.97 kB / 479.2 MB, free: 3.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.1356, allocations: 205.9 kB / 479.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.1359, allocations: 293.7 kB / 479.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.1359, allocations: 4 kB / 479.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000446/0.1364, allocations: 320.9 kB / 480 MB, free: 3.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.1364, allocations: 4 kB / 480 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.1364, allocations: 8 kB / 480.1 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1364, allocations: 8.547 kB / 480.1 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002966/0.1367, allocations: 88.38 kB / 480.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.1367, allocations: 12.19 kB / 480.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.1369, allocations: 39.69 kB / 480.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.1369, allocations: 15.98 kB / 480.2 MB, free: 2.848 MB / 350.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.0001306/0.1371, allocations: 153.7 kB / 480.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.1372, allocations: 23.72 kB / 480.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001582/0.1374, allocations: 87.02 kB / 480.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.1374, allocations: 7.984 kB / 480.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.1374, allocations: 0 / 480.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1374, allocations: 4 kB / 480.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005806/0.138, allocations: 325.3 kB / 480.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.138, allocations: 96 / 480.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003236/0.1383, allocations: 63.91 kB / 480.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1383, allocations: 4 kB / 480.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.1384, allocations: 8 kB / 480.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.1384, allocations: 3.938 kB / 480.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.1384, allocations: 3.984 kB / 480.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000519/0.1389, allocations: 0.6358 MB / 481.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.781e-05/0.139, allocations: 96.86 kB / 481.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.87e-05/0.139, allocations: 11.98 kB / 481.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.1393, allocations: 12.19 kB / 481.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.337e-05/0.1393, allocations: 15.98 kB / 481.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.1393, allocations: 8 kB / 481.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001235/0.1395, allocations: 165.5 kB / 481.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1395, allocations: 0 / 481.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000526/0.14, allocations: 79.75 kB / 481.9 MB, free: 1.059 MB / 350.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.0008067/0.1408, allocations: 1.178 MB / 483.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000403/0.1412, allocations: 200.6 kB / 483.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.1413, allocations: 0 / 483.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.1414, allocations: 75.97 kB / 483.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009492/0.1423, allocations: 66.61 kB / 483.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00391/0.1463, allocations: 3.524 MB / 486.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.1467, allocations: 0.7716 MB / 487.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001555/0.1468, allocations: 26.97 kB / 487.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.147, allocations: 95.39 kB / 487.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.147, allocations: 0 / 487.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02583/0.1728, allocations: 5.237 MB / 493.1 MB, free: 5.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/7.752, allocations: 11.62 kB / 493.1 MB, free: 5.699 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches