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.001186/0.001185, allocations: 106.4 kB / 15.98 MB, free: 5.906 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.001207/0.001207, allocations: 188.7 kB / 16.9 MB, free: 5.758 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.415/1.415, allocations: 205.1 MB / 222.8 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.217/0.217, allocations: 43.52 MB / 313.6 MB, free: 0.6836 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.001371/0.001371, allocations: 63.23 kB / 382.3 MB, free: 56.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09948, allocations: 57.8 MB / 440.1 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003622/0.1032, allocations: 2.733 MB / 442.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.1047, allocations: 0.9824 MB / 443.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003299/0.105, allocations: 11.94 kB / 443.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002088/0.1052, allocations: 35.7 kB / 443.9 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002217/0.1055, allocations: 87.3 kB / 444 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004958/0.106, allocations: 123.7 kB / 444.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002817/0.1063, allocations: 370.3 kB / 444.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.1065, allocations: 97.33 kB / 444.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.946e-05/0.1066, allocations: 131.5 kB / 444.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.1067, allocations: 143.3 kB / 444.8 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.183e-05/0.1068, allocations: 24 kB / 444.8 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.703e-05/0.1069, allocations: 43.98 kB / 444.9 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.899e-05/0.1069, allocations: 67.75 kB / 444.9 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.954e-05/0.107, allocations: 159.2 kB / 445.1 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002742/0.1073, allocations: 354.8 kB / 445.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1073, allocations: 0 / 445.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1073, allocations: 0 / 445.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1073, allocations: 0 / 445.4 MB, free: 1.875 MB / 318.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.0008051/0.1081, allocations: 0.6004 MB / 446 MB, free: 1.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.1082, allocations: 15.83 kB / 446 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.897e-05/0.1083, allocations: 66.72 kB / 446.1 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/0.1085, allocations: 44.55 kB / 446.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/0.1088, allocations: 283.6 kB / 446.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.1088, allocations: 21.03 kB / 446.5 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.71e-05/0.1088, allocations: 36.36 kB / 446.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004104/0.1093, allocations: 306.4 kB / 446.8 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.1093, allocations: 7.906 kB / 446.8 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.1093, allocations: 12 kB / 446.8 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.1093, allocations: 11.98 kB / 446.8 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002524/0.1096, allocations: 167.8 kB / 447 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.1115, allocations: 1.34 MB / 448.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.1119, allocations: 249 kB / 448.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.1121, allocations: 76.22 kB / 448.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.1121, allocations: 7.938 kB / 448.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.1121, allocations: 38.56 kB / 448.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.1121, allocations: 0 / 448.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005107/0.1126, allocations: 225.6 kB / 448.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.1127, allocations: 162.2 kB / 449.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.1129, allocations: 208.2 kB / 449.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.113, allocations: 29.7 kB / 449.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1131, allocations: 196.1 kB / 449.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.058e-05/0.1131, allocations: 90.7 kB / 449.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/0.1132, allocations: 61.7 kB / 449.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1134, allocations: 334.8 kB / 450 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1135, allocations: 63.97 kB / 450 MB, free: 12.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1137, allocations: 205.8 kB / 450.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.114, allocations: 305.8 kB / 450.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.207e-06/0.114, allocations: 0 / 450.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004188/0.1144, allocations: 317.2 kB / 450.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1145, allocations: 12.06 kB / 450.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1145, allocations: 7.984 kB / 450.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.1145, allocations: 8 kB / 450.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.1148, allocations: 83.91 kB / 450.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1148, allocations: 11.94 kB / 451 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.115, allocations: 35.58 kB / 451 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.115, allocations: 20 kB / 451 MB, free: 11.78 MB / 334.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.0001267/0.1151, allocations: 157.5 kB / 451.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.1153, allocations: 19.81 kB / 451.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.1154, allocations: 91.08 kB / 451.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1154, allocations: 4 kB / 451.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1154, allocations: 0 / 451.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1155, allocations: 3.984 kB / 451.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005507/0.116, allocations: 313.3 kB / 451.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.116, allocations: 0 / 451.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003463/0.1164, allocations: 71.91 kB / 451.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1164, allocations: 0 / 451.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.1164, allocations: 8.25 kB / 451.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.1164, allocations: 11.98 kB / 451.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.1164, allocations: 4 kB / 451.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005405/0.117, allocations: 0.6314 MB / 452.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.974e-05/0.1171, allocations: 104.8 kB / 452.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.1171, allocations: 12 kB / 452.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.1174, allocations: 8 kB / 452.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.1174, allocations: 11.98 kB / 452.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.1174, allocations: 11.98 kB / 452.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1175, allocations: 149.8 kB / 452.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1176, allocations: 0 / 452.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005094/0.1181, allocations: 79.84 kB / 452.7 MB, free: 10.01 MB / 334.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.0007043/0.1188, allocations: 1.183 MB / 453.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003124/0.1191, allocations: 199.9 kB / 454.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1191, allocations: 0 / 454.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.593e-05/0.1192, allocations: 71.84 kB / 454.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008194/0.12, allocations: 64.38 kB / 454.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003739/0.1238, allocations: 3.652 MB / 457.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.1241, allocations: 0.7713 MB / 458.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.1243, allocations: 39.17 kB / 458.7 MB, free: 3.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.1244, allocations: 87.41 kB / 458.7 MB, free: 3.684 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1244, allocations: 7.938 kB / 458.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0167/0.1411, allocations: 5.149 MB / 463.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.1414, allocations: 186.4 kB / 464.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.919/2.06, allocations: 3.938 kB / 464.1 MB, free: 14.32 MB / 350.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