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.000802/0.000802, allocations: 94.38 kB / 17.35 MB, free: 6.344 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.0008627/0.0008627, allocations: 168 kB / 18.25 MB, free: 5.508 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.198/1.198, allocations: 223.3 MB / 242.3 MB, free: 14.48 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.1675/0.1675, allocations: 44.25 MB / 337.7 MB, free: 2.453 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000304/0.0003041, allocations: 8 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09153/0.09185, allocations: 61.92 MB / 472.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00262/0.0945, allocations: 2.374 MB / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.09597, allocations: 0.9348 MB / 475.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.09615, allocations: 11.94 kB / 475.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.0963, allocations: 35.7 kB / 475.7 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.09648, allocations: 87.3 kB / 475.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.09687, allocations: 119.7 kB / 475.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.09719, allocations: 358.3 kB / 476.3 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.09736, allocations: 73.69 kB / 476.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.09748, allocations: 123.5 kB / 476.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.09764, allocations: 131.3 kB / 476.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.09768, allocations: 12 kB / 476.6 MB, free: 9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.479e-05/0.09778, allocations: 39.97 kB / 476.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.014e-05/0.09783, allocations: 47.78 kB / 476.7 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.09796, allocations: 176.9 kB / 476.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.09827, allocations: 342.9 kB / 477.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.09828, allocations: 0 / 477.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09829, allocations: 0 / 477.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.0983, allocations: 0 / 477.2 MB, free: 8.398 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.0007343/0.09904, allocations: 0.5381 MB / 477.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.09909, allocations: 8.031 kB / 477.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.723e-05/0.09916, allocations: 70.72 kB / 477.8 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.09937, allocations: 48.55 kB / 477.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/0.09964, allocations: 276.1 kB / 478.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.09967, allocations: 21.03 kB / 478.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.155e-05/0.09973, allocations: 36.28 kB / 478.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004356/0.1002, allocations: 306.4 kB / 478.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.1002, allocations: 4 kB / 478.5 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.541e-05/0.1002, allocations: 19.98 kB / 478.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.1003, allocations: 4 kB / 478.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.1006, allocations: 183.8 kB / 478.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.1021, allocations: 1.332 MB / 480 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.1025, allocations: 257 kB / 480.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.546e-05/0.1026, allocations: 72.27 kB / 480.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.1027, allocations: 8.141 kB / 480.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.1027, allocations: 46.55 kB / 480.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.512e-06/0.1027, allocations: 0 / 480.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004518/0.1032, allocations: 217.2 kB / 480.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/0.1032, allocations: 158.2 kB / 480.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.1034, allocations: 208.2 kB / 481 MB, free: 4.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.1035, allocations: 29.7 kB / 481 MB, free: 4.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1036, allocations: 191.9 kB / 481.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.957e-05/0.1036, allocations: 98.8 kB / 481.3 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-05/0.1037, allocations: 33.7 kB / 481.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1038, allocations: 334.8 kB / 481.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.1039, allocations: 67.92 kB / 481.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.1041, allocations: 209.8 kB / 481.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.1044, allocations: 293.8 kB / 482.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.1044, allocations: 4 kB / 482.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004124/0.1048, allocations: 316.8 kB / 482.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1049, allocations: 8 kB / 482.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1049, allocations: 4.531 kB / 482.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1049, allocations: 12 kB / 482.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/0.1052, allocations: 87.84 kB / 482.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.1052, allocations: 11.98 kB / 482.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.1053, allocations: 31.59 kB / 482.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.1054, allocations: 20 kB / 482.7 MB, free: 2.402 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.0001171/0.1055, allocations: 153.6 kB / 482.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.976e-05/0.1056, allocations: 19.81 kB / 482.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001476/0.1058, allocations: 91.33 kB / 482.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1058, allocations: 4 kB / 482.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1058, allocations: 4 kB / 482.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1058, allocations: 3.984 kB / 482.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005176/0.1063, allocations: 313.3 kB / 483.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1063, allocations: 0 / 483.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.1066, allocations: 75.84 kB / 483.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1066, allocations: 0 / 483.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.1067, allocations: 11.98 kB / 483.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1067, allocations: 4.094 kB / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1067, allocations: 3.938 kB / 483.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004533/0.1071, allocations: 0.6372 MB / 484 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.417e-05/0.1072, allocations: 101.3 kB / 484.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.258e-05/0.1072, allocations: 8 kB / 484.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.1075, allocations: 12 kB / 484.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.555e-05/0.1075, allocations: 11.98 kB / 484.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.1075, allocations: 11.98 kB / 484.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001047/0.1076, allocations: 153.5 kB / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1077, allocations: 0 / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004818/0.1081, allocations: 79.84 kB / 484.3 MB, free: 0.6211 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.0006555/0.1088, allocations: 1.177 MB / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.1091, allocations: 192.2 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1091, allocations: 0 / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.375e-05/0.1092, allocations: 79.84 kB / 485.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007917/0.11, allocations: 58.8 kB / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003466/0.1135, allocations: 3.83 MB / 489.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.1138, allocations: 0.7675 MB / 490.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.1139, allocations: 34.95 kB / 490.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.114, allocations: 83.41 kB / 490.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.114, allocations: 0 / 490.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2482/0.3622, allocations: 4.921 MB / 495.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003032/0.3626, allocations: 187.5 kB / 495.7 MB, free: 5.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.304/2.666, allocations: 0 / 495.7 MB, free: 5.094 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