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.001133/0.001133, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.00117, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2134/0.2134, allocations: 46.1 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 71.89 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1257, allocations: 62.45 MB / 481.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004337/0.1301, allocations: 3.031 MB / 484.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.132, allocations: 1.067 MB / 485.6 MB, free: 452 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002827/0.1323, allocations: 11.94 kB / 485.6 MB, free: 440 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.1326, allocations: 59.38 kB / 485.6 MB, free: 380 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.1328, allocations: 122.9 kB / 485.7 MB, free: 256 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.1334, allocations: 175.5 kB / 485.9 MB, free: 80 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.1338, allocations: 453.8 kB / 486.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/0.134, allocations: 120.4 kB / 486.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.1342, allocations: 159.4 kB / 486.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002025/0.1344, allocations: 175.2 kB / 486.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.066e-05/0.1345, allocations: 28 kB / 486.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.1346, allocations: 51.98 kB / 486.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.081e-05/0.1347, allocations: 83.62 kB / 487 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.1349, allocations: 191.1 kB / 487.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004185/0.1353, allocations: 442.5 kB / 487.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1353, allocations: 0 / 487.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1353, allocations: 0 / 487.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1353, allocations: 0 / 487.6 MB, free: 14.4 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0009451/0.1363, allocations: 0.6629 MB / 488.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.1363, allocations: 11.97 kB / 488.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.1366, allocations: 64.39 kB / 488.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.137, allocations: 295.5 kB / 488.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.137, allocations: 25.38 kB / 488.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.722e-05/0.1371, allocations: 40.28 kB / 488.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.1376, allocations: 363.5 kB / 489 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.1376, allocations: 8 kB / 489 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.1377, allocations: 12 kB / 489 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1377, allocations: 11.98 kB / 489.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004321/0.1381, allocations: 215.8 kB / 489.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.1401, allocations: 1.588 MB / 490.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005109/0.1407, allocations: 307.6 kB / 491.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.1408, allocations: 97.17 kB / 491.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.1409, allocations: 7.984 kB / 491.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.1409, allocations: 42.5 kB / 491.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.1409, allocations: 0 / 491.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006203/0.1415, allocations: 278 kB / 491.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.875e-05/0.1416, allocations: 196 kB / 491.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.1419, allocations: 242.5 kB / 492 MB, free: 9.617 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.1419, allocations: 29.7 kB / 492 MB, free: 9.582 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.1421, allocations: 215.7 kB / 492.2 MB, free: 9.367 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.836e-05/0.1421, allocations: 98.56 kB / 492.3 MB, free: 9.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.393e-05/0.1422, allocations: 78.03 kB / 492.4 MB, free: 9.188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1424, allocations: 338.8 kB / 492.7 MB, free: 8.848 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.1425, allocations: 84.83 kB / 492.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.1428, allocations: 245.7 kB / 493.1 MB, free: 8.445 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/0.1433, allocations: 365 kB / 493.4 MB, free: 8.012 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1433, allocations: 0 / 493.4 MB, free: 8.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005821/0.1439, allocations: 392.8 kB / 493.8 MB, free: 7.621 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1439, allocations: 8 kB / 493.8 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1439, allocations: 4 kB / 493.8 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1439, allocations: 8 kB / 493.8 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.1443, allocations: 107.8 kB / 493.9 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.1443, allocations: 15.92 kB / 493.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.1445, allocations: 44 kB / 494 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.774e-05/0.1446, allocations: 20 kB / 494 MB, free: 7.418 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.1447, allocations: 169.5 kB / 494.2 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.1448, allocations: 23.72 kB / 494.2 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001655/0.145, allocations: 91.39 kB / 494.3 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.145, allocations: 4 kB / 494.3 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.145, allocations: 4 kB / 494.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1451, allocations: 0 / 494.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006425/0.1457, allocations: 349.2 kB / 494.6 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1457, allocations: 8 kB / 494.6 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004082/0.1461, allocations: 79.89 kB / 494.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.1461, allocations: 0 / 494.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.1462, allocations: 12 kB / 494.7 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1462, allocations: 4.312 kB / 494.7 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1462, allocations: 0 / 494.7 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007056/0.1469, allocations: 0.77 MB / 495.5 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.791e-05/0.147, allocations: 108.8 kB / 495.6 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.147, allocations: 8 kB / 495.6 MB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003086/0.1473, allocations: 12 kB / 495.6 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.1474, allocations: 15.97 kB / 495.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.1474, allocations: 16 kB / 495.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001418/0.1476, allocations: 173.8 kB / 495.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1476, allocations: 0 / 495.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000581/0.1482, allocations: 99.69 kB / 495.9 MB, free: 5.391 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 (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.0001051/0.1483, allocations: 99.25 kB / 496 MB, free: 5.285 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004384/0.1487, allocations: 241.2 kB / 496.3 MB, free: 5.051 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.1487, allocations: 4 kB / 496.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.1489, allocations: 99.81 kB / 496.4 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008803/0.1498, allocations: 77.11 kB / 496.4 MB, free: 4.875 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.152, allocations: 1.296 MB / 497.7 MB, free: 3.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.1525, allocations: 0.7951 MB / 498.5 MB, free: 2.715 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001596/0.1526, allocations: 30.97 kB / 498.6 MB, free: 2.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.466e-05/0.1527, allocations: 27.44 kB / 498.6 MB, free: 2.652 MB / 366.1 MB Notification: Performance of SimCode: time 3.005e-06/0.1527, allocations: 0 / 498.6 MB, free: 2.652 MB / 366.1 MB Notification: Performance of Templates: time 0.00629/0.159, allocations: 3.047 MB / 0.4899 GB, free: 15.64 MB / 382.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 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches