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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007936/0.0007936, allocations: 80.53 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008325/0.0008325, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8563/0.8563, allocations: 158.6 MB / 185 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1274/0.1274, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 406.8 MB, free: 2.281 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.458e-05/1.617e-05, allocations: 6.219 kB / 406.8 MB, free: 2.273 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.0031/0.003116, allocations: 2.53 MB / 409.3 MB, free: 15.73 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.004565, allocations: 0.9433 MB / 410.3 MB, free: 14.78 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.004712, allocations: 15.88 kB / 410.3 MB, free: 14.77 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.004867, allocations: 51.45 kB / 410.3 MB, free: 14.71 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.005033, allocations: 111 kB / 410.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004321/0.005466, allocations: 139.5 kB / 410.6 MB, free: 14.47 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.005777, allocations: 394 kB / 411 MB, free: 14.08 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.005936, allocations: 61.39 kB / 411 MB, free: 14.02 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.006256, allocations: 203.5 kB / 411.2 MB, free: 13.82 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.006383, allocations: 107.7 kB / 411.3 MB, free: 13.72 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.145e-05/0.006414, allocations: 24 kB / 411.4 MB, free: 13.7 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.776e-05/0.006492, allocations: 43.92 kB / 411.4 MB, free: 13.65 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 4.359e-05/0.006535, allocations: 63.69 kB / 411.5 MB, free: 13.59 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 8.366e-05/0.006619, allocations: 119.7 kB / 411.6 MB, free: 13.47 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.006929, allocations: 362.8 kB / 411.9 MB, free: 13.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.006933, allocations: 7.938 kB / 411.9 MB, free: 13.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.006934, allocations: 0 / 411.9 MB, free: 13.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.006939, allocations: 0 / 411.9 MB, free: 13.11 MB / 394.7 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.0006543/0.007594, allocations: 0.5209 MB / 412.5 MB, free: 12.56 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.007634, allocations: 8.031 kB / 412.5 MB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.375e-05/0.007687, allocations: 70.72 kB / 412.5 MB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.007828, allocations: 56.67 kB / 412.6 MB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.008207, allocations: 205.2 kB / 412.8 MB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.008234, allocations: 21.03 kB / 412.8 MB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.829e-05/0.008312, allocations: 36.33 kB / 412.9 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.008713, allocations: 299.2 kB / 413.1 MB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.008737, allocations: 15.89 kB / 413.2 MB, free: 11.81 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.008758, allocations: 12 kB / 413.2 MB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.088e-06/0.008768, allocations: 8 kB / 413.2 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002514/0.009019, allocations: 167.8 kB / 413.3 MB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.0106, allocations: 1.219 MB / 414.6 MB, free: 10.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/0.01094, allocations: 237.1 kB / 414.8 MB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.647e-05/0.01103, allocations: 76.27 kB / 414.9 MB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.01105, allocations: 4 kB / 414.9 MB, free: 9.945 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.01108, allocations: 58.42 kB / 414.9 MB, free: 9.879 MB / 394.7 MB Notification: Performance of pre-optimization done (n=22): time 2.124e-06/0.01108, allocations: 0 / 414.9 MB, free: 9.879 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003818/0.01146, allocations: 209.4 kB / 415.1 MB, free: 9.668 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.022e-05/0.01152, allocations: 158.2 kB / 415.3 MB, free: 9.477 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.01168, allocations: 220 kB / 415.5 MB, free: 9.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.0117, allocations: 33.7 kB / 415.5 MB, free: 9.211 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.01181, allocations: 192.5 kB / 415.7 MB, free: 9.016 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.366e-05/0.01186, allocations: 95.17 kB / 415.8 MB, free: 8.922 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.298e-05/0.01194, allocations: 61.7 kB / 415.9 MB, free: 8.855 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.01206, allocations: 334.8 kB / 416.2 MB, free: 8.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-05/0.01215, allocations: 72.03 kB / 416.3 MB, free: 8.449 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.01229, allocations: 201.9 kB / 416.5 MB, free: 8.188 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.01256, allocations: 293.7 kB / 416.8 MB, free: 7.836 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.01257, allocations: 0 / 416.8 MB, free: 7.836 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003505/0.01292, allocations: 324.9 kB / 417.1 MB, free: 7.512 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.01294, allocations: 8 kB / 417.1 MB, free: 7.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.01295, allocations: 7.984 kB / 417.1 MB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.01298, allocations: 8 kB / 417.1 MB, free: 7.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.01324, allocations: 88.03 kB / 417.2 MB, free: 7.402 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.01325, allocations: 12.53 kB / 417.2 MB, free: 7.391 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.01337, allocations: 27.78 kB / 417.2 MB, free: 7.363 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.01339, allocations: 27.98 kB / 417.3 MB, free: 7.336 MB / 394.7 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.0001288/0.01352, allocations: 149.7 kB / 417.4 MB, free: 7.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.01359, allocations: 27.8 kB / 417.4 MB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.01377, allocations: 83.14 kB / 417.5 MB, free: 7.055 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.01378, allocations: 7.938 kB / 417.5 MB, free: 7.047 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.01378, allocations: 0 / 417.5 MB, free: 7.047 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.01379, allocations: 0 / 417.5 MB, free: 7.047 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000534/0.01432, allocations: 268.5 kB / 417.8 MB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.01433, allocations: 11.92 kB / 417.8 MB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.01454, allocations: 63.97 kB / 417.9 MB, free: 6.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-06/0.01455, allocations: 4 kB / 417.9 MB, free: 6.664 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.01457, allocations: 4 kB / 417.9 MB, free: 6.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.01457, allocations: 4 kB / 417.9 MB, free: 6.656 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.01457, allocations: 3.938 kB / 417.9 MB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005215/0.0151, allocations: 0.6296 MB / 418.5 MB, free: 6.004 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.065e-05/0.01514, allocations: 27.73 kB / 418.5 MB, free: 5.977 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.01516, allocations: 8 kB / 418.5 MB, free: 5.969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.01532, allocations: 4 kB / 418.5 MB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.01546, allocations: 23.91 kB / 418.6 MB, free: 5.941 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.01547, allocations: 11.98 kB / 418.6 MB, free: 5.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.528e-05/0.01557, allocations: 153.7 kB / 418.7 MB, free: 5.781 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01557, allocations: 3.938 kB / 418.7 MB, free: 5.777 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004152/0.01598, allocations: 87.78 kB / 418.8 MB, free: 5.691 MB / 394.7 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.0007686/0.01675, allocations: 1.168 MB / 420 MB, free: 4.496 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003277/0.01708, allocations: 176.6 kB / 420.2 MB, free: 4.324 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.01709, allocations: 4.125 kB / 420.2 MB, free: 4.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.407e-05/0.01717, allocations: 80.27 kB / 420.2 MB, free: 4.242 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006928/0.01786, allocations: 65.2 kB / 420.3 MB, free: 4.176 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.02097, allocations: 3.292 MB / 423.6 MB, free: 0.668 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.02114, allocations: 165.1 kB / 423.8 MB, free: 496 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001327/0.02128, allocations: 34.95 kB / 423.8 MB, free: 460 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.0214, allocations: 96.45 kB / 423.9 MB, free: 364 kB / 394.7 MB Notification: Performance of SimCode: time 2.014e-06/0.0214, allocations: 0 / 423.9 MB, free: 364 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.04092, allocations: 6.227 MB / 430.1 MB, free: 10.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.531/6.572, allocations: 10.97 kB / 430.1 MB, free: 10.11 MB / 410.7 MB " [Timeout remaining time 653] (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 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.572638175450265]