Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001918/0.001918, allocations: 117.8 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00283/0.00283, allocations: 208.9 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.727/1.727, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2306/0.2306, allocations: 46.9 MB / 357.4 MB, free: 10.5 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 76.11 kB / 0.4912 GB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1258, allocations: 65.99 MB / 0.5557 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004512/0.1303, allocations: 3.062 MB / 0.5587 GB, free: 3.172 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.1322, allocations: 1.071 MB / 0.5597 GB, free: 2.098 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/0.1324, allocations: 11.94 kB / 0.5597 GB, free: 2.086 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002154/0.1327, allocations: 55.39 kB / 0.5598 GB, free: 2.031 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002599/0.1329, allocations: 134.9 kB / 0.5599 GB, free: 1.898 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006126/0.1335, allocations: 167.6 kB / 0.56 GB, free: 1.734 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005653/0.1341, allocations: 453.8 kB / 0.5605 GB, free: 1.289 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.1343, allocations: 79.58 kB / 0.5606 GB, free: 1.203 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.1345, allocations: 171.3 kB / 0.5607 GB, free: 1.035 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002506/0.1348, allocations: 171.2 kB / 0.5609 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.501e-05/0.1349, allocations: 32 kB / 0.5609 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.135, allocations: 59.98 kB / 0.561 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.585e-05/0.1351, allocations: 71.7 kB / 0.561 GB, free: 0.707 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001978/0.1353, allocations: 195.1 kB / 0.5612 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005597/0.1358, allocations: 442.2 kB / 0.5616 GB, free: 84 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1358, allocations: 0 / 0.5616 GB, free: 84 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1358, allocations: 3.938 kB / 0.5617 GB, free: 80 kB / 414.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.1358, allocations: 0 / 0.5617 GB, free: 80 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001242/0.1371, allocations: 0.6742 MB / 0.5623 GB, free: 15.35 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.1371, allocations: 12.03 kB / 0.5623 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.29e-05/0.1372, allocations: 74.72 kB / 0.5624 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.1375, allocations: 64.62 kB / 0.5625 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004609/0.138, allocations: 303.5 kB / 0.5627 GB, free: 14.86 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.771e-05/0.138, allocations: 33.38 kB / 0.5628 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.499e-05/0.1381, allocations: 44.08 kB / 0.5628 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006148/0.1387, allocations: 355.6 kB / 0.5632 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.139e-05/0.1387, allocations: 7.984 kB / 0.5632 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.1388, allocations: 12 kB / 0.5632 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.1388, allocations: 16 kB / 0.5632 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004506/0.1392, allocations: 219.8 kB / 0.5634 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.1416, allocations: 1.578 MB / 0.5649 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006193/0.1423, allocations: 303.7 kB / 0.5652 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.1424, allocations: 93.12 kB / 0.5653 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.1425, allocations: 4.141 kB / 0.5653 GB, free: 12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.949e-05/0.1425, allocations: 42.5 kB / 0.5654 GB, free: 11.95 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.735e-06/0.1425, allocations: 0 / 0.5654 GB, free: 11.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.00074/0.1432, allocations: 277.2 kB / 0.5656 GB, free: 11.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.1433, allocations: 179.9 kB / 0.5658 GB, free: 11.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.1436, allocations: 242.6 kB / 0.566 GB, free: 11.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.1436, allocations: 29.7 kB / 0.5661 GB, free: 11.18 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.1438, allocations: 216.2 kB / 0.5663 GB, free: 10.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.081e-05/0.1439, allocations: 111.1 kB / 0.5664 GB, free: 10.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.144, allocations: 82.2 kB / 0.5665 GB, free: 10.76 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.1442, allocations: 350.8 kB / 0.5668 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.1444, allocations: 80.83 kB / 0.5669 GB, free: 10.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.1447, allocations: 245.7 kB / 0.5671 GB, free: 10.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000514/0.1452, allocations: 365.1 kB / 0.5674 GB, free: 9.582 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1452, allocations: 0 / 0.5674 GB, free: 9.582 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006554/0.1458, allocations: 384.8 kB / 0.5678 GB, free: 9.199 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1459, allocations: 8 kB / 0.5678 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1459, allocations: 4 kB / 0.5678 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.697e-05/0.1459, allocations: 8.625 kB / 0.5678 GB, free: 9.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.1463, allocations: 115.8 kB / 0.5679 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.1464, allocations: 15.94 kB / 0.568 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.1466, allocations: 39.67 kB / 0.568 GB, free: 9.012 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.1466, allocations: 24 kB / 0.568 GB, free: 8.988 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001777/0.1468, allocations: 165.6 kB / 0.5682 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.1469, allocations: 27.81 kB / 0.5682 GB, free: 8.789 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/0.1471, allocations: 91.39 kB / 0.5683 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.1471, allocations: 4.312 kB / 0.5683 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1471, allocations: 8 kB / 0.5683 GB, free: 8.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1472, allocations: 3.984 kB / 0.5683 GB, free: 8.676 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007372/0.1479, allocations: 353.3 kB / 0.5686 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1479, allocations: 4 kB / 0.5686 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004298/0.1483, allocations: 79.89 kB / 0.5687 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.1483, allocations: 0 / 0.5687 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.1484, allocations: 8 kB / 0.5687 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.116e-05/0.1484, allocations: 11.92 kB / 0.5687 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1484, allocations: 0 / 0.5687 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008079/0.1492, allocations: 0.7632 MB / 0.5695 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.314e-05/0.1493, allocations: 104.9 kB / 0.5696 GB, free: 7.273 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/0.1493, allocations: 8 kB / 0.5696 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/0.1496, allocations: 8 kB / 0.5696 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.705e-05/0.1497, allocations: 31.91 kB / 0.5696 GB, free: 7.227 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.1497, allocations: 7.938 kB / 0.5696 GB, free: 7.219 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001688/0.1499, allocations: 170 kB / 0.5698 GB, free: 7.055 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1499, allocations: 0 / 0.5698 GB, free: 7.055 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006435/0.1505, allocations: 99.84 kB / 0.5699 GB, free: 6.957 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.001182/0.1517, allocations: 1.308 MB / 0.5712 GB, free: 5.621 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005425/0.1523, allocations: 227.6 kB / 0.5714 GB, free: 5.398 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1523, allocations: 0 / 0.5714 GB, free: 5.398 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.1524, allocations: 93.14 kB / 0.5715 GB, free: 5.309 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009477/0.1534, allocations: 77.11 kB / 0.5716 GB, free: 5.238 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005544/0.1589, allocations: 4.086 MB / 0.5755 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.1594, allocations: 0.7989 MB / 0.5763 GB, free: 76 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001872/0.1596, allocations: 34.95 kB / 0.5764 GB, free: 40 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.1598, allocations: 119.3 kB / 0.5765 GB, free: 15.92 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.1598, allocations: 0 / 0.5765 GB, free: 15.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03484/0.1947, allocations: 6.454 MB / 0.5828 GB, free: 9.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.682/8.877, allocations: 15.84 kB / 0.5828 GB, free: 9.555 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 12.510188553016633]