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.001353/0.001353, allocations: 111.4 kB / 17.99 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001447, allocations: 209.8 kB / 18.92 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247.1 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.2357/0.2357, allocations: 46.13 MB / 344.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002151/0.002151, allocations: 87.73 kB / 417.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1162, allocations: 62.45 MB / 480.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004929/0.1212, allocations: 3.066 MB / 483.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.1235, allocations: 1.067 MB / 484.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002315/0.1237, allocations: 7.938 kB / 484.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.1239, allocations: 51.56 kB / 484.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.1242, allocations: 99.14 kB / 484.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005924/0.1248, allocations: 151.7 kB / 484.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005187/0.1254, allocations: 453.9 kB / 485.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.1256, allocations: 120.4 kB / 485.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.1258, allocations: 163.4 kB / 485.4 MB, free: 420 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.1261, allocations: 171.2 kB / 485.5 MB, free: 248 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.117e-05/0.1261, allocations: 32 kB / 485.6 MB, free: 216 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.1263, allocations: 47.98 kB / 485.6 MB, free: 168 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.002e-05/0.1263, allocations: 75.75 kB / 485.7 MB, free: 92 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002133/0.1266, allocations: 199.1 kB / 485.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004145/0.127, allocations: 327.4 kB / 486.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.127, allocations: 0 / 486.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.127, allocations: 0 / 486.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.127, allocations: 3.984 kB / 486.2 MB, free: 15.57 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.001139/0.1282, allocations: 0.659 MB / 486.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.1282, allocations: 12.03 kB / 486.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002995/0.1285, allocations: 64.44 kB / 486.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003725/0.1289, allocations: 291.5 kB / 487.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.274e-05/0.129, allocations: 29.38 kB / 487.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.903e-05/0.129, allocations: 44.27 kB / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006368/0.1297, allocations: 363.5 kB / 487.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.1297, allocations: 4 kB / 487.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.1298, allocations: 12 kB / 487.7 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1298, allocations: 12 kB / 487.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004573/0.1302, allocations: 223 kB / 487.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.1327, allocations: 1.588 MB / 489.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006059/0.1333, allocations: 311.6 kB / 489.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.1335, allocations: 93.17 kB / 489.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.1335, allocations: 4 kB / 489.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.1335, allocations: 46.48 kB / 489.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.683e-06/0.1336, allocations: 4 kB / 489.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.000688/0.1342, allocations: 266.2 kB / 490.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.1344, allocations: 191.9 kB / 490.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002608/0.1347, allocations: 238.5 kB / 490.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.853e-05/0.1347, allocations: 33.7 kB / 490.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.1349, allocations: 211.7 kB / 490.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.254e-05/0.135, allocations: 114.7 kB / 491 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1351, allocations: 78.03 kB / 491 MB, free: 10.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1353, allocations: 334.8 kB / 491.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.1355, allocations: 80.83 kB / 491.4 MB, free: 9.938 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.1358, allocations: 253.7 kB / 491.7 MB, free: 9.609 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005196/0.1363, allocations: 365 kB / 492 MB, free: 9.176 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1364, allocations: 4 kB / 492.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006666/0.137, allocations: 376.7 kB / 492.4 MB, free: 8.797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1371, allocations: 8 kB / 492.4 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1371, allocations: 8.703 kB / 492.4 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.1371, allocations: 12 kB / 492.4 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000382/0.1375, allocations: 103.8 kB / 492.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.201e-05/0.1375, allocations: 19.91 kB / 492.6 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.1378, allocations: 43.59 kB / 492.6 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.1378, allocations: 16.09 kB / 492.6 MB, free: 8.59 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.000186/0.138, allocations: 161.6 kB / 492.8 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.1381, allocations: 31.7 kB / 492.8 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/0.1383, allocations: 103.3 kB / 492.9 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1384, allocations: 4 kB / 492.9 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.1384, allocations: 0 / 492.9 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1384, allocations: 4 kB / 492.9 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007424/0.1391, allocations: 353.2 kB / 493.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1391, allocations: 0 / 493.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004139/0.1396, allocations: 80.2 kB / 493.3 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.1396, allocations: 4 kB / 493.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1396, allocations: 8 kB / 493.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-05/0.1396, allocations: 4 kB / 493.4 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1396, allocations: 7.938 kB / 493.4 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008251/0.1405, allocations: 0.768 MB / 494.1 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.413e-05/0.1406, allocations: 104.8 kB / 494.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.52e-05/0.1406, allocations: 12.09 kB / 494.3 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003272/0.141, allocations: 11.92 kB / 494.3 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/0.141, allocations: 23.91 kB / 494.3 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.1411, allocations: 12 kB / 494.3 MB, free: 6.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001665/0.1412, allocations: 173.9 kB / 494.5 MB, free: 6.648 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1412, allocations: 0 / 494.5 MB, free: 6.648 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006315/0.1419, allocations: 95.69 kB / 494.6 MB, free: 6.555 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.0001397/0.142, allocations: 111.2 kB / 494.7 MB, free: 6.438 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005141/0.1425, allocations: 241.5 kB / 494.9 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1426, allocations: 0 / 494.9 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001872/0.1428, allocations: 104 kB / 495 MB, free: 6.102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009588/0.1437, allocations: 65.45 kB / 495.1 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.146, allocations: 1.482 MB / 496.6 MB, free: 4.508 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.1465, allocations: 0.7914 MB / 497.3 MB, free: 3.691 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.216e-05/0.1466, allocations: 27.44 kB / 497.4 MB, free: 3.664 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1466, allocations: 3.938 kB / 497.4 MB, free: 3.66 MB / 366.1 MB Notification: Performance of Templates: time 0.006772/0.1534, allocations: 4.059 MB / 0.4897 GB, free: 15.61 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 -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