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: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 107.7 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2161/0.2161, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 72.09 kB / 417.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1207, allocations: 62.45 MB / 479.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004711/0.1254, allocations: 3.07 MB / 482.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.1275, allocations: 1.059 MB / 483.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000368/0.1279, allocations: 11.94 kB / 483.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.1281, allocations: 47.62 kB / 483.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003627/0.1285, allocations: 103.1 kB / 483.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007603/0.1293, allocations: 151.7 kB / 484 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006525/0.13, allocations: 453.8 kB / 484.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002442/0.1302, allocations: 128.4 kB / 484.6 MB, free: 476 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002735/0.1305, allocations: 151.5 kB / 484.7 MB, free: 324 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.1308, allocations: 175.2 kB / 484.9 MB, free: 148 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.189e-05/0.1308, allocations: 28 kB / 484.9 MB, free: 120 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.131, allocations: 55.97 kB / 485 MB, free: 64 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.758e-05/0.1311, allocations: 71.84 kB / 485.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002336/0.1313, allocations: 206.8 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005245/0.1319, allocations: 430.8 kB / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.1319, allocations: 3.984 kB / 485.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1319, allocations: 0 / 485.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.057e-05/0.1319, allocations: 4 kB / 485.7 MB, free: 15.36 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.001183/0.1331, allocations: 0.6552 MB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1332, allocations: 11.97 kB / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.999e-05/0.1333, allocations: 74.72 kB / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000325/0.1336, allocations: 68.44 kB / 486.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.134, allocations: 283.5 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.134, allocations: 25.38 kB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.39e-05/0.1341, allocations: 48.02 kB / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000604/0.1347, allocations: 355.6 kB / 487.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.1348, allocations: 12 kB / 487.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.484e-05/0.1348, allocations: 12 kB / 487.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1348, allocations: 8 kB / 487.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004756/0.1353, allocations: 223.7 kB / 487.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002498/0.1378, allocations: 1.593 MB / 489 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006468/0.1385, allocations: 307.6 kB / 489.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.1387, allocations: 97.17 kB / 489.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.1387, allocations: 8.141 kB / 489.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.1388, allocations: 46.48 kB / 489.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.234e-06/0.1388, allocations: 0 / 489.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007694/0.1396, allocations: 265.8 kB / 489.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.1397, allocations: 191.8 kB / 489.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.14, allocations: 242.5 kB / 490.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.14, allocations: 29.7 kB / 490.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.1402, allocations: 211.7 kB / 490.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.956e-05/0.1403, allocations: 114.4 kB / 490.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.1404, allocations: 70.12 kB / 490.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.1406, allocations: 350.8 kB / 490.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.1408, allocations: 80.83 kB / 491 MB, free: 9.641 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/0.1411, allocations: 245.7 kB / 491.2 MB, free: 9.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004861/0.1416, allocations: 357.1 kB / 491.6 MB, free: 8.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1416, allocations: 0 / 491.6 MB, free: 8.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006496/0.1423, allocations: 388.9 kB / 492 MB, free: 8.508 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1423, allocations: 10.66 kB / 492 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.1423, allocations: 4 kB / 492 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.1423, allocations: 11.98 kB / 492 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000353/0.1427, allocations: 107.8 kB / 492.1 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.828e-05/0.1427, allocations: 16.48 kB / 492.1 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.143, allocations: 43.59 kB / 492.2 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.143, allocations: 20 kB / 492.2 MB, free: 8.301 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.0002277/0.1432, allocations: 161.6 kB / 492.3 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.1434, allocations: 27.7 kB / 492.4 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001798/0.1436, allocations: 91.39 kB / 492.5 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1436, allocations: 4 kB / 492.5 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.1436, allocations: 4 kB / 492.5 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.1436, allocations: 4 kB / 492.5 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000699/0.1443, allocations: 353.3 kB / 492.8 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.1444, allocations: 7.938 kB / 492.8 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.1448, allocations: 79.89 kB / 492.9 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1448, allocations: 3.938 kB / 492.9 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.1448, allocations: 8 kB / 492.9 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.1448, allocations: 4 kB / 492.9 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1449, allocations: 0 / 492.9 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007678/0.1456, allocations: 0.7789 MB / 493.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.906e-05/0.1457, allocations: 100.8 kB / 493.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.1458, allocations: 15.98 kB / 493.8 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003394/0.1461, allocations: 8.25 kB / 493.8 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.057e-05/0.1462, allocations: 23.97 kB / 493.8 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.1462, allocations: 15.94 kB / 493.9 MB, free: 6.531 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001561/0.1464, allocations: 173.9 kB / 494 MB, free: 6.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1464, allocations: 0 / 494 MB, free: 6.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006379/0.147, allocations: 99.69 kB / 494.1 MB, free: 6.266 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.00108/0.1481, allocations: 1.293 MB / 495.4 MB, free: 4.945 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005193/0.1487, allocations: 252 kB / 495.7 MB, free: 4.699 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1487, allocations: 0 / 495.7 MB, free: 4.699 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.1489, allocations: 95.84 kB / 495.8 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.1499, allocations: 84.77 kB / 495.8 MB, free: 4.523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005268/0.1552, allocations: 4.205 MB / 0.4883 GB, free: 72 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.1557, allocations: 0.7873 MB / 0.4891 GB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001843/0.1559, allocations: 38.95 kB / 0.4891 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.156, allocations: 107.4 kB / 0.4892 GB, free: 15.11 MB / 382.1 MB Notification: Performance of SimCode: time 4.1e-07/0.156, allocations: 0 / 0.4892 GB, free: 15.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/0.2858, allocations: 6.138 MB / 0.4952 GB, free: 9.102 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003568/0.2862, allocations: 191.4 kB / 0.4954 GB, free: 8.848 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.419/2.705, allocations: 4 kB / 0.4954 GB, free: 8.844 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > 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