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.00146/0.00146, allocations: 106.8 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001555/0.001555, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2191/0.2191, allocations: 46.11 MB / 343.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 82.12 kB / 416.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1339, allocations: 62.43 MB / 479.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004537/0.1385, allocations: 3.089 MB / 482.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.1405, allocations: 1.063 MB / 483.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003673/0.1409, allocations: 7.938 kB / 483.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.1412, allocations: 47.62 kB / 483.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.1416, allocations: 103.1 kB / 483.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006342/0.1422, allocations: 147.7 kB / 483.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005662/0.1428, allocations: 441.8 kB / 484.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002197/0.143, allocations: 102 kB / 484.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002231/0.1432, allocations: 147.4 kB / 484.5 MB, free: 480 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.1435, allocations: 167.2 kB / 484.7 MB, free: 312 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.743e-05/0.1436, allocations: 20 kB / 484.7 MB, free: 292 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.1437, allocations: 43.98 kB / 484.7 MB, free: 248 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.736e-05/0.1438, allocations: 67.7 kB / 484.8 MB, free: 180 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.144, allocations: 187.2 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005014/0.1445, allocations: 410.7 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1445, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1445, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.1446, allocations: 0 / 485.4 MB, free: 15.59 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.001201/0.1458, allocations: 0.6629 MB / 486 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.1458, allocations: 8.875 kB / 486 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.746e-05/0.1459, allocations: 74.72 kB / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003609/0.1463, allocations: 64.44 kB / 486.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003776/0.1467, allocations: 283.5 kB / 486.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.191e-05/0.1467, allocations: 25.38 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.258e-05/0.1468, allocations: 47.97 kB / 486.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006289/0.1474, allocations: 371.5 kB / 486.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.043e-05/0.1475, allocations: 4 kB / 486.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.1475, allocations: 16 kB / 486.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.1476, allocations: 8 kB / 486.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005/0.1481, allocations: 219.7 kB / 487.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.1505, allocations: 1.589 MB / 488.7 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005963/0.1511, allocations: 315.6 kB / 489 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.1513, allocations: 97.27 kB / 489.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.1513, allocations: 3.984 kB / 489.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.1514, allocations: 42.56 kB / 489.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.1514, allocations: 3.938 kB / 489.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007222/0.1521, allocations: 269.1 kB / 489.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.882e-05/0.1522, allocations: 187.9 kB / 489.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.1525, allocations: 238.5 kB / 489.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.1525, allocations: 33.83 kB / 489.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.1526, allocations: 211.7 kB / 490.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.375e-05/0.1527, allocations: 114.4 kB / 490.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1528, allocations: 70.14 kB / 490.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.153, allocations: 350.7 kB / 490.6 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.1532, allocations: 80.83 kB / 490.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.1535, allocations: 245.8 kB / 490.9 MB, free: 9.547 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004985/0.1541, allocations: 365.1 kB / 491.3 MB, free: 9.113 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1541, allocations: 4 kB / 491.3 MB, free: 9.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006288/0.1547, allocations: 381.5 kB / 491.7 MB, free: 8.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.1547, allocations: 12 kB / 491.7 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.1548, allocations: 4 kB / 491.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.1548, allocations: 8.844 kB / 491.7 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/0.1552, allocations: 115.8 kB / 491.8 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.1552, allocations: 8 kB / 491.8 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.1554, allocations: 43.58 kB / 491.9 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.1555, allocations: 20 kB / 491.9 MB, free: 8.523 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.0001651/0.1556, allocations: 161.6 kB / 492 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.1558, allocations: 31.72 kB / 492.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001822/0.156, allocations: 95.31 kB / 492.2 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.156, allocations: 4 kB / 492.2 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.156, allocations: 4 kB / 492.2 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.156, allocations: 3.984 kB / 492.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007256/0.1567, allocations: 353.2 kB / 492.5 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.1568, allocations: 4 kB / 492.5 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004028/0.1572, allocations: 79.89 kB / 492.6 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1572, allocations: 0 / 492.6 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.1572, allocations: 12 kB / 492.6 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.1572, allocations: 4 kB / 492.6 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1572, allocations: 0 / 492.6 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007334/0.158, allocations: 0.7703 MB / 493.4 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.5e-05/0.1581, allocations: 104.8 kB / 493.5 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.1581, allocations: 11.94 kB / 493.5 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003263/0.1584, allocations: 11.98 kB / 493.5 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.1585, allocations: 19.97 kB / 493.5 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1585, allocations: 11.94 kB / 493.5 MB, free: 6.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001501/0.1587, allocations: 166 kB / 493.7 MB, free: 6.594 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1587, allocations: 4 kB / 493.7 MB, free: 6.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006108/0.1593, allocations: 103.7 kB / 493.8 MB, free: 6.488 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.0009945/0.1603, allocations: 1.297 MB / 495.1 MB, free: 5.164 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004541/0.1608, allocations: 233 kB / 495.3 MB, free: 4.938 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.1608, allocations: 4.375 kB / 495.3 MB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.161, allocations: 99.89 kB / 495.4 MB, free: 4.836 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009614/0.162, allocations: 72.7 kB / 495.5 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004906/0.1669, allocations: 4.212 MB / 499.7 MB, free: 316 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.1673, allocations: 0.7953 MB / 0.4888 GB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000185/0.1675, allocations: 30.97 kB / 0.4888 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.1676, allocations: 111.4 kB / 0.4889 GB, free: 15.34 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1676, allocations: 0 / 0.4889 GB, free: 15.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0409/0.2086, allocations: 5.986 MB / 0.4948 GB, free: 9.461 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.2088, allocations: 180.9 kB / 0.4949 GB, free: 9.211 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.956/2.165, allocations: 4.062 kB / 0.4949 GB, free: 9.207 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