Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_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.0008563/0.0008565, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009016/0.0009016, allocations: 181.8 kB / 16.91 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.4 MB / 223.1 MB, free: 5.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3402/0.3402, allocations: 43.58 MB / 315 MB, free: 8.797 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005027/0.0005028, allocations: 16 kB / 384.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1159, allocations: 58.86 MB / 443.5 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002787/0.1188, allocations: 2.378 MB / 445.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.1205, allocations: 0.9708 MB / 446.9 MB, free: 9.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.1206, allocations: 7.938 kB / 446.9 MB, free: 9.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.1208, allocations: 35.7 kB / 446.9 MB, free: 9.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001908/0.121, allocations: 87.28 kB / 447 MB, free: 9.074 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.1214, allocations: 119.8 kB / 447.1 MB, free: 8.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.1217, allocations: 370.1 kB / 447.5 MB, free: 8.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.1219, allocations: 73.7 kB / 447.6 MB, free: 8.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.1221, allocations: 123.4 kB / 447.7 MB, free: 8.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.1222, allocations: 135.3 kB / 447.8 MB, free: 8.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.069e-05/0.1223, allocations: 12 kB / 447.8 MB, free: 8.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.409e-05/0.1224, allocations: 32 kB / 447.9 MB, free: 8.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.553e-05/0.1224, allocations: 51.77 kB / 447.9 MB, free: 8.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.1226, allocations: 172.9 kB / 448.1 MB, free: 8.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.1229, allocations: 346.9 kB / 448.4 MB, free: 7.664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1229, allocations: 0 / 448.4 MB, free: 7.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.123, allocations: 0 / 448.4 MB, free: 7.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.123, allocations: 0 / 448.4 MB, free: 7.664 MB / 382.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.0008209/0.1238, allocations: 0.5343 MB / 448.9 MB, free: 7.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.1238, allocations: 16.03 kB / 449 MB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.124, allocations: 70.7 kB / 449 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.1242, allocations: 52.45 kB / 449.1 MB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.1245, allocations: 267.7 kB / 449.3 MB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.1246, allocations: 25.03 kB / 449.4 MB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.515e-05/0.1246, allocations: 32.28 kB / 449.4 MB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004614/0.1251, allocations: 306.4 kB / 449.7 MB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.953e-05/0.1251, allocations: 15.89 kB / 449.7 MB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.1252, allocations: 12 kB / 449.7 MB, free: 6.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.1252, allocations: 8 kB / 449.7 MB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.1255, allocations: 167.8 kB / 449.9 MB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.1272, allocations: 1.341 MB / 451.2 MB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.1276, allocations: 249.1 kB / 451.5 MB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.1277, allocations: 80.22 kB / 451.6 MB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.1277, allocations: 0 / 451.6 MB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.1278, allocations: 42.67 kB / 451.6 MB, free: 4.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.042e-06/0.1278, allocations: 0 / 451.6 MB, free: 4.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004769/0.1283, allocations: 221.1 kB / 451.8 MB, free: 3.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.1283, allocations: 158.2 kB / 452 MB, free: 3.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.1285, allocations: 224 kB / 452.2 MB, free: 3.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1285, allocations: 25.7 kB / 452.2 MB, free: 3.508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.1287, allocations: 192.3 kB / 452.4 MB, free: 3.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.1287, allocations: 90.75 kB / 452.5 MB, free: 3.227 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.1288, allocations: 29.7 kB / 452.5 MB, free: 3.191 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1289, allocations: 338.8 kB / 452.9 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.129, allocations: 59.97 kB / 452.9 MB, free: 2.793 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.1292, allocations: 213.8 kB / 453.1 MB, free: 2.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003147/0.1295, allocations: 293.8 kB / 453.4 MB, free: 2.168 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.1295, allocations: 4 kB / 453.4 MB, free: 2.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004248/0.13, allocations: 316.8 kB / 453.7 MB, free: 1.848 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.13, allocations: 8.531 kB / 453.7 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.13, allocations: 11.98 kB / 453.7 MB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.13, allocations: 8 kB / 453.7 MB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.1303, allocations: 83.84 kB / 453.8 MB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.1303, allocations: 8 kB / 453.8 MB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.1305, allocations: 39.67 kB / 453.9 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.1305, allocations: 12.19 kB / 453.9 MB, free: 1.68 MB / 382.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.0001326/0.1307, allocations: 157.6 kB / 454 MB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.1308, allocations: 23.72 kB / 454.1 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001687/0.131, allocations: 91.08 kB / 454.2 MB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.131, allocations: 4 kB / 454.2 MB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.131, allocations: 0 / 454.2 MB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.131, allocations: 8.547 kB / 454.2 MB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005438/0.1315, allocations: 317.4 kB / 454.5 MB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.1316, allocations: 7.938 kB / 454.5 MB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003049/0.1319, allocations: 63.91 kB / 454.5 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.1319, allocations: 4 kB / 454.6 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.1319, allocations: 4 kB / 454.6 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.1319, allocations: 7.984 kB / 454.6 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1319, allocations: 4 kB / 454.6 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005247/0.1325, allocations: 0.6373 MB / 455.2 MB, free: 280 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.888e-05/0.1325, allocations: 100.8 kB / 455.3 MB, free: 160 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.1326, allocations: 8 kB / 455.3 MB, free: 152 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.1328, allocations: 8 kB / 455.3 MB, free: 144 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.1329, allocations: 15.98 kB / 455.3 MB, free: 128 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.1329, allocations: 7.984 kB / 455.3 MB, free: 120 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1859/0.3188, allocations: 151 kB / 455.5 MB, free: 45.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3188, allocations: 0 / 455.5 MB, free: 45.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007602/0.3196, allocations: 77.42 kB / 455.6 MB, free: 45.13 MB / 382.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.00063/0.3202, allocations: 1.174 MB / 456.7 MB, free: 44.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.3206, allocations: 187.3 kB / 456.9 MB, free: 44.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3206, allocations: 3.344 kB / 456.9 MB, free: 44.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.906e-05/0.3207, allocations: 75.27 kB / 457 MB, free: 44.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008225/0.3215, allocations: 60.92 kB / 457.1 MB, free: 44.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.3248, allocations: 3.827 MB / 460.9 MB, free: 41.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.3251, allocations: 0.7724 MB / 461.7 MB, free: 40.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001652/0.3253, allocations: 36.2 kB / 461.7 MB, free: 40.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.3254, allocations: 87.53 kB / 461.8 MB, free: 40.87 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3254, allocations: 0 / 461.8 MB, free: 40.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02001/0.3454, allocations: 4.927 MB / 466.7 MB, free: 40.41 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.3457, allocations: 193 kB / 466.9 MB, free: 40.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.169, allocations: 0 / 466.9 MB, free: 40.16 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches