Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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: translateModel(ModelicaTest.Translational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|mass3.s|mass3.v|mass4.s|mass4.v|mass5.s|mass5.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Translational.TestBraking") translateModel(ModelicaTest.Translational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|mass3.s|mass3.v|mass4.s|mass4.v|mass5.s|mass5.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Translational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001113/0.001113, allocations: 110.9 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2155/0.2155, allocations: 46.1 MB / 344.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 83.53 kB / 417.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1142, allocations: 62.45 MB / 479.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.004479/0.1187, allocations: 3.175 MB / 483.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.1207, allocations: 1.075 MB / 484.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003525/0.1211, allocations: 7.938 kB / 484.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000242/0.1214, allocations: 47.62 kB / 484.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003352/0.1217, allocations: 107.1 kB / 484.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005935/0.1223, allocations: 163.6 kB / 484.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005932/0.123, allocations: 445.8 kB / 484.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.1232, allocations: 102 kB / 485 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002638/0.1235, allocations: 155.4 kB / 485.2 MB, free: 436 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.1238, allocations: 175.2 kB / 485.4 MB, free: 260 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.866e-05/0.1238, allocations: 24 kB / 485.4 MB, free: 236 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.124, allocations: 43.92 kB / 485.4 MB, free: 192 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.177e-05/0.1241, allocations: 75.61 kB / 485.5 MB, free: 116 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002318/0.1243, allocations: 183.1 kB / 485.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003524/0.1247, allocations: 331.3 kB / 486 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.1247, allocations: 0 / 486 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1247, allocations: 0 / 486 MB, free: 15.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.1247, allocations: 0 / 486 MB, free: 15.61 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001292/0.126, allocations: 0.698 MB / 486.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.1261, allocations: 8.875 kB / 486.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003586/0.1265, allocations: 64.45 kB / 486.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.1268, allocations: 290.6 kB / 487.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.771e-05/0.1269, allocations: 29.38 kB / 487.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.507e-05/0.1269, allocations: 40.28 kB / 487.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006357/0.1276, allocations: 367.5 kB / 487.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.1276, allocations: 7.906 kB / 487.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.1277, allocations: 12 kB / 487.5 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.1277, allocations: 12 kB / 487.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004966/0.1282, allocations: 243.8 kB / 487.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.1305, allocations: 1.529 MB / 489.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007248/0.1313, allocations: 419.8 kB / 489.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.1315, allocations: 141.1 kB / 489.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/0.1316, allocations: 4 kB / 489.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.1316, allocations: 42.5 kB / 489.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.335e-06/0.1316, allocations: 0 / 489.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003287/0.1349, allocations: 1.964 MB / 491.8 MB, free: 9.211 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.504e-05/0.135, allocations: 187.9 kB / 492 MB, free: 8.984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.1353, allocations: 259 kB / 492.3 MB, free: 8.723 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.1353, allocations: 33.69 kB / 492.3 MB, free: 8.684 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1355, allocations: 200.3 kB / 492.5 MB, free: 8.484 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.1356, allocations: 181.4 kB / 492.7 MB, free: 8.305 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.1358, allocations: 98.25 kB / 492.8 MB, free: 8.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1359, allocations: 346.8 kB / 493.1 MB, free: 7.855 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002404/0.1362, allocations: 117.2 kB / 493.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003716/0.1366, allocations: 303.9 kB / 493.5 MB, free: 7.367 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006282/0.1372, allocations: 462.2 kB / 494 MB, free: 6.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1372, allocations: 3.938 kB / 494 MB, free: 6.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008427/0.1381, allocations: 0.4888 MB / 494.5 MB, free: 6.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.1381, allocations: 8 kB / 494.5 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.1381, allocations: 8 kB / 494.5 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/0.1381, allocations: 8 kB / 494.5 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004902/0.1386, allocations: 139.8 kB / 494.6 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.007e-05/0.1387, allocations: 20.31 kB / 494.6 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.139, allocations: 20 kB / 494.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.139, allocations: 27.98 kB / 494.7 MB, free: 6.113 MB / 366.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 (74): * Single equations (assignments): 74 * 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.000196/0.1392, allocations: 169.7 kB / 494.9 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.1394, allocations: 39.53 kB / 494.9 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.1396, allocations: 123.3 kB / 495 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1396, allocations: 8 kB / 495 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.1397, allocations: 7.938 kB / 495 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.1397, allocations: 7.984 kB / 495 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.1417, allocations: 1.238 MB / 496.3 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.1417, allocations: 4 kB / 496.3 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/0.1423, allocations: 124.1 kB / 496.4 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.1423, allocations: 11.98 kB / 496.4 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.1423, allocations: 16 kB / 496.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.1423, allocations: 7.984 kB / 496.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/0.1423, allocations: 7.938 kB / 496.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.1434, allocations: 1.009 MB / 497.5 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.1435, allocations: 108.7 kB / 497.6 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.483e-05/0.1436, allocations: 12 kB / 497.6 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004007/0.144, allocations: 19.98 kB / 497.6 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.765e-05/0.1441, allocations: 43.83 kB / 497.6 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.1441, allocations: 20 kB / 497.7 MB, free: 2.969 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001647/0.1443, allocations: 178.1 kB / 497.8 MB, free: 2.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1443, allocations: 0 / 497.8 MB, free: 2.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007068/0.145, allocations: 99.94 kB / 497.9 MB, free: 2.695 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (mass5.s,mass5.v,heatCapacitor.T,mass6.s,mass6.v,mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * 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 (49): * Single equations (assignments): 49 * 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.0001306/0.1452, allocations: 117.5 kB / 498 MB, free: 2.574 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006807/0.1459, allocations: 346.6 kB / 498.4 MB, free: 2.234 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1459, allocations: 0 / 498.4 MB, free: 2.234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002806/0.1462, allocations: 168.8 kB / 498.5 MB, free: 2.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.1472, allocations: 85.16 kB / 498.6 MB, free: 1.988 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.1496, allocations: 1.638 MB / 0.4885 GB, free: 276 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.1501, allocations: 0.812 MB / 0.4893 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.1502, allocations: 35.44 kB / 0.4894 GB, free: 15.4 MB / 382.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1502, allocations: 4 kB / 0.4894 GB, free: 15.39 MB / 382.1 MB Notification: Performance of Templates: time 0.007929/0.1581, allocations: 4.739 MB / 0.494 GB, free: 10.67 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Translational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Translational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Translational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches