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.00136/0.00136, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.001669, allocations: 209.7 kB / 18.79 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 9.023 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2106/0.2106, allocations: 46.1 MB / 344.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 76.34 kB / 417.5 MB, free: 20.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1173, allocations: 62.45 MB / 479.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00436/0.1217, allocations: 3.07 MB / 483 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1236, allocations: 1.071 MB / 484.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.1238, allocations: 7.938 kB / 484.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.124, allocations: 47.62 kB / 484.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.1242, allocations: 107.1 kB / 484.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004542/0.1247, allocations: 155.7 kB / 484.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004226/0.1251, allocations: 433.9 kB / 484.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.1253, allocations: 102 kB / 484.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.1254, allocations: 147.4 kB / 485 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.1256, allocations: 171.2 kB / 485.2 MB, free: 396 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/0.1257, allocations: 16 kB / 485.2 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.1258, allocations: 39.98 kB / 485.3 MB, free: 340 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.571e-05/0.1259, allocations: 67.7 kB / 485.3 MB, free: 272 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.126, allocations: 187 kB / 485.5 MB, free: 84 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003267/0.1264, allocations: 315.6 kB / 485.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1264, allocations: 3.844 kB / 485.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1264, allocations: 0 / 485.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1264, allocations: 4 kB / 485.8 MB, free: 15.77 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.001029/0.1274, allocations: 0.6552 MB / 486.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.1275, allocations: 8.875 kB / 486.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002941/0.1278, allocations: 68.44 kB / 486.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.1281, allocations: 287.5 kB / 486.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.1282, allocations: 29.38 kB / 486.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.429e-05/0.1283, allocations: 40.28 kB / 486.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005952/0.1289, allocations: 363.6 kB / 487.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.845e-05/0.1289, allocations: 7.875 kB / 487.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.129, allocations: 20 kB / 487.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.129, allocations: 16 kB / 487.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/0.1294, allocations: 219.8 kB / 487.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.1316, allocations: 1.577 MB / 489.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000544/0.1321, allocations: 307.6 kB / 489.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.1323, allocations: 101.1 kB / 489.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.1323, allocations: 8 kB / 489.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.1324, allocations: 38.56 kB / 489.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 3.026e-06/0.1324, allocations: 0 / 489.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006852/0.1331, allocations: 277.6 kB / 489.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.822e-05/0.1332, allocations: 191.9 kB / 490 MB, free: 11.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.1334, allocations: 242.5 kB / 490.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.1334, allocations: 33.7 kB / 490.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.1336, allocations: 211.7 kB / 490.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.437e-05/0.1337, allocations: 110.5 kB / 490.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.872e-05/0.1338, allocations: 74.05 kB / 490.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1339, allocations: 342.8 kB / 491 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.1341, allocations: 80.83 kB / 491.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.1344, allocations: 249.8 kB / 491.3 MB, free: 9.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004673/0.1349, allocations: 365 kB / 491.7 MB, free: 9.375 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.1349, allocations: 7.984 kB / 491.7 MB, free: 9.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006186/0.1355, allocations: 380.8 kB / 492.1 MB, free: 8.988 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.1355, allocations: 8 kB / 492.1 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.1355, allocations: 8 kB / 492.1 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1356, allocations: 8 kB / 492.1 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003588/0.1359, allocations: 103.8 kB / 492.2 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.136, allocations: 8 kB / 492.2 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/0.1362, allocations: 52.05 kB / 492.2 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.1362, allocations: 20 kB / 492.3 MB, free: 8.785 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.0001555/0.1364, allocations: 157.6 kB / 492.4 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.1365, allocations: 31.72 kB / 492.4 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001845/0.1367, allocations: 95.31 kB / 492.5 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.1367, allocations: 4 kB / 492.5 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.1368, allocations: 0 / 492.5 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.1368, allocations: 4 kB / 492.5 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006871/0.1375, allocations: 357.5 kB / 492.9 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.1375, allocations: 4 kB / 492.9 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004157/0.1379, allocations: 83.89 kB / 493 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.1379, allocations: 4 kB / 493 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.1379, allocations: 8 kB / 493 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1379, allocations: 0 / 493 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.138, allocations: 4 kB / 493 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007327/0.1387, allocations: 0.774 MB / 493.8 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.501e-05/0.1388, allocations: 100.8 kB / 493.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.1388, allocations: 8 kB / 493.9 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.1392, allocations: 11.98 kB / 493.9 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.1392, allocations: 19.97 kB / 493.9 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.1392, allocations: 12 kB / 493.9 MB, free: 7.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001464/0.1394, allocations: 173.9 kB / 494.1 MB, free: 6.852 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1394, allocations: 0 / 494.1 MB, free: 6.852 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005772/0.14, allocations: 95.69 kB / 494.2 MB, free: 6.758 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.0001323/0.1401, allocations: 107.2 kB / 494.3 MB, free: 6.645 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004432/0.1406, allocations: 236.3 kB / 494.5 MB, free: 6.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1406, allocations: 0 / 494.5 MB, free: 6.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.1408, allocations: 96.48 kB / 494.6 MB, free: 6.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009733/0.1417, allocations: 78.12 kB / 494.7 MB, free: 6.246 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.1438, allocations: 1.459 MB / 496.1 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.1442, allocations: 0.7953 MB / 496.9 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.024e-05/0.1443, allocations: 31.42 kB / 497 MB, free: 3.887 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1443, allocations: 3.938 kB / 497 MB, free: 3.883 MB / 366.1 MB Notification: Performance of Templates: time 0.006702/0.151, allocations: 4.048 MB / 0.4893 GB, free: 15.84 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