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) 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.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008833/0.0008832, allocations: 95.91 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 206.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2245/0.2245, allocations: 45.91 MB / 344 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002693/0.0002694, allocations: 11.98 kB / 417.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1291, allocations: 63.46 MB / 481.4 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003494/0.1327, allocations: 2.421 MB / 483.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.1347, allocations: 1.021 MB / 484.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002813/0.135, allocations: 11.94 kB / 484.8 MB, free: 2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.1351, allocations: 35.7 kB / 484.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.1355, allocations: 155.5 kB / 485 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.136, allocations: 131.7 kB / 485.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004895/0.1365, allocations: 319.3 kB / 485.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.1367, allocations: 94.12 kB / 485.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.1369, allocations: 135.5 kB / 485.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.1372, allocations: 159.3 kB / 485.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.054e-05/0.1372, allocations: 16 kB / 485.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001321/0.1373, allocations: 43.92 kB / 485.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.414e-05/0.1374, allocations: 59.77 kB / 486 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.77e-05/0.1375, allocations: 89.52 kB / 486 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003034/0.1378, allocations: 311.4 kB / 486.3 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.225e-06/0.1378, allocations: 4 kB / 486.4 MB, free: 480 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1378, allocations: 4 kB / 486.4 MB, free: 476 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.1378, allocations: 0 / 486.4 MB, free: 476 kB / 350.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.0009411/0.1388, allocations: 0.5927 MB / 486.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.1388, allocations: 12.03 kB / 487 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003012/0.1391, allocations: 71.39 kB / 487 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.1396, allocations: 283.4 kB / 487.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.443e-05/0.1396, allocations: 29 kB / 487.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.131e-05/0.1397, allocations: 36 kB / 487.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006699/0.1404, allocations: 359.6 kB / 487.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.318e-05/0.1404, allocations: 7.906 kB / 487.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.1405, allocations: 19.98 kB / 487.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.1405, allocations: 12 kB / 487.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.141, allocations: 219.8 kB / 488 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.1433, allocations: 1.589 MB / 489.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000585/0.1438, allocations: 312 kB / 489.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.1439, allocations: 4 kB / 489.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.1439, allocations: 50.69 kB / 489.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.1439, allocations: 3.938 kB / 489.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006734/0.1446, allocations: 269.9 kB / 490.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.1447, allocations: 191.8 kB / 490.4 MB, free: 12.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.145, allocations: 246.6 kB / 490.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.145, allocations: 33.7 kB / 490.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1452, allocations: 211.8 kB / 490.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.589e-05/0.1453, allocations: 106.5 kB / 491 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.557e-05/0.1453, allocations: 8 kB / 491 MB, free: 11.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1454, allocations: 342.8 kB / 491.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.1456, allocations: 76.84 kB / 491.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.1459, allocations: 253.7 kB / 491.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.1461, allocations: 115.9 kB / 491.7 MB, free: 10.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.477e-06/0.1462, allocations: 11.95 kB / 491.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000626/0.1468, allocations: 377.1 kB / 492.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.1468, allocations: 11.98 kB / 492.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.1468, allocations: 8 kB / 492.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.1469, allocations: 8 kB / 492.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/0.1472, allocations: 108.1 kB / 492.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.1473, allocations: 11.94 kB / 492.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.1475, allocations: 51.58 kB / 492.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.1475, allocations: 20 kB / 492.3 MB, free: 10.03 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 (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001705/0.1477, allocations: 165.6 kB / 492.5 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.1479, allocations: 31.67 kB / 492.5 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.1481, allocations: 83.39 kB / 492.6 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.158e-06/0.1481, allocations: 7.984 kB / 492.6 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.1481, allocations: 4 kB / 492.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.1481, allocations: 3.984 kB / 492.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007324/0.1488, allocations: 349.3 kB / 493 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.1489, allocations: 4 kB / 493 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003985/0.1493, allocations: 87.86 kB / 493.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.1493, allocations: 4.094 kB / 493.1 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.436e-05/0.1493, allocations: 15.92 kB / 493.1 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1493, allocations: 0 / 493.1 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.1494, allocations: 7.938 kB / 493.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009072/0.1503, allocations: 0.8307 MB / 493.9 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.1504, allocations: 100.8 kB / 494 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.848e-05/0.1505, allocations: 11.95 kB / 494 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/0.1508, allocations: 11.98 kB / 494 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.1508, allocations: 27.86 kB / 494.1 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.1509, allocations: 7.984 kB / 494.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001553/0.151, allocations: 166 kB / 494.2 MB, free: 7.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.151, allocations: 4 kB / 494.2 MB, free: 7.992 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000606/0.1516, allocations: 103.7 kB / 494.3 MB, free: 7.891 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001417/0.1518, allocations: 103.7 kB / 494.4 MB, free: 7.781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005006/0.1523, allocations: 228.8 kB / 494.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1523, allocations: 0 / 494.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.1525, allocations: 100.4 kB / 494.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006389/0.1531, allocations: 66.94 kB / 494.8 MB, free: 7.398 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.1553, allocations: 1.612 MB / 496.4 MB, free: 5.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.1557, allocations: 0.8033 MB / 497.2 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001738/0.1559, allocations: 30.97 kB / 497.3 MB, free: 4.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.244e-05/0.156, allocations: 31.42 kB / 497.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.156, allocations: 0 / 497.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of Templates: time 0.006656/0.1626, allocations: 2.754 MB / 0.4883 GB, free: 2.117 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches