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.001598/0.001598, allocations: 112.4 kB / 17.33 MB, free: 6.016 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.001724/0.001724, allocations: 193.3 kB / 18.25 MB, free: 5.105 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.409/1.409, allocations: 222.9 MB / 241.9 MB, free: 13.73 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.2105/0.2105, allocations: 44.17 MB / 336.2 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 67.09 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1191, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005/0.1242, allocations: 2.737 MB / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.1264, allocations: 0.9308 MB / 472.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003215/0.1267, allocations: 11.94 kB / 472.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.127, allocations: 35.69 kB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003009/0.1273, allocations: 87.31 kB / 472.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006535/0.128, allocations: 123.7 kB / 472.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005001/0.1285, allocations: 374.2 kB / 473.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.1288, allocations: 93.12 kB / 473.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.1289, allocations: 127.5 kB / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/0.1291, allocations: 147.3 kB / 473.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.1291, allocations: 24 kB / 473.5 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.1292, allocations: 43.98 kB / 473.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.232e-05/0.1293, allocations: 63.77 kB / 473.6 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.1294, allocations: 163.2 kB / 473.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.1298, allocations: 355 kB / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1298, allocations: 0 / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1298, allocations: 0 / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.1298, allocations: 4 kB / 474.1 MB, free: 9.316 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.0008874/0.1307, allocations: 0.6043 MB / 474.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1308, allocations: 8.031 kB / 474.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.793e-05/0.1309, allocations: 70.72 kB / 474.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.1311, allocations: 52.45 kB / 474.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002869/0.1314, allocations: 260.3 kB / 475.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.1314, allocations: 25.03 kB / 475.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.673e-05/0.1315, allocations: 40.22 kB / 475.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/0.1319, allocations: 302.4 kB / 475.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.132, allocations: 11.91 kB / 475.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.132, allocations: 8 kB / 475.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.132, allocations: 8 kB / 475.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.1325, allocations: 179.8 kB / 475.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.135, allocations: 1.336 MB / 477 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004018/0.1354, allocations: 249 kB / 477.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.1356, allocations: 84.25 kB / 477.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.1356, allocations: 8 kB / 477.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.1356, allocations: 30.56 kB / 477.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.743e-06/0.1357, allocations: 4 kB / 477.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004968/0.1362, allocations: 221.7 kB / 477.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.744e-05/0.1363, allocations: 158.2 kB / 477.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.1365, allocations: 212.2 kB / 477.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.1365, allocations: 29.7 kB / 478 MB, free: 5.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1366, allocations: 192 kB / 478.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.279e-05/0.1367, allocations: 90.89 kB / 478.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.1369, allocations: 65.56 kB / 478.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.137, allocations: 334.8 kB / 478.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.1372, allocations: 63.97 kB / 478.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/0.1376, allocations: 213.8 kB / 478.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.1379, allocations: 297.8 kB / 479.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.1379, allocations: 0 / 479.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006416/0.1386, allocations: 317.1 kB / 479.5 MB, free: 3.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.1386, allocations: 8 kB / 479.5 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.1387, allocations: 4.094 kB / 479.5 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.88e-05/0.1387, allocations: 11.94 kB / 479.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.1392, allocations: 87.88 kB / 479.6 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/0.1392, allocations: 11.94 kB / 479.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.1395, allocations: 39.67 kB / 479.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.1395, allocations: 19.98 kB / 479.7 MB, free: 3.23 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.0001949/0.1397, allocations: 157.8 kB / 479.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.1399, allocations: 23.72 kB / 479.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000222/0.1402, allocations: 87.33 kB / 479.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.1402, allocations: 8 kB / 479.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1402, allocations: 0 / 479.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1402, allocations: 0 / 479.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008456/0.1411, allocations: 321.3 kB / 480.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.1411, allocations: 4 kB / 480.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004268/0.1415, allocations: 63.91 kB / 480.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.1415, allocations: 4 kB / 480.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.1416, allocations: 8 kB / 480.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.1416, allocations: 4 kB / 480.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1416, allocations: 0 / 480.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005355/0.1421, allocations: 0.6408 MB / 481 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.539e-05/0.1422, allocations: 96.86 kB / 481.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.541e-05/0.1423, allocations: 11.98 kB / 481.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.1425, allocations: 4 kB / 481.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.1426, allocations: 15.98 kB / 481.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.1426, allocations: 4 kB / 481.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001322/0.1427, allocations: 157.5 kB / 481.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1427, allocations: 0 / 481.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005478/0.1433, allocations: 87.75 kB / 481.4 MB, free: 1.453 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.0007761/0.1441, allocations: 1.179 MB / 482.5 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003409/0.1444, allocations: 196 kB / 482.7 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1444, allocations: 0 / 482.7 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.1446, allocations: 76.97 kB / 482.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.1458, allocations: 83.03 kB / 482.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004522/0.1503, allocations: 3.632 MB / 486.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.1507, allocations: 0.7716 MB / 487.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001722/0.1509, allocations: 26.97 kB / 487.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.1511, allocations: 95.39 kB / 487.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1511, allocations: 0 / 487.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03009/0.1812, allocations: 5.153 MB / 492.6 MB, free: 6.113 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/0.1815, allocations: 197 kB / 492.7 MB, free: 5.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.132, allocations: 0 / 492.7 MB, free: 5.855 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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