Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.000816/0.000816, allocations: 83.69 kB / 20.67 MB, free: 3.891 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.0008153/0.0008153, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9034/0.9034, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2409/0.2409, allocations: 34.25 MB / 294.9 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 442.1 MB, free: 1.688 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.972e-05/2.133e-05, allocations: 4.391 kB / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.1798/0.1798, allocations: 2.819 MB / 445 MB, free: 43.03 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.1809, allocations: 1.008 MB / 446 MB, free: 42.6 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.181, allocations: 16.56 kB / 446 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.1811, allocations: 60.75 kB / 446.1 MB, free: 42.55 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.1813, allocations: 132.5 kB / 446.2 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/0.1817, allocations: 177.4 kB / 446.4 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002561/0.1819, allocations: 472.5 kB / 446.8 MB, free: 42.26 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1821, allocations: 85.75 kB / 446.9 MB, free: 42.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.1823, allocations: 253 kB / 447.1 MB, free: 42.12 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.1824, allocations: 131.1 kB / 447.3 MB, free: 42.07 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/0.1825, allocations: 29.34 kB / 447.3 MB, free: 42.07 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.1826, allocations: 46.12 kB / 447.3 MB, free: 42.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.491e-05/0.1827, allocations: 79.94 kB / 447.4 MB, free: 42.02 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.1828, allocations: 133.9 kB / 447.6 MB, free: 41.97 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004289/0.1832, allocations: 444.3 kB / 448 MB, free: 41.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.1832, allocations: 2.531 kB / 448 MB, free: 41.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1832, allocations: 0 / 448 MB, free: 41.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.1832, allocations: 0 / 448 MB, free: 41.8 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.0008806/0.1841, allocations: 0.5934 MB / 448.6 MB, free: 41.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.1841, allocations: 8.438 kB / 448.6 MB, free: 41.35 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.593e-05/0.1842, allocations: 75.66 kB / 448.7 MB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002601/0.1845, allocations: 65.61 kB / 448.7 MB, free: 41.26 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.1848, allocations: 229.2 kB / 449 MB, free: 41.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/0.1848, allocations: 27.69 kB / 449 MB, free: 41.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.315e-05/0.1849, allocations: 45.47 kB / 449 MB, free: 41.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/0.1852, allocations: 357.9 kB / 449.4 MB, free: 40.85 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.1853, allocations: 10.86 kB / 449.4 MB, free: 40.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.1853, allocations: 14.91 kB / 449.4 MB, free: 40.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1853, allocations: 10.25 kB / 449.4 MB, free: 40.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002669/0.1856, allocations: 224.8 kB / 449.6 MB, free: 40.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1867, allocations: 1.445 MB / 451.1 MB, free: 39.63 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.187, allocations: 297.2 kB / 451.4 MB, free: 39.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.623e-05/0.1871, allocations: 94.77 kB / 451.5 MB, free: 39.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.1872, allocations: 2.812 kB / 451.5 MB, free: 39.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.1872, allocations: 46.34 kB / 451.5 MB, free: 39.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 3.246e-06/0.1872, allocations: 2.906 kB / 451.5 MB, free: 39.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004275/0.1876, allocations: 269.2 kB / 451.8 MB, free: 39.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1876, allocations: 193.1 kB / 452 MB, free: 38.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.1878, allocations: 240.5 kB / 452.2 MB, free: 38.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.1878, allocations: 32.8 kB / 452.2 MB, free: 38.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.923e-05/0.1879, allocations: 215.3 kB / 452.4 MB, free: 38.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.184e-05/0.1879, allocations: 107.9 kB / 452.5 MB, free: 38.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.398e-05/0.188, allocations: 73.98 kB / 452.6 MB, free: 38.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.277e-05/0.188, allocations: 345.2 kB / 453 MB, free: 38.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.1881, allocations: 80.45 kB / 453 MB, free: 38.13 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.1883, allocations: 259 kB / 453.3 MB, free: 37.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.1885, allocations: 364.3 kB / 453.6 MB, free: 37.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1885, allocations: 0 / 453.6 MB, free: 37.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000338/0.1889, allocations: 386.4 kB / 454 MB, free: 37.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1889, allocations: 8.438 kB / 454 MB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1889, allocations: 5.75 kB / 454 MB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.1889, allocations: 5.875 kB / 454 MB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.1891, allocations: 107.7 kB / 454.1 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1891, allocations: 20.91 kB / 454.2 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.1892, allocations: 42.52 kB / 454.2 MB, free: 37.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.1892, allocations: 25.19 kB / 454.2 MB, free: 37.35 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.556e-05/0.1893, allocations: 162 kB / 454.4 MB, free: 37.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-05/0.1894, allocations: 32.5 kB / 454.4 MB, free: 37.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/0.1895, allocations: 92.48 kB / 454.5 MB, free: 37.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1895, allocations: 5.156 kB / 454.5 MB, free: 37.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.1895, allocations: 2.688 kB / 454.5 MB, free: 37.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1895, allocations: 0 / 454.5 MB, free: 37.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003873/0.1899, allocations: 293.6 kB / 454.8 MB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.1899, allocations: 10.06 kB / 454.8 MB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.1901, allocations: 85.86 kB / 454.9 MB, free: 36.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1901, allocations: 2.062 kB / 454.9 MB, free: 36.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.1901, allocations: 13.05 kB / 454.9 MB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.1901, allocations: 6.625 kB / 454.9 MB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1901, allocations: 3.938 kB / 454.9 MB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003874/0.1905, allocations: 0.7558 MB / 455.7 MB, free: 36.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.558e-05/0.1905, allocations: 35.73 kB / 455.7 MB, free: 36.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.1906, allocations: 9.844 kB / 455.7 MB, free: 36.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.1907, allocations: 6.781 kB / 455.7 MB, free: 36.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/0.1908, allocations: 26.17 kB / 455.8 MB, free: 36.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.1908, allocations: 13.44 kB / 455.8 MB, free: 36.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.221e-05/0.1909, allocations: 168 kB / 455.9 MB, free: 36.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1909, allocations: 2.875 kB / 455.9 MB, free: 36.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00038/0.1912, allocations: 96.59 kB / 456 MB, free: 36.11 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.0004562/0.1917, allocations: 1.306 MB / 457.3 MB, free: 34.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002737/0.192, allocations: 233.3 kB / 457.6 MB, free: 34.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.192, allocations: 4 kB / 457.6 MB, free: 34.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.102e-05/0.1921, allocations: 88.94 kB / 457.7 MB, free: 34.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005922/0.1927, allocations: 76.36 kB / 457.7 MB, free: 34.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.1951, allocations: 3.793 MB / 461.5 MB, free: 31.94 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.1952, allocations: 190.4 kB / 461.7 MB, free: 31.85 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.1953, allocations: 37.19 kB / 461.7 MB, free: 31.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.41e-05/0.1954, allocations: 109.3 kB / 461.9 MB, free: 31.76 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1954, allocations: 4 kB / 461.9 MB, free: 31.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02072/0.2161, allocations: 7.324 MB / 469.2 MB, free: 30.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.825/7.041, allocations: 9.203 kB / 469.2 MB, free: 30.23 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.033216387964785]