Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 110.9 kB / 17.21 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 190 kB / 18.12 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 241.8 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2011/0.2011, allocations: 44.17 MB / 336.1 MB, free: 2.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 63.61 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1142, allocations: 60.84 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004319/0.1186, allocations: 2.729 MB / 471.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.1209, allocations: 0.9465 MB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004305/0.1213, allocations: 11.94 kB / 472.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003263/0.1217, allocations: 35.7 kB / 472.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004518/0.1222, allocations: 91.23 kB / 472.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006683/0.1229, allocations: 127.7 kB / 472.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006444/0.1235, allocations: 354.3 kB / 472.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002137/0.1237, allocations: 73.69 kB / 473 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/0.124, allocations: 123.5 kB / 473.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.1242, allocations: 143.3 kB / 473.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.1243, allocations: 16 kB / 473.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.1244, allocations: 35.98 kB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.29e-05/0.1245, allocations: 59.77 kB / 473.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.1246, allocations: 151.2 kB / 473.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.125, allocations: 347 kB / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1251, allocations: 0 / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1251, allocations: 0 / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.1251, allocations: 0 / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001009/0.1261, allocations: 0.5966 MB / 474.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1261, allocations: 8.031 kB / 474.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.425e-05/0.1262, allocations: 66.72 kB / 474.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002403/0.1265, allocations: 52.45 kB / 474.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.1268, allocations: 272.2 kB / 474.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.1268, allocations: 21.03 kB / 474.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.1269, allocations: 36.28 kB / 474.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004814/0.1274, allocations: 302.5 kB / 475.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.99e-05/0.1274, allocations: 11.84 kB / 475.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.1275, allocations: 12 kB / 475.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.1275, allocations: 8 kB / 475.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.1278, allocations: 175.8 kB / 475.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.1297, allocations: 1.336 MB / 476.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/0.1301, allocations: 253 kB / 477 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.1302, allocations: 72.33 kB / 477 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.1303, allocations: 7.984 kB / 477 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.1303, allocations: 42.5 kB / 477.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.783e-06/0.1303, allocations: 0 / 477.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005204/0.1308, allocations: 221.4 kB / 477.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.1309, allocations: 158.2 kB / 477.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002041/0.1311, allocations: 212.1 kB / 477.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.1312, allocations: 29.7 kB / 477.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.1313, allocations: 192.1 kB / 477.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.629e-05/0.1314, allocations: 90.73 kB / 478 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.1315, allocations: 73.55 kB / 478 MB, free: 4.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1316, allocations: 338.8 kB / 478.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.1318, allocations: 63.97 kB / 478.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.132, allocations: 205.9 kB / 478.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.1324, allocations: 297.7 kB / 478.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1324, allocations: 0 / 478.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000498/0.1329, allocations: 317.4 kB / 479.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.1329, allocations: 8 kB / 479.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1329, allocations: 8 kB / 479.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.133, allocations: 8 kB / 479.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.1333, allocations: 87.89 kB / 479.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.1333, allocations: 11.94 kB / 479.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.1335, allocations: 31.69 kB / 479.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.1335, allocations: 16.56 kB / 479.4 MB, free: 3.426 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0001682/0.1337, allocations: 149.7 kB / 479.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.1338, allocations: 23.72 kB / 479.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001849/0.134, allocations: 99.19 kB / 479.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.134, allocations: 4 kB / 479.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.134, allocations: 4.062 kB / 479.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.134, allocations: 3.984 kB / 479.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005979/0.1347, allocations: 313.3 kB / 480 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1347, allocations: 0 / 480 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003422/0.135, allocations: 75.89 kB / 480.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.135, allocations: 3.938 kB / 480.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.1351, allocations: 8 kB / 480.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.1351, allocations: 4 kB / 480.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1351, allocations: 4 kB / 480.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005306/0.1356, allocations: 0.6369 MB / 480.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.1357, allocations: 100.8 kB / 480.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.1357, allocations: 8 kB / 480.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.136, allocations: 12 kB / 480.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.136, allocations: 19.97 kB / 480.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.1361, allocations: 4 kB / 480.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.1362, allocations: 153.5 kB / 481 MB, free: 1.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1362, allocations: 0 / 481 MB, free: 1.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005326/0.1367, allocations: 83.75 kB / 481.1 MB, free: 1.637 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.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 (23): * Single equations (assignments): 23 * 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.000814/0.1375, allocations: 1.167 MB / 482.3 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003577/0.1379, allocations: 195.8 kB / 482.4 MB, free: 256 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.1379, allocations: 4 kB / 482.4 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.138, allocations: 67.92 kB / 482.5 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008849/0.1389, allocations: 57.38 kB / 482.6 MB, free: 124 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004138/0.1431, allocations: 3.65 MB / 486.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.1435, allocations: 0.7679 MB / 487 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.1436, allocations: 34.97 kB / 487 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.1438, allocations: 91.34 kB / 487.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1438, allocations: 0 / 487.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.1617, allocations: 5.027 MB / 492.1 MB, free: 6.426 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001983/0.1619, allocations: 185.2 kB / 492.3 MB, free: 6.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.136, allocations: 0 / 492.3 MB, free: 6.172 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches