Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008392/0.0008392, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9078/0.9078, allocations: 177 MB / 204.1 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2328/0.2328, allocations: 34.23 MB / 294.8 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 442.1 MB, free: 1.609 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.723e-05/1.877e-05, allocations: 2.281 kB / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.1861/0.1861, allocations: 2.831 MB / 445 MB, free: 42.96 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1872, allocations: 1.007 MB / 446 MB, free: 42.54 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1874, allocations: 17.22 kB / 446 MB, free: 42.53 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.1875, allocations: 67.09 kB / 446 MB, free: 42.49 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.1876, allocations: 132.4 kB / 446.2 MB, free: 42.41 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003625/0.188, allocations: 173.8 kB / 446.3 MB, free: 42.37 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.1882, allocations: 477.2 kB / 446.8 MB, free: 42.17 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.1884, allocations: 86.19 kB / 446.9 MB, free: 42.12 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.1885, allocations: 252.7 kB / 447.1 MB, free: 42.03 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.1886, allocations: 126.8 kB / 447.3 MB, free: 41.99 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.1887, allocations: 36.08 kB / 447.3 MB, free: 41.98 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.688e-05/0.1887, allocations: 48.44 kB / 447.3 MB, free: 41.98 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.406e-05/0.1888, allocations: 80.58 kB / 447.4 MB, free: 41.93 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.528e-05/0.1889, allocations: 130.4 kB / 447.6 MB, free: 41.88 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.1891, allocations: 448.9 kB / 448 MB, free: 41.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1892, allocations: 0 / 448 MB, free: 41.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1892, allocations: 0 / 448 MB, free: 41.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.1892, allocations: 0 / 448 MB, free: 41.71 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0006601/0.1898, allocations: 0.5939 MB / 448.6 MB, free: 41.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.1899, allocations: 11.89 kB / 448.6 MB, free: 41.25 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.586e-05/0.1899, allocations: 72.72 kB / 448.7 MB, free: 41.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.1901, allocations: 68.16 kB / 448.7 MB, free: 41.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.1904, allocations: 225.8 kB / 449 MB, free: 40.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.1905, allocations: 30.19 kB / 449 MB, free: 40.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.198e-05/0.1905, allocations: 35 kB / 449 MB, free: 40.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000373/0.1909, allocations: 360 kB / 449.4 MB, free: 40.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.1909, allocations: 14.73 kB / 449.4 MB, free: 40.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.1909, allocations: 13.69 kB / 449.4 MB, free: 40.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1909, allocations: 8.625 kB / 449.4 MB, free: 40.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.1912, allocations: 223.5 kB / 449.6 MB, free: 40.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.1923, allocations: 1.439 MB / 451.1 MB, free: 39.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/0.1926, allocations: 300.9 kB / 451.4 MB, free: 39.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.364e-05/0.1927, allocations: 97.67 kB / 451.5 MB, free: 39.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.1927, allocations: 2.875 kB / 451.5 MB, free: 39.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.1928, allocations: 47.72 kB / 451.5 MB, free: 39.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.603e-06/0.1928, allocations: 0 / 451.5 MB, free: 39.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003979/0.1932, allocations: 267.2 kB / 451.8 MB, free: 39.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.1932, allocations: 186.8 kB / 451.9 MB, free: 38.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.1933, allocations: 249.4 kB / 452.2 MB, free: 38.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.1933, allocations: 25.7 kB / 452.2 MB, free: 38.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.395e-05/0.1934, allocations: 225 kB / 452.4 MB, free: 38.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.1935, allocations: 108 kB / 452.5 MB, free: 38.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-05/0.1935, allocations: 77.8 kB / 452.6 MB, free: 38.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.354e-05/0.1936, allocations: 342.4 kB / 452.9 MB, free: 38.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.1937, allocations: 87.75 kB / 453 MB, free: 38.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.1938, allocations: 256.1 kB / 453.3 MB, free: 37.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.1941, allocations: 355.4 kB / 453.6 MB, free: 37.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.1941, allocations: 2.75 kB / 453.6 MB, free: 37.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003403/0.1944, allocations: 389.8 kB / 454 MB, free: 37.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1944, allocations: 5.531 kB / 454 MB, free: 37.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1944, allocations: 5.594 kB / 454 MB, free: 37.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1945, allocations: 8.5 kB / 454 MB, free: 37.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.1946, allocations: 103.9 kB / 454.1 MB, free: 37.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1946, allocations: 12.5 kB / 454.1 MB, free: 37.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.1947, allocations: 45.95 kB / 454.2 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.1948, allocations: 24.42 kB / 454.2 MB, free: 37.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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 8.029e-05/0.1948, allocations: 163.7 kB / 454.4 MB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.264e-05/0.1949, allocations: 34.09 kB / 454.4 MB, free: 37.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.195, allocations: 96.38 kB / 454.5 MB, free: 37.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.195, allocations: 2.875 kB / 454.5 MB, free: 37.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.195, allocations: 2.938 kB / 454.5 MB, free: 37.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.195, allocations: 2.875 kB / 454.5 MB, free: 37.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00037/0.1954, allocations: 294.1 kB / 454.8 MB, free: 36.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1954, allocations: 3.938 kB / 454.8 MB, free: 36.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.1956, allocations: 86.44 kB / 454.9 MB, free: 36.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1956, allocations: 10.53 kB / 454.9 MB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.1956, allocations: 6.594 kB / 454.9 MB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1956, allocations: 5.812 kB / 454.9 MB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1956, allocations: 2.594 kB / 454.9 MB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003707/0.196, allocations: 0.7597 MB / 455.7 MB, free: 36.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.511e-05/0.196, allocations: 32.22 kB / 455.7 MB, free: 36.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.196, allocations: 13.12 kB / 455.7 MB, free: 36.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.1962, allocations: 6.75 kB / 455.7 MB, free: 36.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.1962, allocations: 26.14 kB / 455.7 MB, free: 36.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.1963, allocations: 6 kB / 455.8 MB, free: 36.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.085e-05/0.1963, allocations: 173.3 kB / 455.9 MB, free: 36.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1963, allocations: 0 / 455.9 MB, free: 36.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003563/0.1967, allocations: 99.8 kB / 456 MB, free: 36.01 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.0004355/0.1971, allocations: 1.304 MB / 457.3 MB, free: 34.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000253/0.1974, allocations: 233.8 kB / 457.6 MB, free: 34.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1974, allocations: 0 / 457.6 MB, free: 34.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.755e-05/0.1975, allocations: 97 kB / 457.6 MB, free: 34.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/0.198, allocations: 73.09 kB / 457.7 MB, free: 34.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.2004, allocations: 3.797 MB / 461.5 MB, free: 31.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.2005, allocations: 185.4 kB / 461.7 MB, free: 31.76 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.743e-05/0.2006, allocations: 37.16 kB / 461.7 MB, free: 31.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.2007, allocations: 113.2 kB / 461.8 MB, free: 31.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.092e-06/0.2007, allocations: 0 / 461.8 MB, free: 31.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.2214, allocations: 7.313 MB / 469.2 MB, free: 30.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.933/7.154, allocations: 4 kB / 469.2 MB, free: 30.13 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 9.152740832418203]