Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") translateModel(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001141/0.001141, allocations: 192.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008103/0.0008104, allocations: 92.11 kB / 296.8 MB, free: 6.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.0002072, allocations: 4 kB / 356.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1867, allocations: 51.3 MB / 408 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.001327/0.1881, allocations: 1.463 MB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006643/0.1888, allocations: 0.6249 MB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.979e-05/0.1889, allocations: 0 / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.658e-05/0.189, allocations: 11.86 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.406e-05/0.189, allocations: 32.77 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001629/0.1892, allocations: 45.92 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.1893, allocations: 111.4 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.998e-05/0.1894, allocations: 23.98 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.856e-05/0.1895, allocations: 31.86 kB / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.845e-05/0.1895, allocations: 44.64 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.1896, allocations: 4 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.379e-05/0.1896, allocations: 20 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.438e-05/0.1897, allocations: 16.55 kB / 410.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.51e-05/0.1897, allocations: 74.28 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.1898, allocations: 84.77 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1898, allocations: 0.5312 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1898, allocations: 0 / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.1899, allocations: 0.875 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003652/0.1902, allocations: 387.5 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.1903, allocations: 11.97 kB / 411 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.1904, allocations: 32.73 kB / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.1906, allocations: 192.2 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.1906, allocations: 8.562 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.575e-05/0.1906, allocations: 8.375 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.1908, allocations: 101.1 kB / 411.3 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1908, allocations: 4 kB / 411.3 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.1908, allocations: 4 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1908, allocations: 4 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.1909, allocations: 55.97 kB / 411.4 MB, free: 24.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.1915, allocations: 0.4893 MB / 411.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.1917, allocations: 86.61 kB / 412 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.849e-05/0.1918, allocations: 24.86 kB / 412 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.1918, allocations: 3.938 kB / 412 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.056e-05/0.1918, allocations: 30.56 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.193e-06/0.1918, allocations: 0 / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001852/0.192, allocations: 97.67 kB / 412.1 MB, free: 23.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.829e-05/0.192, allocations: 55.34 kB / 412.2 MB, free: 23.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.731e-05/0.1921, allocations: 117.8 kB / 412.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.754e-06/0.1921, allocations: 25.7 kB / 412.3 MB, free: 23.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.1922, allocations: 111.8 kB / 412.4 MB, free: 23.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.1922, allocations: 31.55 kB / 412.5 MB, free: 23.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-06/0.1922, allocations: 3.938 kB / 412.5 MB, free: 23.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.131e-05/0.1923, allocations: 322.8 kB / 412.8 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.112e-05/0.1923, allocations: 20 kB / 412.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.641e-05/0.1924, allocations: 55.36 kB / 412.9 MB, free: 22.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.3e-05/0.1925, allocations: 75.36 kB / 412.9 MB, free: 22.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1925, allocations: 0 / 412.9 MB, free: 22.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001349/0.1926, allocations: 117.5 kB / 413.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.1926, allocations: 4 kB / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1926, allocations: 0 / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.1927, allocations: 4 kB / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.1928, allocations: 23.98 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1928, allocations: 3.938 kB / 413.1 MB, free: 22.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.962e-05/0.1928, allocations: 8 kB / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.1929, allocations: 4 kB / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.562e-05/0.1929, allocations: 125.9 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.193, allocations: 7.906 kB / 413.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.193, allocations: 12.38 kB / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.193, allocations: 4 kB / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.193, allocations: 3.938 kB / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.193, allocations: 0 / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.1932, allocations: 201.7 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1932, allocations: 3.938 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.1933, allocations: 23.98 kB / 413.5 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1933, allocations: 3.984 kB / 413.5 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.1933, allocations: 8 kB / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1933, allocations: 0 / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1933, allocations: 4.031 kB / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001726/0.1935, allocations: 207.3 kB / 413.7 MB, free: 21.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.1935, allocations: 81.02 kB / 413.8 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.1936, allocations: 8 kB / 413.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.721e-05/0.1937, allocations: 0 / 413.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/0.1937, allocations: 7.969 kB / 413.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.1937, allocations: 8 kB / 413.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.929e-05/0.1937, allocations: 91.27 kB / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1937, allocations: 0 / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000226/0.194, allocations: 27.91 kB / 413.9 MB, free: 21.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.298e-05/0.194, allocations: 95.25 kB / 414 MB, free: 21.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.1942, allocations: 64.3 kB / 414.1 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1942, allocations: 0 / 414.1 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.521e-05/0.1942, allocations: 36.11 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.1945, allocations: 12 kB / 414.1 MB, free: 21.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005683/0.1951, allocations: 0.5456 MB / 414.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.1952, allocations: 0.7004 MB / 415.4 MB, free: 19.99 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.22e-05/0.1952, allocations: 11.44 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.1952, allocations: 0 / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of Templates: time 0.002137/0.1974, allocations: 1.287 MB / 416.7 MB, free: 18.7 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches