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.001611/0.001611, allocations: 102.8 kB / 16.27 MB, free: 5.969 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.001877/0.001877, allocations: 190 kB / 17.19 MB, free: 5.602 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.167/1.167, allocations: 205.1 MB / 223.1 MB, free: 12.28 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.1772/0.1772, allocations: 43.53 MB / 313.9 MB, free: 0.5312 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.001461/0.001461, allocations: 65.94 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08026/0.08173, allocations: 57.8 MB / 440.6 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003155/0.08493, allocations: 2.695 MB / 443.3 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.0861, allocations: 0.9861 MB / 444.3 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.08623, allocations: 11.94 kB / 444.3 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.08639, allocations: 47.52 kB / 444.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.08652, allocations: 103 kB / 444.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.08692, allocations: 143.6 kB / 444.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.08717, allocations: 374.2 kB / 445 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.08733, allocations: 89.34 kB / 445 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.755e-05/0.08743, allocations: 131.5 kB / 445.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.08757, allocations: 147.3 kB / 445.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.08761, allocations: 24 kB / 445.3 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.238e-05/0.0877, allocations: 40 kB / 445.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.721e-05/0.08775, allocations: 59.77 kB / 445.4 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.72e-05/0.08785, allocations: 171.1 kB / 445.6 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.08809, allocations: 354.8 kB / 446 MB, free: 1.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.0881, allocations: 0 / 446 MB, free: 1.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.08811, allocations: 7.984 kB / 446 MB, free: 1.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.08812, allocations: 0 / 446 MB, free: 1.461 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.0006705/0.0888, allocations: 0.5888 MB / 446.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.08884, allocations: 19.89 kB / 446.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.777e-05/0.08889, allocations: 62.72 kB / 446.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.08907, allocations: 52.48 kB / 446.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.08928, allocations: 263.7 kB / 446.9 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.0893, allocations: 21.03 kB / 447 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.393e-05/0.08935, allocations: 36.36 kB / 447 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.08968, allocations: 302.4 kB / 447.3 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.08971, allocations: 11.91 kB / 447.3 MB, free: 0 / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.774e-05/0.08976, allocations: 20.06 kB / 447.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.08977, allocations: 4 kB / 447.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004313/0.09021, allocations: 171.8 kB / 447.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.09183, allocations: 1.344 MB / 448.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003662/0.09221, allocations: 261 kB / 449.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.018e-05/0.09231, allocations: 68.28 kB / 449.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.09234, allocations: 4 kB / 449.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.09236, allocations: 50.44 kB / 449.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.09237, allocations: 0 / 449.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004404/0.09282, allocations: 217.2 kB / 449.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.09289, allocations: 158.2 kB / 449.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.09305, allocations: 204.2 kB / 449.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.09308, allocations: 33.7 kB / 449.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.729e-05/0.09318, allocations: 192.1 kB / 450 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.661e-05/0.09324, allocations: 90.86 kB / 450.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.314e-05/0.09332, allocations: 65.64 kB / 450.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.09344, allocations: 338.8 kB / 450.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.09355, allocations: 63.91 kB / 450.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.09373, allocations: 205.9 kB / 450.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/0.09405, allocations: 293.7 kB / 451 MB, free: 11.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.09406, allocations: 8 kB / 451 MB, free: 11.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004101/0.09448, allocations: 308.9 kB / 451.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.0945, allocations: 12.52 kB / 451.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.09452, allocations: 8 kB / 451.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.09454, allocations: 8 kB / 451.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.09481, allocations: 87.84 kB / 451.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.09483, allocations: 8 kB / 451.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.09499, allocations: 39.52 kB / 451.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.09502, allocations: 20 kB / 451.5 MB, free: 11.39 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.0001172/0.09515, allocations: 157.6 kB / 451.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.09525, allocations: 15.81 kB / 451.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/0.0954, allocations: 95.02 kB / 451.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.09542, allocations: 4.562 kB / 451.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.09543, allocations: 0 / 451.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.09544, allocations: 3.984 kB / 451.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005142/0.09596, allocations: 313.3 kB / 452.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.09597, allocations: 0 / 452.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.09627, allocations: 67.97 kB / 452.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.09628, allocations: 0 / 452.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.09631, allocations: 8 kB / 452.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.09632, allocations: 7.938 kB / 452.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.09632, allocations: 4.078 kB / 452.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004635/0.09679, allocations: 0.6433 MB / 452.8 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.565e-05/0.09686, allocations: 104.8 kB / 452.9 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.0969, allocations: 12 kB / 452.9 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.09714, allocations: 12 kB / 453 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.089e-05/0.09718, allocations: 19.92 kB / 453 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.09719, allocations: 4 kB / 453 MB, free: 9.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.09731, allocations: 153.8 kB / 453.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09731, allocations: 0 / 453.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004816/0.0978, allocations: 79.84 kB / 453.2 MB, free: 9.605 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.0006866/0.09849, allocations: 1.179 MB / 454.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.09882, allocations: 204.6 kB / 454.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.09883, allocations: 0 / 454.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.09894, allocations: 75.84 kB / 454.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008071/0.09976, allocations: 57 kB / 454.7 MB, free: 8.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003816/0.1036, allocations: 3.54 MB / 458.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.104, allocations: 0.7713 MB / 459 MB, free: 3.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.1041, allocations: 26.98 kB / 459.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.1042, allocations: 95.61 kB / 459.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of SimCode: time 1.873e-06/0.1042, allocations: 0 / 459.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3485/0.4528, allocations: 5.242 MB / 464.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.08, allocations: 5.016 kB / 464.4 MB, free: 14.17 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches